我試圖連接到本地SQL Server數據庫和它不工作, 連接字符串ASP.NET連接到本地數據庫無法正常工作
Dim connString As String = "server=C:\Program Files (x86)\Microsoft SQL Server\MSSQL10.MSSQLSERVER\MSSQL\DATA;Integrated Security=SSPI;initial catalog=AdventureWorks"
sqlConn.ConnectionString = connString
sqlConn.Open()
什麼是錯誤? – N0Alias
感謝您的快速回復!我是.NET新手,所以我想我需要繼續閱讀... 我用「localhost」取代了絕對路徑,現在它的工作。 再次感謝您的幫助! Dim connString As String =「server = localhost; Integrated Security = SSPI; initial catalog = AdventureWorks」 – Dashsa