我无法将Microsoft.SqlServer.Management.Common添加到我的ASP.NET MVC应用程序中

时间:2022-11-22 04:13:09

I am trying to add a reference to the above assembly but it does not appear in my ASP.NET MVC .NET 4 (Not client) applications Assembly list. Does anyone know how to reference this Assembly?

我试图添加对上面的程序集的引用,但它没有出现在我的ASP.NET MVC .NET 4(非客户端)应用程序程序集列表中。有谁知道如何参考这个大会?

1 个解决方案

#1


31  

The Microsoft.SqlServer.Management.Common namespace resides in the Microsoft.SqlServer.ConnectionInfo.dll assembly.

Microsoft.SqlServer.Management.Common命名空间驻留在Microsoft.SqlServer.ConnectionInfo.dll程序集中。

Microsoft.SqlServer.Management.Common Namespace (MSDN)

Microsoft.SqlServer.Management.Common命名空间(MSDN)

Assuming the default installation folders you can find the Microsoft.SqlServer.ConnectionInfo.dll assembly in:

假设默认安装文件夹,您可以在以下位置找到Microsoft.SqlServer.ConnectionInfo.dll程序集:

C:\Program Files\Microsoft SQL Server\XXXX\SDK\Assemblies

C:\ Program Files \ Microsoft SQL Server \ XXXX \ SDK \ Assemblies

Where XXXX represents the version of SQL Server you're running:

其中XXXX表示您正在运行的SQL Server版本:

80  -> SQL Server 2005
90  -> SQL Server 2008
100 -> SQL Server 2008R2

If you're running SQL Server 32bit on x64 then instead of c:\Program Files use c:\Program Files (x86).

如果您在x64上运行SQL Server 32位,则使用c:\​​ Program Files(x86)而不是c:\ Program Files。

#1


31  

The Microsoft.SqlServer.Management.Common namespace resides in the Microsoft.SqlServer.ConnectionInfo.dll assembly.

Microsoft.SqlServer.Management.Common命名空间驻留在Microsoft.SqlServer.ConnectionInfo.dll程序集中。

Microsoft.SqlServer.Management.Common Namespace (MSDN)

Microsoft.SqlServer.Management.Common命名空间(MSDN)

Assuming the default installation folders you can find the Microsoft.SqlServer.ConnectionInfo.dll assembly in:

假设默认安装文件夹,您可以在以下位置找到Microsoft.SqlServer.ConnectionInfo.dll程序集:

C:\Program Files\Microsoft SQL Server\XXXX\SDK\Assemblies

C:\ Program Files \ Microsoft SQL Server \ XXXX \ SDK \ Assemblies

Where XXXX represents the version of SQL Server you're running:

其中XXXX表示您正在运行的SQL Server版本:

80  -> SQL Server 2005
90  -> SQL Server 2008
100 -> SQL Server 2008R2

If you're running SQL Server 32bit on x64 then instead of c:\Program Files use c:\Program Files (x86).

如果您在x64上运行SQL Server 32位,则使用c:\​​ Program Files(x86)而不是c:\ Program Files。