简体   繁体   English

将SQL Server 2000连接字符串转换为SQL Server 2008

[英]SQL Server 2000 connection string converted to SQL Server 2008

I have a SQL Server 2000 connection string that I need to work with SQL Server 2008. I am using a DSN and it works just fine, but when I try to connect from the web page, the page never loads and I have to restart my IIS to get the web page to load again. 我有一个需要与SQL Server 2008一起使用的SQL Server 2000连接字符串。我正在使用DSN,它可以正常工作,但是当我尝试从网页进行连接时,该页面从不加载,因此必须重新启动IIS以使网页再次加载。

this is my SQL Server 2000 string: 这是我的SQL Server 2000字符串:

MM_RFI_Datasource_STRING = "DSN=RFI_Datasource"

this is my SQL Server 2008 string: 这是我的SQL Server 2008字符串:

MM_RFI_Datasource_STRING = "Provider=SQLNCLI10;DSN=RFI_Datasource;" 

I have also tried: MM_RFI_Datasource_STRING = "Provider=SQLNCLI10;Data Source=servername/instance; Initial Catalog=RFI;Integrated Security=True";" 我也尝试过: MM_RFI_Datasource_STRING = "Provider=SQLNCLI10;Data Source=servername/instance; Initial Catalog=RFI;Integrated Security=True";"

I actually had it working once, but my hard drive was mistakenly erased and now I can't seem to get it to work again. 我实际上曾经使它工作一次,但是我的硬盘驱动器被错误地擦除了,现在我似乎无法使其再次工作。

Any help would be appreciated. 任何帮助,将不胜感激。 I am neither a web master or SQL expert so I am really winging it here. 我既不是网站管理员也不是SQL专家,所以我真的在这里提出建议。

Thanks 谢谢

Check out the vast repository of connection strings here: http://www.connectionstrings.com 在此处查看庞大的连接字符串存储库: http : //www.connectionstrings.com

You don't say how you want to connect to SQL Server - what programming language / system you're using. 您没有说要连接到SQL Server的方式-您使用的是哪种编程语言/系统。

But I would recommend you use ADO.NET connection strings is ever possible. 但是我建议您使用ADO.NET连接字符串是可能的。

Server=servername/instance;database=RFI;Integrated Security=SSPI;

would be a sample of such an ADO.NET connection string. 将是此类ADO.NET连接字符串的示例。 Tweak it as needed, add more information if required etc. 根据需要进行调整,如果需要,添加更多信息等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM