我在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