Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们是否有办法找到当前 SQL Server 代理中的作业数量和名称。我可以手动计数,但我正在寻找一个脚本来给我数字和名称。
谢谢
这将返回n行及其名称:
n
SELECT name FROM msdb.dbo.sysjobs;