tag:blogger.com,1999:blog-1404511988137688219.post2111994563860711611..comments2024-03-07T14:58:14.696+08:00Comments on KingKong Bruce記事: ASP.NET And SQL Server 2005 Express遠端連線的方法陳傳興http://www.blogger.com/profile/14720896380519694038noreply@blogger.comBlogger22125tag:blogger.com,1999:blog-1404511988137688219.post-19106466680165473982011-10-18T14:33:24.078+08:002011-10-18T14:33:24.078+08:00就你的描述,
You --> ERP Database, bad connection.
Y...就你的描述,<br /><br />You --> ERP Database, bad connection.<br />You --> Other Database, good connection.<br /><br />很明顯,ERP Database 設定有問題。<br />如果是 MS SQL,請參考這 http://kkbruce.blogspot.com/2009/08/microsoft-sql-server-2008-express.html 篇。<br /><br />不然你就要能提供更進階的「錯誤訊息」,不然我也只能亂猜。陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-7802021648702243452011-10-18T13:00:33.941+08:002011-10-18T13:00:33.941+08:00我想請問一下版主,在下有幸能拜讀你的文章,是關於連接遠端的資料庫,但經過一連串的設定後,連不到我想要...我想請問一下版主,在下有幸能拜讀你的文章,是關於連接遠端的資料庫,但經過一連串的設定後,連不到我想要的資料庫,但可以連到其他資料庫,請問這是甚麼原因??我想要的資料庫是ERP的資料庫。<br />ERP是一個資訊管理系統,本身是用我想要聯的那個資料庫,我今天想要用別台電腦去連那資料庫,但是沒有出現那個資料庫。謝謝你Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-20809955376983499482011-02-21T10:27:47.288+08:002011-02-21T10:27:47.288+08:00這很難判斷,
如果SQL Server能遠端連線,那在確認一下「防火牆」的設定。
Client端...這很難判斷,<br /><br />如果SQL Server能遠端連線,那在確認一下「防火牆」的設定。<br /><br />Client端的SMSS軟體版本都一樣嗎?陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-68519252292806147912011-02-21T08:43:08.188+08:002011-02-21T08:43:08.188+08:00作者已經移除這則留言。Unknownhttps://www.blogger.com/profile/14055970047284965126noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-19008870149666810202009-07-31T14:27:22.861+08:002009-07-31T14:27:22.861+08:00分享一下,問題點在那裡?你又是怎麼解決的?分享一下,問題點在那裡?你又是怎麼解決的?陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-58242036910887902642009-07-31T12:00:59.366+08:002009-07-31T12:00:59.366+08:00哈囉~我已經成功了!哈囉~我已經成功了!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-28631754073775190712009-07-30T15:39:10.544+08:002009-07-30T15:39:10.544+08:00您好~想請問您一點小問題~
以下是我一小段程式
Public Shared Function Get...您好~想請問您一點小問題~<br />以下是我一小段程式<br />Public Shared Function GetFriendsList(ByVal UserAccount As String) As String()<br />'建立資料庫連線<br />Dim Conn As SqlConnection = New SqlConnection("Data Source=127.0.0.1\SQLEXPRESS;User ID=annabel;Password=xxxxx;database=STUDENTDA_2")<br />Conn.Open()<br />Dim sqlstr As String = "select * from student where UserAccount='" & UserAccount & "'"<br />Dim cmd As SqlCommand = New SqlCommand(sqlstr, Conn)<br />Dim DR As SqlDataReader = cmd.ExecuteReader()<br /><br />'如果不為空值<br />If DR.HasRows Then<br />Dim friends As Generic.List(Of String) = New Generic.List(Of String)()<br />'如果有值就用While執行DR.Read(), 此Read()會傳回boolean值並往前下一個資料行 <br />While (DR.Read())<br />Dim studentname As String = DR("studentName")<br />friends.Add(studentname)<br />End While<br />'回傳 String() , 當然您也可以直接回傳Generic.List(Of String), 也很方便操作 <br />Return friends.ToArray()<br />Else<br />Return Nothing '如果沒有取得值就回傳Nothing <br />End If<br />DR.Close()<br />Conn.Close()<br /><br />執行後一直卡在Conn.Open()就會出現例外狀況"無法開啟登入所要求的資料庫 "STUDENTDA_2"。登入失敗。 使用者 'annabel' 的登入失敗"<br />想請問您我該怎麼解決呢?(平常也是用這組帳密就可以登入資料庫了!)是我的連線字串有問題?還是哪邊設定有問題呢?謝謝您~Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-73394083417976956332009-07-20T10:34:33.455+08:002009-07-20T10:34:33.455+08:00錯誤訊息你都看懂了嗎?錯誤訊息你都看懂了嗎?陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-39644537825971255932009-07-19T10:56:41.615+08:002009-07-19T10:56:41.615+08:00請問我是權限有問題嗎?因為一直找不到答案試了好久都出現差不多的狀況
http://black-fac...請問我是權限有問題嗎?因為一直找不到答案試了好久都出現差不多的狀況<br />http://black-faced-spoonbill.com.tw/birdnews/index.aspx<br />Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. <br /><br />Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.<br /><br />It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS.silviahttps://www.blogger.com/profile/02442809639975004931noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-71716756798630448572009-07-13T10:11:23.620+08:002009-07-13T10:11:23.620+08:001、先學習看錯誤訊息。
2、單就錯誤訊息來看,與資料庫無關。
3、HTTP 404,是找不到路徑。是...1、先學習看錯誤訊息。<br />2、單就錯誤訊息來看,與資料庫無關。<br />3、HTTP 404,是找不到路徑。是否確認一下,你的路徑是否有問題?陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-42138460106417961232009-07-12T14:41:18.493+08:002009-07-12T14:41:18.493+08:00請問我用的是#c用的開發工具跟您一樣,但是我把東西上傳到租用的網路伺服器,結果卻出現這個狀況,請問我...請問我用的是#c用的開發工具跟您一樣,但是我把東西上傳到租用的網路伺服器,結果卻出現這個狀況,請問我要如何解決呢,因為我是新手問了很多人都沒辦法給我方向跟解答,我不曉得到底問題出在哪裡該怎麼辦我一點資料庫概念都沒有<br />http://black-faced-spoonbill.com.tw/spoonbill/index.aspxAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-43747389407576342352009-06-09T16:58:35.955+08:002009-06-09T16:58:35.955+08:00感謝您的分享讓我解決SQL 2005 Express相關的問題,在此再跟你說聲謝謝。感謝您的分享讓我解決SQL 2005 Express相關的問題,在此再跟你說聲謝謝。Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-85409393940987852422009-04-22T09:17:00.000+08:002009-04-22T09:17:00.000+08:00Express基本上就是有限制的版本,你所需要的功能未含在Express版本中,詳細的規格你可以參考...Express基本上就是有限制的版本,你所需要的功能未含在Express版本中,詳細的規格你可以參考:<br />1. http://download.microsoft.com/download/2/D/F/2DF66C0C-FFF2-4F2E-B739-BF4581CEE533/SQLServer2008EnterpriseandStandardFeature%20Compare.pdf<br />2. http://download.microsoft.com/download/e/8/8/e8859616-e95d-41fe-9f81-ff88388d772b/SQLServer%202008CompareComapctExpress.pdf陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-221886930082258292009-04-21T23:34:00.000+08:002009-04-21T23:34:00.000+08:00Express 如何叫出job& Database mail
請告知謝謝!Express 如何叫出job& Database mail<br />請告知謝謝!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-82838199053133470082009-04-07T09:50:00.000+08:002009-04-07T09:50:00.000+08:00Sql Server Browser有沒有開啟?Sql Server Browser有沒有開啟?陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-54020269745895208502009-04-03T21:49:00.000+08:002009-04-03T21:49:00.000+08:00請問一下~我從第一步連接的時候也出現了錯誤26是因為我的window xp是家用版嗎?請問一下~<BR/>我從第一步連接的時候也出現了錯誤26<BR/>是因為我的window xp是家用版嗎?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-12945444964354130072009-03-27T00:22:00.000+08:002009-03-27T00:22:00.000+08:001.請問兩台的SQL Server版本是否相同,還有管理工具版本。2.2005的管理工具只能管理20...1.請問兩台的SQL Server版本是否相同,還有管理工具版本。<BR/>2.2005的管理工具只能管理2005,2008的管理工具能管2005及2008。<BR/>3.兩台的Firewall都關閉了嗎?陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-30608172514064369382009-01-11T22:35:00.000+08:002009-01-11T22:35:00.000+08:00不好意思 您的文章相當完整想請教一下我是用兩台真實IP的電腦(一台XP 一台vista)SQL se...不好意思 您的文章相當完整<BR/>想請教一下<BR/>我是用兩台真實IP的電腦(一台XP 一台vista)<BR/>SQL server建立在 vista上<BR/>使用XP這台始終無法開啟連線<BR/>一直會出現錯誤26<BR/>不知道您是否有遇過這樣的問題呢?ByMahttps://www.blogger.com/profile/06303649710695372346noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-5764923892293244382008-08-08T13:43:00.000+08:002008-08-08T13:43:00.000+08:00Dear 小聰頭 因為我是從2.0開始學習及使用,所以我學到的"經驗"也就從2...Dear 小聰頭<BR/> 因為我是從2.0開始學習及使用,所以我學到的"經驗"也就從2-->3-->3.5這樣而來,而PC也是從2升到3升到3.5。<BR/><BR/> 所以寫出來的教學才會是這樣的流程。我還真的沒有直接安裝3.5來使用,如果下次出4.0,我會試著從無到有安裝看看,感謝你提供的訊息。陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-87390886433203733062008-08-08T12:49:00.000+08:002008-08-08T12:49:00.000+08:00其實只要用 .NET Framework 3.5 的安裝程式,他自動會幫你裝好 2.0 ~ 3.5 ...其實只要用 .NET Framework 3.5 的安裝程式,他自動會幫你裝好 2.0 ~ 3.5 所有的需求,不需要手動去一個一個裝,洋蔥叔叔https://www.blogger.com/profile/12062571024741746709noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-5383895490106769242008-08-08T11:57:00.000+08:002008-08-08T11:57:00.000+08:00打字方面我會在小心點,感謝你的提醒。打字方面我會在小心點,感謝你的提醒。陳傳興https://www.blogger.com/profile/14720896380519694038noreply@blogger.comtag:blogger.com,1999:blog-1404511988137688219.post-67266552327626265982008-08-08T11:49:00.000+08:002008-08-08T11:49:00.000+08:00不知道說原來有Vitual Basic, Vitual Studio,Vitual Studio 2...不知道說原來有Vi<B>t</B>ual Basic, Vi<B>t</B>ual Studio,Vi<B>t</B>ual Studio 2008 Express這些產品<BR/>只看過Vi<B>s</B>ual Basic, Vi<B>s</B>ual Studio,Vi<B>s</B>ual Studio 2008 Express :pAnonymousnoreply@blogger.com