Microsoft SQL Server 2000 - 8.00.2187 (Intel X86) Mar 9 2006 11:38:51
Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.2
(Build 3790: Service Pack 2) ÀÎ °¡¿îµ¥ À©µµ¿ë DB2¸¦ ¼³Ä¡ÇÏ°í..
Linked Server¿Í DTS¸¦ ¿Ï·áÇÑ ÈÄ...
´ÙÀ½°ú °°ÀÌ Äõ¸®¸¦ ÇÏ·ÁÇÏ´Ï, ¿À·ù°¡ ¹ß»ýÇÏ¿© ¹®Àǵ帳´Ï´Ù.
(1) »çÀüÀÛ¾÷ :
MSSQL2K¿Í DB2¸¦ ODBC·Î ½Ã½ºÅÛ DNS·Î µî·ÏÇصРÈÄ
MSSQL2K¿¡¼ DB2¸¦ Linked Serverµî·Ï( ºä, Å×ÀÌºí ¸ñ·ÏÈ®ÀÎOK!)
(2) ÁøÇàÀÛ¾÷ :
DTS·Î MSSQL2KÀÇ PUBS µðºñÀÇ SALES Å×ÀÌºí µ¥ÀÌŸ¸¦ DB2ÀÇ SAMPLEÀ̶ó´Â µðºñ
¾ÈÀÇ SALES¶ó´Â Å×ÀÌºí¿¡ µ¥ÀÌŸ Àü¼Û OK! (Å×ÀÌºí³» Ä÷³Å¸ÀÔÀº µ¿ÀÏ)
(3) Á¶È¸ÀÛ¾÷ ¹× ¿¡·¯³»¿ë :
(Á¶È¸´Â MSSQL Äõ¸®ºÐ¼®±â »ó¿¡¼ ½Ç½Ã)
SELECT'SALES_MS' , COUNT(*) , GETDATE()
FROM PUBS.DBO.SALES
UNION ALL
SELECT'SALES_DB2', COUNT(*) , GETDATE()
FROM DB2_LOCAL..ADMINISTRATOR.SALES
°á°ú³»¿ë(¿¡·¯³»¿ë) :
¼¹ö: ¸Þ½ÃÁö 7318, ¼öÁØ 16, »óÅ 1, ÁÙ 1
OLE DB °ø±ÞÀÚ 'IBMDADB2.DB2COPY1'ÀÌ(°¡) À߸øµÈ ¿ Á¤ÀǸ¦ ¹ÝȯÇß½À´Ï´Ù.
OLE DB ¿À·ù ÃßÀû [Non-interface error: OLE/DB provider returned an invalid column definition.].
Linked Server¿Í DTS°¡ ¸ðµÎ ¼º°øÇߴµ¥...¿Ö Àú¿Í °°Àº ¿À·ù°¡ ³ª´ÂÁö...
µµ¿òºÎŹµå¸³´Ï´Ù...
¿À¶óŬÀ̳ª DB2ÀÇ °æ¿ì sysdate¸¦ »ç¿ëÇÕ´Ï´Ù.
SELECT'SALES_MS' , COUNT(*) , GETDATE() AS today_dt
FROM PUBS.DBO.SALES
UNION ALL
SELECT'SALES_DB2', COUNT(*) , sysdate AS today_dt
FROM DB2_LOCAL..ADMINISTRATOR.SALES
·Î ÇØ º¸¼¼¿ä.
¸í·ÉÀ» MSSQL¿¡¼ ´øÁö´Â °ÍÀ̱⶧¹®¿¡.. ¶ÇÇÑ MSSQLÀÇ sales³ª DB2ÀÇ Sales³ª °°Àº Ä®·³Å¸ÀÔ°ú °°Àº µ¥ÀÌŸÀ̱⶧¹®¿¡... MSSQL¿¡¼ ÀνÄÇÒ ¼ö ÀÖ´Â ¸í·ÉÀ» ¾²µç, DB2¿¡¼ »ç¿ëµÇ´Â ¸í·ÉÀ» ¾²µç
¿À·ù¾øÀÌ °ªÀÌ ³ª¿Í¾ß Çϴµ¥..¾ÈµÇ´Â°Ô..¹®Á¦±º¿ä