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.
我有一个基于参数生成报告的工作 Windows 服务。当新行插入表中时,我需要启动 Windows 服务并将一些新插入的值传递给服务以生成报告。如何做到这一点?我对此很陌生,所以请详细回答!
如果您有权访问xp_cmdshell,则可以运行NET START命令,但通常xp_cmdshell不允许用户使用,因为他们需要该sysadmin角色。
xp_cmdshell
NET START
sysadmin