MS-SQL > µ¥ÀÌŸ º£À̽º°¡ ´Ù¸¥ Å×À̺í Query ¹æ¹ý µî·ÏÀÏ : 2017-07-03 19:03 Á¶È¸¼ö : 52,589¾È³çÇϼ¼¿ä!
±×µ¿¾È °Ç°ÇϼÌÁö¿©? ¿À´Ã ÇؾßÇÒ Äõ¸®´Â °°Àº ¼¹öÀÇ µ¥ÀÌŸº£À̽º°¡ ¿©·¯°³ ÀÖ½À´Ï´Ù. ¸¸¾à ankyu ¶ó´Â µ¥ÀÌŸº£À̽º¿Í skylla ¶ó´Â µ¥ÀÌŸº£À̽ºÀÇ member Å×À̺íÀÌ °¢°¢ Á¸ÀçÇÑ´Ù°í °¡Á¤ÇßÀ»¶§, ÀÌ µÎ°³ÀÇ member Å×À̺íÀ» Äõ¸®Çؼ Àоî¿À´Â ¹æ¹ýÀ» ¾Ë¾Æº¸µµ·Ï ÇÏ°Ú½À´Ï´Ù. °´Ã¼Çü½ÄÀº ¾Æ·¡¿Í °°½À´Ï´Ù. [server name].[database name].[owner].[object]°¡ ¿ÏÀüÇÑ 4part namingÀÔ´Ï´Ù. server name Àº »ý·« ÇÒ¼öµµ ÀÖÁö¸¸, ¼¹ö³×ÀÓ±îÁö ±â¼úÇØÁִ°ÍÀº ÁÁÀº ½À°üÀ̶ó°í ÇÒ¼ö ÀÖ½À´Ï´Ù. ¾Æ·¡ÀÇ Äõ¸®´Â Á¦ ¼¹ö¿¡¼ Å×½ºÆ®ÇÑ Äõ¸®ÀÔ´Ï´Ù. select * from [SKYLLA_SERVER2].[skylla].[dbo].[member] A , [SKYLLA_SERVER2].[ankyu].[dbo].[member] B where a.name=b.name skylla_server2 ´Â server_name À̸ç, skylla ´Â µ¥ÀÌŸº£À̽º¸í, dbo ´Â ¼ÒÀ¯ÁÖ ¸íÀÔ´Ï´Ù. member ´Â Å×À̺í ÀÔ´Ï´Ù.
|