2012-08-04 43 views

回答

1

修改您的連接字符串。而不是本地主機或「。」或您的計算機名稱,請使用服務器計算機名稱和sqlinstance名稱。更多有關連接字符串,檢查http://www.connectionstrings.com

+0

謝謝你的回覆..我不知道服務器的機器名和sqlinstance的名稱。我使用Remove Integrated Security = True – 2012-08-04 05:07:26

0

假設當你執行你的應用程序,其地址之際,

http://localhost/pagename.aspx/formname 

所以不是這樣,您可以通過本機的IP地址替換本地主機訪問它

http://10.123.4.56/pagename.aspx/formname 
+0

我使用的是windows應用程序。 – 2012-08-04 06:58:51

+0

哦,是.....然後你能顯示你的連接字符串給我嗎? – 2012-08-04 07:00:49

+0

這是本地服務器連接字符串:string connection =「data source = localhost; initial catalog = TWO; integrated security = SSPI; persist security info = False; packet size = 4096」; – 2012-08-04 08:32:25

相關問題