您可以使用sqlcmd
http://msdn.microsoft.com/en- us/library/ms162773.aspx
然后将其放在批处理文件中并通过Windows Scheduler进行安排
下面的例子
sqlcmd -E -S localhost -q "select count(1) from databasename.dbo.tablename"
是否可以在没有sql sever代理的情况下自动运行存储过程?
您可以使用sqlcmd
http://msdn.microsoft.com/en- us/library/ms162773.aspx
然后将其放在批处理文件中并通过Windows Scheduler进行安排
下面的例子
sqlcmd -E -S localhost -q "select count(1) from databasename.dbo.tablename"