全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:934
推到 Plurk!
推到 Facebook!

About remote access SQL server

尚未結案
marker
一般會員


發表:9
回覆:5
積分:2
註冊:2004-11-05

發送簡訊給我
#1 引用回覆 回覆 發表時間:2005-05-18 12:41:06 IP:210.177.xxx.xxx 未訂閱
Hi all, My situation is that I have some SQL servers, some of them are running MsSQL 2000, some of them are running MsSQL 7. My program have some operation that need to use data across those servers. I found out that if I logon the server running MsSQL 2000 the following SQL work fine while it doesn't when I logon the server running MsSQL 7. select count(*) from OPENDATASOURCE('SQLOLEDB', 'DATA SOURCE=Server1; USER ID=sa;PASSWORD=sa').some_db.dbo.some_table It seems that when I logon the server running MsSQL 7, it seems to be unable to access or find the remote MsSQL 2000 server. How to fix this? Thanks for any reply. Mark Leung
pcboy
版主


發表:177
回覆:1838
積分:1463
註冊:2004-01-13

發送簡訊給我
#2 引用回覆 回覆 發表時間:2005-05-20 09:41:01 IP:210.69.xxx.xxx 未訂閱
用兩組 DataSource 和其他資料庫相關元件 去資料庫抓資料 ********************* 如果您滿意答案,請結案 *********************
------
能力不足,求助於人;有能力時,幫幫別人;如果您滿意答覆,請適時結案!

子曰:問有三種,不懂則問,雖懂有疑則問,雖懂而想知更多則問!
timhuang
尊榮會員


發表:78
回覆:1815
積分:1608
註冊:2002-07-15

發送簡訊給我
#3 引用回覆 回覆 發表時間:2005-05-20 18:07:18 IP:203.95.xxx.xxx 未訂閱
Hi, if you want to do so, please use the linked server in SQL SERVER. Check the [sp_addlinkedserver] stored procedure in help to see how to configure the linked server.
系統時間:2024-06-27 3:11:15
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!