SQL Server ϵͳ±í
sysforeignkeys
°üº¬¹ØÓÚ±í¶¨ÒåÖÐµÄ FOREIGN KEY Ô¼ÊøµÄÐÅÏ¢¡£¸Ã±í´æ´¢ÔÚÿ¸öÊý¾Ý¿âÖС£
ÁÐÃû Êý¾ÝÀàÐÍ ÃèÊö
constid int FOREIGN KEY Ô¼ÊøµÄ ID¡£
fkeyid int ¾ßÓÐ FOREIGN KEY Ô¼ÊøµÄ±í¶ÔÏó ID¡£
rkeyid int ÔÚ FOREIGN KEY Ô¼ÊøÖÐÒýÓõıí¶ÔÏó ID¡£
fkey smallint ÕýÔÚÒýÓõÄÁÐ ID¡£
rkey smallint ÒÑÒýÓõÄÁÐ ID¡£
keyno smallint ¸ÃÁÐÔÚÒýÓÃÁÐÁбíÖеÄλÖá£
sysindexes
Êý¾Ý¿âÖеÄÿ¸öË÷ÒýºÍ±íÔÚ±íÖи÷Õ¼Ò»ÐС£¸Ã±í´æ´¢ÔÚÿ¸öÊý¾Ý¿âÖС£
ÁÐÃû Êý¾ÝÀàÐÍ ÃèÊö
id int ±í ID£¨Èç¹û indid = 0 »ò 255£©¡£·ñÔòΪË÷ÒýËùÊô±íµÄ ID¡£
status int ÄÚ²¿ÏµÍ³×´Ì¬ÐÅÏ¢¡£
first binary(6) Ö¸ÏòµÚÒ»Ò³»ò¸ùÒ³µÄÖ¸Õë¡£
indid smallint Ë÷Òý ID£º
1 = ¾Û¼¯Ë÷Òý
>1 = ·Ç¾Û¼¯
255 = ¾ßÓÐ text »ò image Êý¾ÝµÄ±íÌõÄ¿
root binary(6) Èç¹û indid >= 1 ºÍ < 255£¬ root ÊÇÖ¸Ïò¸ùÒ³µÄÖ¸Õë¡£Èç¹û indid = 0 »ò indid = 255£¬ root ÊÇÖ¸Ïò×îºóÒ»Ò³µÄÖ¸Õë¡£
minlen smallint ×îСÐдóС¡£
keycnt smallint ¼üµÄÊýÄ¿¡£
groupid smallint ÔÚÆäÉÏ´´½¨¶ÔÏóµÄÎļþ×é ID¡£
dpages int Èç¹û indid = 0 »ò indid = 1£¬ dpages ÊÇÒÑÓÃÊý¾ÝÒ³µÄ¼ÆÊý¡£Èç¹û indid = 255£¬ÆäÉèÖÃΪ 0¡£·ñÔòÊÇÒÑÓÃË÷ÒýÒ³µÄ¼ÆÊý¡£
reserved int Èç¹û indid = 0 »ò indid = 1£¬ reserved ÊÇ·ÖÅä¸øËùÓÐË÷ÒýºÍ±íÊý¾ÝµÄÒ³¼ÆÊý¡£Èç¹û indid = 255£¬ reserved ÊÇ·ÖÅä¸ø text »ò image Êý¾ÝµÄÒ³¼ÆÊý¡£·ñÔòÊÇ·ÖÅä¸øË÷ÒýµÄÒ³¼ÆÊý¡£
used int Èç¹û indid = 0 »ò indid = 1£¬ used ÊÇÓÃÓÚËùÓÐË÷ÒýºÍ±íÊý¾ÝµÄ×ÜÒ³Êý¡£Èç¹û indid = 255£¬ used ÊÇÓÃÓÚ text »ò image Êý¾ÝµÄÒ³¼ÆÊý¡£·ñÔòÊÇÓÃÓÚË÷ÒýµÄÒ³¼ÆÊý¡£
rowcnt bigint »ùÓÚ indid = 0 ºÍ indid = 1 µÄÊý¾Ý¼¶ÐмÆÊý¡£Èç¹û indid = 255£¬ rowcnt ÉèÖÃΪ 0¡£
rowmodctr int ¶Ô×ÔÉϴθüбíµÄͳ¼Æºó²åÈ롢ɾ³ý»ò¸üÐÂÐеÄ×ÜÊý½øÐмÆÊý¡£
xmaxlen smallint ×î´óÐдóС¡£
maxirow smallint ×î´ó·ÇÒ¶Ë÷ÒýÐдóС¡£
OrigFillFactor tinyint ´´½¨Ë÷ÒýʱʹÓõÄÆðʼÌî³äÒò×ÓÖµ¡£²»±£Áô¸ÃÖµ£»È»¶ø£¬Èç¹ûÐèÒªÖØд´
Ïà¹ØÎĵµ£º
ADO.net£¬Linq to SQLºÍEntity FrameworkÐÔÄÜʵ²â·ÖÎö
¡¡¡¡×î½üÎĵµÐ´Á˲»ÉÙ£¬µ¼ÖÂWordºÍExcelµÄʹÓÃÄÜÁ¦·ÉÒ»°ã³É³¤¡£¿¼Âǵ½ÏîÄ¿ÖжÁдÊý¾Ý¿âµÄ·½·¨´æÔÚЧÂʲ»¸ß£¬ÒÔÖÂÓ°ÏìÓû§ÌåÑéµÄÎÊÌ⣬¾ö¶¨²âÊÔÒ»ÏÂMicrosoftÐÂÍÆÐеÄLinqºÍEFÄܲ»ÄÜÔÚЧÂÊÉÏÓÐËù¸Ä½ø¡£
¡¡¡¡²âÊÔ»·¾³µ±È»¾ÍÊÇÎÒÕą̂±Ê¼Ç±¾ÁË£¬ÊÜÏÞÓëÓ²ÅÌתËÙ£¬ÔËÐÐÆð ......
java Á¬½Ó sql 2005 µÄ·½·¨£º
1¡£µ½Î¢Èí¹Ù·½ÍøÕ¾ÏÂÔØ2005µÄjdbc²¢½âѹ£¬»ñµÃÎļþsqljdbc.jar
2¡£¸´ÖÆÎļþsqljdbc.jarµ½jdkĿ¼\jdk1.5\jre\lib\extÏ¡£
3¡£¿ªÊ¼-¡µ³ÌÐò-¡µsql server 2005-¡µÅäÖù¤¾ß-¡µSQL Server Configuration Manager¡£Æô¶¯sql 2005·þÎñ¡£
µã»÷ sql server2005ÍøÂçÅäÖýڵ㣬²¢Ñ¡ÖÐ&rd ......
ÔÚƽʱµÄ¹¤×÷¹ý³ÌÖУ¬×÷ΪDBA½ÇÉ«¹ÜÀíÊý¾Ý¿â£¬Í·ÄÔÖеÄÓ¡ÏóÍùÍùÊÇÊý¾Ý¿âʵÀýÃû³Æ£¬¶ø²»»áÈ¥¹ØÐÄServerµÄIP£¬¶ø×÷ΪDeveloperµÄ½ÇÉ«£¬ËûÃÇÍùÍùÏëÖªµÀÖªµÀServer IpºÍ¶Ë¿ÚºÅ¡£ËùÒÔ£¬DBA»á¾³£±»Îʼ°µ½£ºXXXʵÀýµÄIPºÍ¶Ë¿ÚºÅÊÇʲô£¿
Õâ¸öÎÊÌ⣬µ±È»ÎÒÃÇ¿ÉÒÔLoginµ½OS²é¿´IP¡¢Ê¹ÓÃÅäÖƹÜÀí¹¤¾ß»ñÈ¡µ½¶Ë¿ÚºÅ¡£µ«ÊÇ£¬Õâ¸ö·½·¨·Ç ......
Microsoft SQL Server Profiler ÊÇ SQL ¸ú×ÙµÄͼÐÎÓû§½çÃ棬ÓÃÓÚ¼àÊÓ Êý¾Ý¿âÒýÇæ»ò Analysis Services µÄʵÀý¡£Äú¿ÉÒÔ²¶»ñÓйØÿ¸öʼþµÄÊý¾Ý²¢½«Æä±£´æµ½Îļþ»ò±íÖй©ÒÔºó·ÖÎö¡£ÀýÈ磬¿ÉÒÔ¶ÔÉú²ú»·¾³½øÐмàÊÓ£¬Á˽âÄÄЩ´æ´¢¹ý³ÌÓÉÓÚÖ´ÐÐËÙ¶ÈÌ«ÂýÓ°ÏìÁËÐÔÄÜ¡£
¿ÉÒÔʹÓà SQL Server ProfilerÀ´´´½¨Ä£°å£¬¶¨ÒåÒª°üº¬ÔÚ¸ú×ÙÖ ......
Êý¾Ý²É¼¯Öг£ÓõÄSQLÓï¾ä
ÏàͬµÄSQLÓï¾äÔËÓõ½²»Í¬Êý¾Ý¿âÖлáÓÐÂÔ΢µÄ²î±ð£¬¶Ô×Ö·û±äÁ¿µÄÒªÇó£¬Ïà¹Øº¯ÊýµÄ±ä»¯£¬ÒÔ¼°Óï·¨¹æÔòµÄ²»Í¬µÈµÈ£¬ÀýÈ磺oracleÊý¾Ý¿âÖжÔ×Ö¶ÎÃüÃû±ðÃûʱ²»ÐèÒªas ×Ö·û£¬Ã»ÓÐmonth()£¬year£¨£©µÈʱ¼äº¯ÊýµÈµÈ£¬accessÊý¾Ý¿âÖÐÔÚʹÓÃinner joinÖ´ÐÐÄÚ²¿ÁªºÏʱÌõ¼þÐèÓ㨣©£¬µ±È»»¹Óкܶ ......