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

SQL Server2000ÖÐËÀËø¾­Ñé×ܽá

ËäÈ»²»ÄÜÍêÈ«±ÜÃâËÀËø£¬µ«¿ÉÒÔʹËÀËøµÄÊýÁ¿¼õÖÁ×îÉÙ¡£½«ËÀËø¼õÖÁ×îÉÙ¿ÉÒÔÔö¼ÓÊÂÎñµÄÍÌÍÂÁ¿²¢¼õÉÙϵͳ¿ªÏú£¬ÒòΪֻÓкÜÉÙµÄÊÂÎñ£º
»Ø¹ö£¬¶ø»Ø¹ö»áÈ¡ÏûÊÂÎñÖ´ÐеÄËùÓй¤×÷¡£
ÓÉÓÚËÀËøʱ»Ø¹ö¶øÓÉÓ¦ÓóÌÐòÖØÐÂÌá½»¡£
ÏÂÁз½·¨ÓÐÖúÓÚ×î´óÏ޶ȵؽµµÍËÀËø£º
°´Í¬Ò»Ë³Ðò·ÃÎʶÔÏó¡£
±ÜÃâÊÂÎñÖеÄÓû§½»»¥¡£
±£³ÖÊÂÎñ¼ò¶Ì²¢ÔÚÒ»¸öÅú´¦ÀíÖС£
ʹÓõ͸ôÀ뼶±ð¡£
ʹÓðó¶¨Á¬½Ó¡£
°´Í¬Ò»Ë³Ðò·ÃÎʶÔÏó
Èç¹ûËùÓв¢·¢ÊÂÎñ°´Í¬Ò»Ë³Ðò·ÃÎʶÔÏó£¬Ôò·¢ÉúËÀËøµÄ¿ÉÄÜÐԻήµÍ¡£ÀýÈ磬Èç¹ûÁ½¸ö²¢·¢ÊÂÎñ»ñµÃ Supplier ±íÉϵÄËø£¬È»ºó»ñµÃ Part ±íÉϵÄËø£¬ÔòÔÚÆäÖÐÒ»¸öÊÂÎñÍê³É֮ǰ£¬ÁíÒ»¸öÊÂÎñ±»×èÈûÔÚ Supplier ±íÉÏ¡£µÚÒ»¸öÊÂÎñÌá½»»ò»Ø¹öºó£¬µÚ¶þ¸öÊÂÎñ¼ÌÐø½øÐС£²»·¢ÉúËÀËø¡£½«´æ´¢¹ý³ÌÓÃÓÚËùÓеÄÊý¾ÝÐ޸ĿÉÒÔ±ê×¼»¯·ÃÎʶÔÏóµÄ˳Ðò¡£
±ÜÃâÊÂÎñÖеÄÓû§½»»¥
±ÜÃâ±àд°üº¬Óû§½»»¥µÄÊÂÎñ£¬ÒòΪÔËÐÐûÓÐÓû§½»»¥µÄÅú´¦ÀíµÄËÙ¶ÈÒªÔ¶Ô¶¿ìÓÚÓû§ÊÖ¶¯ÏìÓ¦²éѯµÄËٶȣ¬ÀýÈç´ð¸´Ó¦ÓóÌÐòÇëÇó²ÎÊýµÄÌáʾ¡£ÀýÈ磬Èç¹ûÊÂÎñÕýÔڵȴýÓû§ÊäÈ룬¶øÓû§È¥³ÔÎç²ÍÁË»òÕßÉõÖÁ»Ø¼Ò¹ýÖÜÄ©ÁË£¬ÔòÓû§½«´ËÊÂÎñ¹ÒÆðʹ֮²»ÄÜÍê³É¡£ÕâÑù½«½µµÍϵͳµÄÍÌÍÂÁ¿£¬ÒòΪÊÂÎñ³ÖÓеÄÈκÎËøÖ»ÓÐÔÚÊÂÎñÌá½»»ò»Ø¹öʱ²Å»áÊÍ·Å¡£¼´Ê¹²»³öÏÖËÀËøµÄÇé¿ö£¬·ÃÎÊͬһ×ÊÔ´µÄÆäËüÊÂÎñÒ²»á±»×èÈû£¬µÈ´ý¸ÃÊÂÎñÍê³É¡£
±£³ÖÊÂÎñ¼ò¶Ì²¢ÔÚÒ»¸öÅú´¦ÀíÖÐ
ÔÚͬһÊý¾Ý¿âÖв¢·¢Ö´Ðжà¸öÐèÒª³¤Ê±¼äÔËÐеÄÊÂÎñʱͨ³£·¢ÉúËÀËø¡£ÊÂÎñÔËÐÐʱ¼äÔ½³¤£¬Æä³ÖÓÐÅÅËüËø»ò¸üÐÂËøµÄʱ¼äÒ²¾ÍÔ½³¤£¬´Ó¶ø¶ÂÈûÁËÆäËü»î¶¯²¢¿ÉÄܵ¼ÖÂËÀËø¡£
±£³ÖÊÂÎñÔÚÒ»¸öÅú´¦ÀíÖУ¬¿ÉÒÔ×îС»¯ÊÂÎñµÄÍøÂçͨÐÅÍù·µÁ¿£¬¼õÉÙÍê³ÉÊÂÎñ¿ÉÄܵÄÑÓ³Ù²¢ÊÍ·ÅËø¡£
ʹÓõ͸ôÀ뼶±ð
È·¶¨ÊÂÎñÊÇ·ñÄÜÔÚ¸üµÍµÄ¸ôÀ뼶±ðÉÏÔËÐС£Ö´ÐÐÌá½»¶ÁÔÊÐíÊÂÎñ¶ÁÈ¡ÁíÒ»¸öÊÂÎñÒѶÁÈ¡£¨Î´Ð޸ģ©µÄÊý¾Ý£¬¶ø²»±ØµÈ´ýµÚÒ»¸öÊÂÎñÍê³É¡£Ê¹Óýϵ͵ĸôÀ뼶±ð£¨ÀýÈçÌá½»¶Á£©¶ø²»Ê¹ÓýϸߵĸôÀ뼶±ð£¨ÀýÈç¿É´®ÐжÁ£©¿ÉÒÔËõ¶Ì³ÖÓй²ÏíËøµÄʱ¼ä£¬´Ó¶ø½µµÍÁËËø¶¨Õù¶á¡£
ʹÓðó¶¨Á¬½Ó
ʹÓðó¶¨Á¬½ÓʹͬһӦÓóÌÐòËù´ò¿ªµÄÁ½¸ö»ò¶à¸öÁ¬½Ó¿ÉÒÔÏ໥ºÏ×÷¡£´Î¼¶Á¬½ÓËù»ñµÃµÄÈκÎËø¿ÉÒÔÏóÓÉÖ÷Á¬½Ó»ñµÃµÄËøÄÇÑù³ÖÓУ¬·´Ö®ÒàÈ»£¬Òò´Ë²»»áÏ໥×èÈû
¼ì²âËÀËø
Èç¹û·¢ÉúËÀËøÁË£¬ÎÒÃÇÔõôȥ¼ì²â¾ßÌå·¢ÉúËÀËøµÄÊÇÄÄÌõSQLÓï¾ä»ò´æ´¢¹ý³Ì£¿
ÕâʱÎÒÃÇ¿ÉÒÔʹÓÃÒÔÏ´洢¹ý³ÌÀ´¼ì²â£¬¾Í¿ÉÒÔ²é³öÒýÆðËÀËøµÄ½ø³ÌºÍSQLÓï¾ä¡£SQL Server×Ô´øµÄϵͳ´æ´¢¹ý³Ìsp_whoºÍsp_lockÒ²¿ÉÒÔÓÃÀ´²éÕÒ×èÈûºÍËÀËø, µ«Ã»ÓÐÕâÀï½é


Ïà¹ØÎĵµ£º

sqlÈý±íÁªºÏ²éѯ,count´ÎÊý

sqlÈý±íÁªºÏ²éѯ
 
a±í£º³Ùµ½¼Ç¼±í---------------------------------------------------------------------------------------------------------------------
ÐÕÃû                 Ö°¹¤±àºÅ    &nb ......

SqlÊý¾Ý¿âÖØÃüÃû

1.²éѯ³öµ±Ç°Á¬½ÓÈ»ºó½«Æä¹Ø±Õ
select spid
from master.dbo.sysprocesses
where dbid= db_id('Êý¾Ý¿âÃû')
 --db_id('DoNet')
Èçspid ÖµÎª 52.
2. 執ÐÐ:   
 kill 52
3.ÐÞ¸Ä數據庫Ãû
EXEC sp_dboption 'old_db_name', 'Single User', 'false'
&nb ......

sql serverÈÕÆڱȽϡ¢ÈÕÆÚ²éѯ³£ÓÃÓï¾ä(ת)

ÔÚSQL SERVERÖУ¬Äã¿ÉÄÜÐèÒª»ñµÃµ±Ç°ÈÕÆںͼÆËãһЩÆäËûµÄÈÕÆÚ£¬ÀýÈ磬ÄãµÄ³ÌÐò¿ÉÄÜÐèÒªÅжÏÒ»¸öÔµĵÚÒ»Ìì»òÕß×îºóÒ»Ìì¡£ÄãÃǴ󲿷ÖÈË´ó¸Å¶¼ÖªµÀÔõÑù°ÑÈÕÆÚ½øÐзָÄê¡¢Ô¡¢Èյȣ©£¬È»ºó½ö½öÓ÷ָî³öÀ´µÄÄê¡¢Ô¡¢ÈյȷÅÔÚ¼¸¸öº¯ÊýÖмÆËã³ö×Ô¼ºËùÐèÒªµÄÈÕÆÚ£¡ÔÚÕâƪÎÄÕÂÀÎÒ½«¸æËßÄãÈçºÎʹÓÃDATEADDºÍDATEDIFFº¯ÊýÀ´¼ÆË ......

SQL²éѯ·ÖÎöÆ÷Íâ¹ÒÔ´Âë·ÖÏí

±¾ÈËдÁËÒ»¸öSQL²éѯ·ÖÎöÆ÷À©Õ¹¹¤¾ß£¬¹¦ÄÜÀàËÆDelphiµÄToDo¡£¿ÉÒÔ·½±ã¿ª·¢ÕßÔÚ´óÁ¿µÄSQL½Å±¾ÖпìËÙÕÒµ½Ã¿¸öÄ£¿é¡¢To-Do£¬´Ó¶øÌá¸ß¿ª·¢¸ßÀûÂÊ¡£
ʹÓõÄʱºòÏÈÔËÐÐSQL²éѯ·ÖÎöÆ÷£¬È»ºóÔËÐб¾³ÌÐò¼´¿É£¨¿ÉÒÔ¹¤¾ß|×Ô¶¨ÒåÖÐÅäÖã©¡£°´F2ÏÔʾTo-Do List´°¿Ú£¬°´Alt+F2ÔÚµ±Ç°Î»ÖòåÈëTo-Do¡£
ÓÉÓÚʱ¼ä¹Øϵ£¬±¾³ÌÐò²¢Î´ÍêÉÆ£¬ÔÚË« ......

SQL*PLUSÃüÁîµÄʹÓôóÈ«(ת)

תÔصØÖ·£ºhttp://langdorf.blog.163.com/blog/static/131177212200992981939316/
 
OracleµÄsql*plusÊÇÓëoracle½øÐн»»¥µÄ¿Í»§¶Ë¹¤¾ß¡£ÔÚsql*plusÖУ¬¿ÉÒÔÔËÐÐsql*plusÃüÁîÓësqlÓï¾ä¡£
ÎÒÃÇͨ³£Ëù˵µÄDML¡¢DDL¡¢DCLÓï¾ä¶¼ÊÇsqlÓï¾ä£¬ËüÃÇÖ´ÐÐÍêºó£¬¶¼¿ÉÒÔ±£´æÔÚÒ»¸ö±»³ÆΪsql bufferµÄÄÚ´æÇøÓòÖУ¬²¢ÇÒÖ»Äܱ£´æÒ»Ì ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ