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

SQLÊý¾Ý¿â˵Ã÷Êé

ÅäÖÃÔ´³ÌÐò
¸½¼ÓÊý¾Ý¿âSQL Server 2005
£¨1£©½«TM\01\App_DataÎļþ¼ÐÖеÄdb_SIS.mdfºÍdb_SIS_log.ldfÎļþ¿½±´µ½SQL Server 2005°²×°Â·¾¶ÏµÄMSSQL.1\MSSQL\DataĿ¼Ï¡£
£¨2£©Ñ¡Ôñ¿ªÊ¼/³ÌÐò/Microsoft SQL Server 2005/SQL Server Management StudioÏ½øÈëµ½“Á¬½Óµ½·þÎñÆ÷”Ò³Ã棬Èçͼ1.1Ëùʾ¡£
ͼ1.1  Á¬½Óµ½·þÎñÆ÷
£¨3£©ÔÚ“·þÎñÆ÷Ãû³Æ”ÏÂÀ­ÁбíÖÐÑ¡ÔñSQL Server 2005·þÎñÆ÷Ãû³Æ£¬È»ºóµ¥»÷¡¾Á¬½Ó¡¿°´Å¥¡£
£¨4£©ÔÚ“¶ÔÏó×ÊÔ´¹ÜÀíÆ÷”ÖÐÓÒ¼üµ¥»÷“Êý¾Ý¿â”½Úµã£¬ÔÚµ¯³öµÄ²Ëµ¥ÖÐÑ¡Ôñ“¸½¼Ó”Ïµ¯³ö“¸½¼ÓÊý¾Ý¿â”¶Ô»°¿ò£¬Èçͼ1.2Ëùʾ¡£
ͼ1.2  ¸½¼ÓÊý¾Ý¿â
£¨5£©µ¥»÷¡¾Ìí¼Ó¡¿°´Å¥£¬ÔÚµ¯³öµÄ“¶¨Î»Êý¾Ý¿âÎļþ”¶Ô»°¿òÖÐÑ¡ÔñÊý¾Ý¿âÎļþ·¾¶£¬Èçͼ1.3Ëùʾ¡£
ͼ1.3  ¶¨Î»Êý¾Ý¿âÎļþ
£¨6£©ÒÀ´Îµ¥»÷¡¾È·¶¨¡¿°´Å¥£¬Íê³ÉÊý¾Ý¿â¸½¼Ó²Ù×÷¡£
¸ü¸ÄÁ¬½ÓSQL Server 2005Êý¾Ý¿â·þÎñÆ÷µÄÃû³Æ
£¨1£©´ò¿ªÔ´³ÌÐò·¾¶ÏÂTM\01\ App_CodeÎļþ¼ÐÖУ¬ ½«¸ÃÎļþ¼ÐÖеÄDataBase.csÎļþÒÔ¼Çʱ¾·½Ê½´ò¿ª£¬½«Êý¾ÝÔ´Á¬½Ó·þÎñÆ÷µÄÃû³Æ¸ü¸ÄΪ±¾»úSQL Server 2005·þÎñÆ÷µÄÃû³Æ£¬Èçͼ1.4Ëùʾ¡£
ͼ1.4  Ð޸ķþÎñÆ÷Ãû³Æ
ÅäÖÃIIS
£¨1£©ÒÀ´ÎÑ¡Ôñ“¿ªÊ¼”/“ÉèÖÔ/“¿ØÖÆÃæ°å”/“¹ÜÀí¹¤¾ß”/“InternetÐÅÏ¢·þÎñ(IIS)¹ÜÀíÆ÷”Ñ¡Ïµ¯³ö“InternetÐÅÏ¢·þÎñ(IIS)¹ÜÀíÆ÷”´°¿Ú£¬Èçͼ1.5Ëùʾ¡£
ͼ1.5 “InternetÐÅÏ¢·þÎñ(IIS)¹ÜÀíÆ÷”´°¿Ú
£¨2£©Ñ¡ÖГĬÈÏÍøÕ¾”½Úµã£¬µ¥»÷ÓÒ¼ü£¬Ñ¡Ôñ“ÊôÐÔ”£¬Èçͼ1.6Ëùʾ¡£
ͼ1.6  Ñ¡Ôñ“ÊôÐÔ”²Ëµ¥Ïî
£¨3£©µ¯³ö“ĬÈÏÍøÕ¾ ÊôÐÔ”¶Ô»°¿ò£¬µ¥»÷“ÍøÕ¾”Ñ¡Ï£¬ÔÚ“IPµØÖ·”ÏÂÀ­ÁбíÖÐÑ¡Ôñ±¾»úIPµØÖ·¡£Èçͼ1.7Ëùʾ¡£
ͼ1.7  “ĬÈÏÍøÕ¾ ÊôÐÔ”´°¿Ú
£¨4£©µ¥»÷“Ö÷Ŀ¼”Ñ¡Ï£¬Èçͼ1.8Ëùʾ¡£µ¥»÷¡¾ä¯ÀÀ¡¿°´Å¥£¬µ¯³ö“ä¯ÀÀÎļþ¼Ð”¶Ô»°¿ò£¬Ñ¡ÔñÄúµÄÍøվ·¾¶¡£
ͼ1.8  Ñ¡Ôñ³ÌÐò·¾¶
£¨5£©Ñ¡ÖÐÊ×Ò³Îļþ“Default.aspx”£¬µ¥»÷Êó±êÓÒ¼ü£¬ÔÚµ¯³öµÄ²Ëµ¥ÖÐÑ¡Ôñ“ä¯ÀÀ”²Ëµ¥Ïî¡£
ʹÓÃ˵Ã÷
ϵͳ½éÉÜ
¸ù¾ÝÐèÇó·ÖÎöµÄÃèÊöÒÔ¼°ÓëÓû§µÄ¹µÍ¨£¬ÏÖÖƶ¨ÍøվʵÏÖ¹¦ÄÜÈçÏ£º
l         Áé»î¿ìËÙµÄ


Ïà¹ØÎĵµ£º

SQL *PLUS RepostµÄ¿ª·¢·½·¨

SQL *PLUS  RepostµÄ¿ª·¢·½·¨
ʹÓÃSQL*PLUS ¿ÉÖ±½ÓÔÚIE BrowserÖÐÉú³É¹æÕûµÄ×Ö·ûÐÍReport. ʵÏÖ·½·¨¼òµ¥£¬²¼ÊðÈÝÒס£
·½·¨:
1.       ÀûÓÃÎı¾±à¼­Æ÷±àдSQL*PLUS  ½Å±¾£¬±£´æ³É .sql Îļþ¡£
2.       ÉÏ´«sql ÎļþÖÁÓ¦ÓõÄsql Ŀ¼¡£
3.  ......

¼õÉÙSQLÈÕÖ¾Îļþ´óС

Ò»¡¢ÓÃÈçϲ½×öÁË£º
1¡¢DUMP¡¡TRANSACTION¡¡¿âÃû¡¡WITH¡¡no_log
2¡¢dbcc
shrinkfile(logfilename)
3¡¢ÊÕËõÊý¾Ý¿â
4¡¢É趨×Ô¶¯ÊÕËõ¡£
¡¡¡¡¶þ¡¢·ÖÀëÊý¾Ý¿â,ɾ³ýÈÕÖ¾
Îļþ,ÔÙ¸½¼Ó,OK!ÓÒ»÷Êý¾Ý¿â£­£­ËùÓÐÈÎÎñ£­£­·ÖÀëor ¸½¼Ó
¡¡¡¡Èý¡¢1¡¢backup
log¡¡¿âÃû¡¡WITH¡¡no_log£¬2¡¢dbcc shrinkfile(logfilename)£¬3¡ ......

SQLµÝ¹éÁ½ÕÅÊý¾Ý±í

²¿ÃŽṹ
Id name parentId
-----------------
1 ÈËʲ¿ 0
2
¿ª·¢²¿ 1
3 ·þÎñ²¿ 1
Óû§½á¹¹
Id name departId
--------------------
101
ÕÅÈý 2
102 ÀîËÄ 2
103 ÍõÎå 3
ÏëµÃµ½
ID name
parentId
-------------------
1 ÈËʲ¿ 0
2 ¿ª·¢²¿ 1
101
ÕÅ ......

³¹µ×Çå³ýSQL SERVERÊý¾Ý¿â

ÔÚ¸ø¸÷ºÏ×÷ѧУ°²×°Ó¦ÓÃϵͳ¹ý³ÌÖУ¬·¢ÏÖѧУÀïµÄSQL SERVER 2000Êý¾Ý¿âËð»µÁËÖØ×°ºó¶¼·¢ÉúÁËͬÑùµÄÎÊÌ⣬ÄǾÍÊÇ°²×°SQL SERVERÊý¾Ý¿â²»³É¹¦¡£Ô­Òò£º¼´Ê¹Äãͨ¹ý¿ØÖÆÃæ°åÀïµÄ“Ìí¼Ó/ɾ³ý³ÌÐò” Õý³£µÄжÔØSQL SERVERÊý¾Ý¿â£¬µ«ÊÇ£¬SQL SERVER»¹ÊÇûÓÐÍêȫжÔظɾ»£¬»¹ÐèÒªÊÖ¹¤½øÐÐһЩ²Ù×÷¡£Òò´ËÖØа²×°²»³É¹¦£¬º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ