SQL Serverããªã³ã¯ ãµã¼ãã¼ã§ Oracle ãã¼ã¿ãã¼ã¹ãåç §ããã«ã¯
SQL Server ã§ã¯ããªã³ã¯ ãµã¼ãã¼ãå©ç¨ã㦠Oracle ãã¼ã¿ãã¼ã¹ã®ãã¼ã¿ãåç §ãããã¨ãã§ãã¾ããããã¯æ¬¡ã®ããã«å©ç¨ãã¾ãã
-- ãªã³ã¯ãµã¼ãã¼ã ORCL ã¨ããããããµã¼ãã¹åã® Oracle 9i ã«å¯¾ãã¦è¨å® USE master EXEC sp_addlinkedserver @server = N'ORA' , @provider=N'MSDAORA' , @srvproduct=N'Oracle' , @datasrc=N'ORCL' go -- ORCL ä¸ã® SCOTT ã¨ãã¦ãã°ã¤ã³ããè¨å® EXEC sp_addlinkedsrvlogin @rmtsrvname = N'ORA' , @locallogin = NULL , @useself = N'False' , @rmtuser = N'SCOTT' , @rmtpassword = N'tiger' go -- SCOTT ã® EMP 表ãåç § SELECT * FROM ORA..SCOTT.EMP
Oracle ãã¼ã¿ãã¼ã¹ã¸ã¢ã¯ã»ã¹ããã«ã¯ãOracle ã¯ã©ã¤ã¢ã³ããã¤ã³ã¹ãã¼ã«ãã¦ããå¿
è¦ãããã¾ãã
sp_addlinkedserver 㨠sp_addlinkedsrvlogin ã®è©³ç´°ï¼ãã«ãï¼ã¯ãã¡ããã
http://msdn.microsoft.com/ja-jp/library/ms190479.aspx
http://msdn.microsoft.com/ja-jp/library/ms189811.aspx