最近Linked Serverを使用する事がありその際の情報共有です。
以外に接続方法が分からない人は下記をお試しください。
※事前に下記URLよりLinked Serverの設定済の方対象。
linked serverの設定は大体下記のURLでOK
URL:
http://learnsqlwithbru.com/2012/01/06/create-linked-server-to-connect-to-another-sql-server-part-i/
型:
select *
from [server IP].[DB名].[dbo].[table名]
例:
selecg * from [192.168.184.111].[DB].[dbo].[TableA]
ポイントは[]を外さないこと。
dboの箇所はそのまま使用。
変更箇所は、server IP,DB名,テーブル名の3カ所
More than 5 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme
List of users who liked
00