----start
ÎÊÌ⣺²é¿´DB2 °æ±¾---SELECT * from SYSIBM.SYSVERSIONS
ÎÊÌ⣺²é¿´ÏµÍ³ÖÐÓÐÄÄЩ±íÒÔ¼°ÕâЩ±íµÄ¸ÅÒªÐÅÏ¢£ºSELECT * from SYSCAT.TABLES
ÎÊÌ⣺²é¿´Ä³¸ö±íÓÐÄÄЩÁÐÒÔ¼°ÕâЩÁеĸÅÒªÐÅÏ¢£ºSELECT * from SYSCAT.COLUMNS WHERE TABNAME=<YOUR_TABLE_NAME>
---´ýÐøδÍê
---¸ü¶à²Î¼û£ºDB2 SQL ¾«Òª
----ÉùÃ÷£º×ªÔØÇë×¢Ã÷³ö´¦¡£
----last update at 2009.9.25
----write by wave at 2009.9.25
----end
......
SQL ServerÊý¾Ý¿â²éѯËÙ¶ÈÂýµÄÔÒòÓкܶ࣬³£¼ûµÄÓÐÒÔϼ¸ÖÖ£º
1¡¢Ã»ÓÐË÷Òý»òÕßûÓÐÓõ½Ë÷Òý(ÕâÊDzéѯÂý×î³£¼ûµÄÎÊÌ⣬ÊdzÌÐòÉè¼ÆµÄȱÏÝ)
2¡¢I/OÍÌÍÂÁ¿Ð¡£¬ÐγÉÁËÆ¿¾±Ð§Ó¦¡£
3¡¢Ã»Óд´½¨¼ÆËãÁе¼Ö²éѯ²»ÓÅ»¯¡£
4¡¢ÄÚ´æ²»×ã
5¡¢ÍøÂçËÙ¶ÈÂý
6¡¢²éѯ³öµÄÊý¾ÝÁ¿¹ý´ó(¿ÉÒÔ²ÉÓöà´Î²éѯ£¬ÆäËûµÄ·½·¨½µµÍÊý¾ÝÁ¿)
7¡¢Ëø»òÕßËÀËø(ÕâÒ²ÊDzéѯÂý×î³£¼ûµÄÎÊÌ⣬ÊdzÌÐòÉè¼ÆµÄȱÏÝ)
8¡¢sp_lock,sp_who£¬»î¶¯µÄÓû§²é¿´£¬ÔÒòÊǶÁд¾ºÕù×ÊÔ´¡£
9¡¢·µ»ØÁ˲»±ØÒªµÄÐкÍÁÐ
10¡¢²éѯÓï¾ä²»ºÃ£¬Ã»ÓÐÓÅ»¯
¡ñ¿ÉÒÔͨ¹ýÒÔÏ·½·¨À´ÓÅ»¯²éѯ£º
1¡¢°ÑÊý¾Ý¡¢ÈÕÖ¾¡¢Ë÷Òý·Åµ½²»Í¬µÄI/OÉ豸ÉÏ£¬Ôö¼Ó¶ÁÈ¡Ëٶȣ¬ÒÔÇ°¿ÉÒÔ½«TempdbÓ¦·ÅÔÚRAID0ÉÏ£¬SQL2000²»ÔÚÖ§³Ö¡£Êý¾ÝÁ¿(³ß´ç)Ô½´ó£¬Ìá¸ßI/OÔ½ÖØÒª¡£
2¡¢×ÝÏò¡¢ºáÏò·Ö¸î±í£¬¼õÉÙ±íµÄ³ß´ç(sp_spaceuse)
3¡¢Éý¼¶Ó²¼þ
4¡¢¸ù¾Ý²éѯÌõ¼þ£¬½¨Á¢Ë÷Òý£¬ÓÅ»¯Ë÷Òý¡¢ÓÅ»¯·ÃÎÊ·½Ê½£¬ÏÞÖƽá¹û¼¯µÄÊý¾ÝÁ¿¡£×¢ÒâÌî³äÒò×ÓÒªÊʵ±(×îºÃÊÇʹÓÃĬÈÏÖµ0)¡£Ë÷ÒýÓ¦¸Ã¾¡Á¿Ð¡£¬Ê¹ÓÃ×Ö½ÚÊýСµÄÁн¨Ë÷ÒýºÃ(²ÎÕÕË÷ÒýµÄ´´½¨)£¬²»Òª¶ÔÓÐÏ޵ļ¸¸öÖµµÄ×ֶν¨µ¥Ò»Ë÷ÒýÈçÐÔ±ð×ֶΡ£
5¡¢Ìá¸ßÍøËÙ¡£
6¡¢À©´ó·þÎñÆ÷µÄÄÚ´æ,Windows 2000ºÍSQL server 2000ÄÜÖ§³Ö4-8GµÄÄÚ´æ¡£
ÅäÖÃÐéÄâ ......
ÔÚT-sqlµÄд·¨ÉÏÓкܴóµÄ½²¾¿£¬ÏÂÃæÁгö³£¼ûµÄÒªµã£ºÊ×ÏÈ£¬DBMS´¦Àí²éѯ¼Æ»®µÄ¹ý³ÌÊÇÕâÑùµÄ£º
1¡¢²éѯÓï¾äµÄ´Ê·¨¡¢Óï·¨¼ì²é
2¡¢½«Óï¾äÌá½»¸øDBMSµÄ²éѯÓÅ»¯Æ÷
3¡¢ÓÅ»¯Æ÷×ö´úÊýÓÅ»¯ºÍ´æȡ·¾¶µÄÓÅ»¯
4¡¢ÓÉÔ¤±àÒëÄ£¿éÉú³É²éѯ¹æ»®
5¡¢È»ºóÔÚºÏÊʵÄʱ¼äÌá½»¸øϵͳ´¦ÀíÖ´ÐÐ
6¡¢×îºó½«Ö´Ðнá¹û·µ»Ø¸øÓû§¡£
Æä´Î£¬¿´Ò»ÏÂSQL SERVERµÄÊý¾Ý´æ·ÅµÄ½á¹¹£ºÒ»¸öÒ³ÃæµÄ´óСΪ8K(8060)×Ö½Ú£¬8¸öÒ³ÃæΪһ¸öÅÌÇø£¬°´ÕÕBÊ÷´æ·Å¡£
12¡¢CommitºÍrollbackµÄÇø±ðRollback£º»Ø¹öËùÓеÄÊÂÎï¡£Commit£ºÌá½»µ±Ç°µÄÊÂÎûÓбØÒªÔÚ¶¯Ì¬SQLÀïдÊÂÎÈç¹ûҪдÇëдÔÚÍâÃæÈ磺begin tran exec(@s) commit trans»òÕß½«¶¯Ì¬SQLд³Éº¯Êý»òÕß´æ´¢¹ý³Ì¡£
13¡¢ÔÚ²éѯSelectÓï¾äÖÐÓÃWhere×Ö¾äÏÞÖÆ·µ»ØµÄÐÐÊý,±ÜÃâ±íɨÃè,Èç¹û·µ»Ø²»±ØÒªµÄÊý¾Ý£¬ÀË·ÑÁË·þÎñÆ÷µÄI/O×ÊÔ´£¬¼ÓÖØÁËÍøÂçµÄ¸ºµ£½µµÍÐÔÄÜ¡£Èç¹û±íºÜ´ó£¬ÔÚ±íɨÃèµÄÆڼ佫±íËøס£¬½ûÖ¹ÆäËûµÄÁª½Ó·ÃÎʱí,ºó¹ûÑÏÖØ¡£
14¡¢SQLµÄ×¢ÊÍÉêÃ÷¶ÔÖ´ÐÐûÓÐÈκÎÓ°Ïì
15¡¢¾¡¿ÉÄܲ»Ê¹Óùâ±ê£¬ËüÕ¼ÓôóÁ¿µÄ×ÊÔ´¡£Èç¹ûÐèÒªrow-by-rowµØÖ´ÐУ¬¾¡Á¿²ÉÓ÷ǹâ±ê¼¼Êõ£¬È磺ÔÚ¿Í»§¶ËÑ»·£¬ÓÃÁÙʱ±í£¬Table±äÁ¿£¬ÓÃ×Ó²éѯ£¬ÓÃCaseÓï¾äµÈµÈ¡£
Óαê¿ÉÒÔ°´ÕÕËüËùÖ§³ÖµÄÌáÈ¡ ......
CareGroup Ò½ÁÆ×éÖ¯¸ºÔð±£»¤2TB µÄ²¡ÈËÐÅÏ¢ºÍÏà¹ØÊý¾ÝµÄÒþ˽¼°ÍêÕûÐÔ¡£¸Ã×é֯λÓÚ²¨Ê¿¶Ù£¬ÊÇBeth Israel Deaconess ҽѧÖÐÐÄ£¨¹þ·ðҽѧԺµÄ½ÌѧҽԺ£©ÒÔ¼°ÁíÍâÈý¼ÒµØÇøÒ½ÔºµÄĸ¹«Ë¾¡£CareGroup ²ÉÓÃMicrosoft® SQL Server™ 2005£¬½«ÆäÊý¾Ý´æ´¢ÓÚ30¸öʵÀýµÄ390¸öÊý¾Ý¿âÖС£¸Ã×é֯ϣÍû½«Êý¾Ý¿âÉý¼¶µ½SQL Server 2008ÒÔ±ãÀûÓÃÆäй¦ÄÜ£¬°üÀ¨¸ß¼¶Êý¾ÝÉóºËÒÔ¼°Í¸Ã÷»¯µÄ¼ÓÃÜ£¬´Ó¶øÂú×ãHIPAA ¼°ÆäËüÌõÀý¡£CareGroup Ï£Íû²ÉÓÃSQL Server 2008 ÖÐÐÂÔöµÄDeclarative Management Framework À´Ç¿ÖÆ×ñÑÏàÓ¦²ßÂÔ¼°¼Ü¹¹£¬²¢ÇÒ¸Ã×éÖ¯ÕýÔÚ³¢ÊÔ²ÉÓÃMicrosoft Office SharePoint® Server 2007Ëù´´½¨µÄÃÅ»§À´·ÃÎÊSQL Server 2008±¨±í·þÎñ£¬´Ó¶ø½«±¨±í¼¯Öл¯¡£
»ù±¾Çé¿ö
CareGroup Ò½ÁÆ×é֯λÓÚ²¨Ê¿¶Ù£¬ÊÇ4¼ÒµØÇøÒ½ÔºµÄĸ¹«Ë¾£¬ÆäÖаüÀ¨ÖøÃûµÄBeth Israel Deaconess ҽѧÖÐÐÄ£¨¹þ·ðҽѧԺµÄ½ÌѧҽԺ£©£¬´ËÍ⻹°üÀ¨Î»ÓÚ²¨Ê¿¶ÙµÄNew England Baptist Ò½Ôº£¬ÒÔ¼°Î»ÓÚÂíÈøÖîÈûÖݽ£ÇÅÊеÄMount Auburn Ò½Ôº¡£CareGroup Ò½ÁÆ×éÖ¯ÆìϵÄҽԺÿÄêÁÙ´²»áÕï´ÎÊý³¬¹ý40Íò´Î¡£
CareGroup ΪÉÏÊöÒ½ÔºÌṩIT ·þÎñ£¬°üÀ¨´æ´¢³¬¹ý350ÍòÌõµç×Ó²¡ÀúÒÔ¼°¶à¸öÓÃÓÚ±¨±íºÍ·ÖÎöµÄÊý¾Ý²Ö¿â¡£CareGroup ²ÉÓ ......
CyberSavvy ¼áÐÅÈí¼þ×Ô¶¯»¯¿ÉÒÔÈÿͻ§ÇáËÉÏíÊÜÉú»î¡£DataPlace ÊǸù«Ë¾µÄÈí¼þ¼´·þÎñ½â¾ö·½°¸£¬Ò²¿É³Æ֮Ϊ“Êý¾Ý¿â¹¤³§”£¬ËüÄܹ»ÈÃÃæÏò¼¼ÊõÒÔ¼°ÃæÏòÉÌÎñµÄÓû§´´½¨²¢ÐÞ¸Ä×Ô¼ºµÄÊý¾Ý¿â£¬¶øCyberSavvy ¹«Ë¾½«Îª¸ÃÊý¾Ý¿âÌṩÍйܷþÎñ¡£Òò´ËCyberSavvy ¹«Ë¾ÐèÒªÅÍʯ°ã¼á¹ÌµÄÊý¾Ý¿â£¬²¢Í¨¹ýÍòÎÞһʧµÄÊý¾Ý´«Êä»úÖÆÀ´Ö§³Ö¿Í»§¶Ë£¨¼´SmartClient£©Í¬ºǫ́Êý¾Ý¿âÖ®¼äµÄͨÐÅ¡£CyberSavvy ÔÚ΢ÈíÓ¦ÓóÌÐòƽ̨Öв¿ÊðÆä½â¾ö·½°¸£¬¼´²ÉÓÃMicrosoft SQL Server™ 2008 Enterprise Edition ×÷Ϊ·þÎñ¶Ë£¬SQL Server 2008 Express Edition ×÷Ϊ¿Í»§¶Ë¡£CyberSavvy ÒѾÌåÑéµ½ÁËSQL Server 2008 Ëù´øÀ´µÄһϵÁкô¦£¬°üÀ¨¼¯³ÉµÄ¿ª·¢»·¾³¡¢ÀûÓñ¸·ÝѹËõ¹¦ÄÜÀ´¼õÉÙÊý¾Ý´æ´¢¡¢ÀûÓÃSQL Server Service Broker ´ÓÈÝʵÏÖ×Ô¶¯»¯¡¢¼°Æä¿ÉÉìËõÐÔ¡£
»ù±¾Çé¿ö
CyberSavvy ¹«Ë¾Î»ÓÚ»ªÊ¢¶ÙÖݵÄRedmond, ¸ÃÈí¼þ¹«Ë¾¹²ÓÐ17ÃûSOHO °ì¹«µÄ¿ª·¢ÈËÔ±£¬·Ö²¼ÓÚÃÀ¹úºÍ¼ÓÄôó¡£×÷Ϊ΢ÈíµÄºÏ×÷»ï°éÒÔ¼°Î¢ÈíµÄÊ×Ñ¡¾ÏúÉÌ£¬CyberSavvy Ëù¿ª·¢µÄ¶à¿îÓ¦ÓóÌÐò±»Î¢ÈíµÄÏúÊÛ¡¢Êг¡¡¢ÒÔ¼°ÆäËûÍŶÓËùʹÓá£
CyberSavvy Ëù¿ª·¢µÄÉÌÒµÖÇÄÜÓ¦ÓóÌÐòÐèҪͬÊý¾Ý¿â¼¯³É£¬¸Ã¹«Ë¾ÔÚÕâ·½Ãæ¾Ñé·á¸»£¬²¢ÇÒÏ£Íûͨ¹ ......
“¾¹ý²âÊÔÎÒÃÇ·¢ÏÖSQL Server 2008µ±Öеı¸·ÝѹËõ¹¦ÄÜ¿ÉÒÔ1-3±¶µÄѹËõ±È£¬´Ó¶ø¼«´óµÄ¼õÉÙ±¸·ÝËùÐèµÄ´ÅÅ̿ռ䡣”Alexey Yeltsov, ΢Èíϵͳ¹ÜÀíÔ±Ö÷¹Ü¡£
΢ÈíÔÚÈ«ÊÀ½ç¹²ÓÐ6Íò¶àÃûÔ±¹¤£¬ÔÚ2006ÄêµÄ²ÆÕþÊÕÈ볬¹ýÁË500ÒÚÃÀ½ð£¬Óë´ËͬʱҲ²úÉúÁË´óÁ¿ÄÚ²¿Êý¾Ý£¬¹«Ë¾Ï£Íû¶ÔÕâЩÊý¾Ý½øÐм¯ÖÐÒÔ±ãÌṩ¿Í»§µÄ¼¯³É»¯ÊÓͼ¡£ÎªÁËÍê³É¸ÃÈÎÎñ£¬Î¢ÈíµÄIT ²¿ÃŲÉÓÃ΢ÈíÓ¦ÓóÌÐòƽ̨£¬ÀûÓÃMicrosoft SQL Server® 2008À´´´½¨ÆóÒµ¼¶Êý¾Ý²Ö¿â£¨EDW£©£¬²¢½«ÆäÔËÐÐÔÚWindows Server® 2008 ÆóÒµ°æ²Ù×÷ϵͳ֮ÉÏ¡£EDW ÖеÄÊý¾ÝÁ¿ÒѾ´ïµ½ÁË2.5TB ²¢ÇÒÔÚ²¿ÊðºóµÄ12¸öÔÂÄÚÔ¤¼Æ½«´ïµ½10TB£¬´Ó¶ø°ïÖú¹«Ë¾¸üºÃµÄÁ˽â¿Í»§¡£IT ²¿ÃÅ·¢ÏÖÀûÓÃSQL Server 2008µÄ±¸·ÝѹËõ¹¦ÄÜ£¬¿ÉÒÔ½ÚÔ¼1/3µÄ±¸·Ý´æ´¢¿Õ¼ä¡£Î¢Èí¹«Ë¾Í¬Ê±»¹ÏíÊܵ½ÁËSQL Server 2008Öмò»¯µÄÊý¾Ý¹ÜÀí¹¦ÄÜ¡£
Çé¿ö
΢Èí¹«Ë¾ÔÚÈ«ÊÀ½ç89¸ö¹ú¼Ò¾ùÓа칫ÊÒ£¬ÊÇÊÀ½çÉÏ×î´óµÄÈí¼þ¹«Ë¾£¬2006ÄêµÄ²ÆÕþÊÕÈ볬¹ýÁË500ÒÚÃÀ½ð¡£ÈçͬÆäËü´óÐÍÆóÒµÒ»Ñù£¬¸Ã¹«Ë¾ÐèÒªÊý¾Ý´æ´¢¿âÀ´¸üºÃµÄ¸ú×ÙÆäÒµÎñ²¢·ÖÎö¿Í»§ÐèÇó¡£
΢Èí¹«Ë¾µÄÔ±¹¤ÊýÁ¿³¬¹ýÁË6ÍòÃû£¬²¢ÇÒÒѾӵÓÐÁËÊý¾Ý²Ö¿â¡¢Êý¾ÝÊг¡¡¢ÒÔ¼°ÆäËü´æ´¢¿âÔÚ¹«Ë¾ÄÚ²¿À´Ö§³Ö±¨±íºÍ·ÖÎöÒÔ¼°ÆäËü¹¦ÄÜ£¬ÀýÈ ......