--打開高級選項,看Ole Automation Procedures OLE自動化開啟了沒有
EXEC [sys].[sp_configure] @configname = 'show advanced options', -- varchar(35)
@configvalue = 1 -- int
RECONFIGURE WITH override
GO
--查看是否開啟
EXEC [sys].[sp_configure]
--如果沒有就開啟
EXEC [sys].[sp_configure] @configname = 'Ole Automation Procedures', -- varchar(35)
@configvalue = 1 -- int
其實我覺得SQLSERVER使用Windows服務(wù)來寫這個理念是挺好的,不用開機啟動然后需要雙擊sqlserver.exe來運行用Windows服務(wù)的話,開機就啟動了都不用進入桌面