我無法連接到我的筆記本電腦上的數據庫。現在我試圖從同一檯筆記本電腦本地訪問它。 我使用這個連接字符串:無法連接到SQL與VS 2012
Server=localhost,49172;database=databasename;uid=user;pwd=password;
的領域都充滿了相應的信息。我也嘗試把我的latop的名字,而不是本地主機。我嘗試了不同的端口號,沒用。 我得到了一個錯誤:
cn.ServerVersion threw and exception - InvalidOpertionException.(network related eroror) The next timem the error sayingthe connectionwas successful but there was a time during the pre-login handshake.
我使用Visual Studio 2012和SQL Server 2012的我也試過installingthe MySQL連接網絡。我的數據庫是使用xampp控制面板的phpmyadmin Web界面創建的。 請幫忙嗎?我使用c#作爲背後的代碼製作了一個aspx網頁。
我嘗試添加這些標籤Integrated security
和刪除用戶和密碼標籤,沒有運氣
請在此處添加有意義的代碼和問題描述。發佈一個 [短的,獨立的,正確的示例(SSCCE)(http://www.sscce.org/) 演示您的問題將有助於你得到更好的答案。 – CyanAngel 2015-02-05 15:30:42