¾È±Ô °øºÎ¹æ

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 ´Â Å×À̺í ÀÔ´Ï´Ù.
 
¡Ø Ȥ½Ã µµ¿òÀÌ µÇ¼Ì´Ù¸é ´ñ±Û¿¡ ÇѸ¶µð ³²°ÜÁÖ¼¼¿ä!
ÀÛ¼ºÀÚ   ºñ¹Ð¹øÈ£
ÀÚµ¿±Û ¹æÁö     (ÀÚµ¿±Û ¹æÁö ±â´ÉÀÔ´Ï´Ù.)
³»¿ë   ´ñ±Û´Þ±â 
À̸ÞÀÏ ¹®ÀÇ : cak0280@nate.com  
Copyright 2000 By ENTERSOFT.KR All Rights Reserved.