Reference Microsoft.SqlServer.Smo.dll

前端 未结 11 1326
轮回少年
轮回少年 2020-12-04 11:59

I need to use Server class which is stored in Microsoft.SqlServer.Smo.dll I don\'t see this assembly in usual References dialog. I have found it at C:/Program Files/Microsof

11条回答
  •  萌比男神i
    2020-12-04 12:44

    Hmm. Try registering the DLL library by running this at the DOS prompt (I'm curious as to why it's not registered already. I tried using it on a Windows that had SQL2008 installed and didn't have your problem)

    "c:\windows\system32\regsvr32.exe C:/Program Files/Microsoft SQL Server/100/SDK/Assemblies/Microsoft.SqlServer.Smo.dll"

    You need the quotation marks because of the spaces in the directory names.

    If you're running a 64-bit Windows, regsvr32.exe will be in C:\windows\syswow64\

    Best of luck. Let us know if this won't help.. Thanks.

提交回复
热议问题