我在Windows XP机器上安装了Visual Studio 2008和SQL Server 2008 Developer Edition。.NET - SQL连接错误 - 在本地开发Web应用程序
我得到试图在测试Web应用程序工作时,这个错误:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
我的ADO.NET连接字符串是:
Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\TestDB.mdf;Integrated Security=True;User Instance=True
应该不是一个完整的安装SQL Server的知道如何处理SQL Express数据库? 我是否缺少需要在“附加”数据库上工作的东西?还是我还需要配置一些东西?我认为这在过去对我来说(开箱即用)是有效的。
更新:
我的本意是,即使我有一个完全成熟的2008实例上运行使用这个作为一个Express数据库。你不能这样做吗?默认情况下,当您尝试使用其“成员身份”功能时,ASP.NET是否会将您引向这些“快速”数据库之一?
但是,您是否仅通过Visual Studio 2008安装即可获得快速“驱动程序”功能? – BuddyJoe 2009-01-29 21:28:01