sqlserver һЩȫ¾Ö±äÁ¿
sqlserver ÖÐ È«¾Ö±äÁ¿ ÊÇÒ»ÖÖÌØÊâÀàÐ͵ıäÁ¿£¬È«¾Ö±äÁ¿ÒÔ@@¿ªÍ·£¬ÊÇÓÉϵͳ¶¨ÒåµÄ¡£
@@CONNECTIONS ·µ»Ø
SQL Server
×ÔÉÏ´ÎÆô¶¯ÒÔÀ´³¢ÊÔµÄÁ¬½ÓÊý¡£
@@CURSOR_ROWS
È·¶¨µ±Æä±»µ÷ÓÃʱ¼ìË÷ÁËÓαê·ûºÏÌõ¼þµÄÐÐÊý¡£
@@DATEFIRST
Õë¶Ô»á»°·µ»Ø
SET DATEFIRST
µÄµ±Ç°Öµ£¬
SET DATEFIRST
±íʾָ¶¨µÄ
ÿÖܵĵÚÒ»Ìì¡£
@@DBTS
·µ»Øµ±Ç°Êý¾Ý¿âµÄµ±Ç°
timestamp
Êý¾ÝÀàÐ͵ÄÖµ£¬
Õâһʱ¼ä´ÁÖµÔÚÊý¾Ý¿âÖбØÐëÊÇΨһµÄ¡£
@@ERROR
·µ»ØÖ´ÐеÄÉÏÒ»¸ö
Transact-SQL
Óï¾äµÄ´íÎóºÅ£¬
Èç¹ûÇ°Ò»¸ö
Transact-SQL
Óï¾äÖ´ÐÐûÓдíÎó£¬Ôò·µ»Ø
0
¡£
@@FETCH_STATUS
·µ»ØÕë¶ÔÁ¬½Óµ±Ç°´ò¿ªµÄÈκÎÓα귢³öµÄÉÏÒ»ÌõÓαê
FETCH
Óï¾äµÄ״̬¡£
@@IDENTITY
·µ»ØÉϴβåÈëµÄ±êʶֵ¡£
@@LANGID
·µ»Øµ±Ç°Ê¹ÓõÄÓïÑԵı¾µØÓïÑÔ±êʶ·û
(ID)
¡£
@@LANGUAGE
·µ»Øµ±Ç°ËùÓÃÓïÑÔµÄÃû³Æ¡£
@@LOCK_TIMEOUT
·µ»Øµ±Ç°»á»°µÄµ±Ç°Ëø¶¨³¬Ê±ÉèÖ㨺ÁÃ룩¡£
@@MAX_CONNECTIONS
ȯ
SQL Server
ʵÀýÔÊÐíͬʱ½øÐеÄ×î´óÓû§Á¬½ÓÊý¡£
·µ»ØµÄÊýÖµ²»Ò»¶¨Êǵ±Ç°ÅäÖõÄÊýÖµ¡£
@@OPTIONS
·µ»ØÓйص±Ç°
SET
Ñ¡ÏîµÄÐÅÏ¢¡£
@@PROCID
·µ»Ø
Transact-SQL
µ±Ç°Ä£¿éµÄ¶ÔÏó±êʶ·û
(ID)
¡£
Transact-S
Ä£¿é¿ÉÒÔÊÇ´æ´¢¹ý³Ì¡¢Óû§¶¨Ò庯Êý»ò´¥·¢Æ÷¡£
@@ROWCOUNT
·µ»ØÊÜÉÏÒ»Óï¾äÓ°ÏìµÄÐÐÊý¡£
@@SERVERNAME
·µ»ØÔËÐÐ
SQL Server
µÄ±¾µØ·þÎñÆ÷µÄÃû³Æ¡£
@@TRANCOUNT
·µ»Øµ±Ç°Á¬½ÓµÄ»î¶¯ÊÂÎñÊý¡£
Ïà¹ØÎĵµ£º
¼ÌÐøSQLServerË÷Òýµ÷ÓÅʵ¼ù¡£Õâ´Î̽ÌÖÒ»ÏÂË÷Òý¸²¸Ç - SQL ServerÖ÷ҪʹÓÃË÷ÒýÈ¥²éѯÄãÐèÒªµÄÊý¾Ý£¬µ±Ë÷Òý°üÀ¨ËùÓеÄÄãÇëÇó²éѯµÄ×ֶΣ¬SQL Server½«²»ÐèҪȥÔÚ±íÖвéѯ¡£Õâ¸ö¸ÅÄî³Æ×ö“Ë÷Òý¸²¸Ç”¡£
SQLServer2005µÄNon-clustered INDEXÔö¼ÓÁËÒ»¸ö“°üº¬ÁÐ(included column)
”Ñ¡Ïî¡£ÔÚ SQL Server 2 ......
ÔÚÖ÷Êý¾Ý¿âÎļþ½øÐдóÁ¿µÄɾ³ý(ÐÂÔö£¬Ð޸Ķ¼»áÓÐÈÕÖ¾)£¬ÈÕÖ¾ÎļþÓÐ1.5G¡£×òÌ컹ÔÊý¾Ý¿âʱ³õʼֵҲ²Å1MB¡£±ØÐëÇå³ýµô£¬²»È»Ì«Õ¼¿Õ¼äÁË¡£ÉÏÍøÕÒÁ˸öÇå³ýÈÕÖ¾µÄ·½·¨¡£Ë³Àû½«ÈÕÖ¾Îļþlog.ldf´Ó1.5G±äΪÁË1M¡£ ÎÒÖ´ÐÐÈçÏ£º
1.Çå¿ÕÈÕÖ¾
DUMP TRANSACTION ¿âÃû WITH NO_LOG
2.½Ø¶ÏÊÂÎñÈÕÖ¾£º
BACKUP LOG ......
²»µÃ²»ËµµÄÔÚ MS SQL SERVER Ï嵀 JDBC µ÷ÓÃ
½ñÌìÏÂÎ磬ÁÙʱ¾ö¶¨ÒªÔÙ MS SQL-SERVER ÏÂÅäÖà Spring µÄÊý¾ÝÔ´ DataSource ¡£µ«ÅäÖÃÁË°ëÌì,»ñÈ¡Êý¾ÝÔ´ÈÔ²»³É¹¦£¬ÎÒûÓа취£¬ÕÒÔÒòߣ¬Ö»ÄÜд¸öÁÐ×Ó²âÊÔÏ¡£ÏȲ»¹ÜÈýÆ߶þʮһ£¬ÏÈÉÏÕýÈ·µÄÀý×ÓÔÙ˵¡£
¿´¿ÍÈç¹ûÏëÔËÐÐÏÂÃæµÄ´úÂ룬ÐèÒª×Ô¼ºÊÖ¹¤ ......
sqlserver 2000 Ô¶³ÌÁ¬½Ó ·þÎñÆ÷µÄ½â¾ö·½°¸
Ïêϸ³ö´¦²Î¿¼£ºhttp://www.jb51.net/article/18774.htm
¾ßÌå²½Ö裺
Ò»¡¢ping·þÎñÆ÷IPÄÜ·ñpingͨ
¹Û²ìÔ¶³ÌSQL Server 2000·þÎñÆ÷µÄÎïÀíÁ¬½ÓÊÇ·ñ´æÔÚ¡£Èç¹û²»ÐУ¬Çë¼ì²éÍøÂ磬²é¿´ÅäÖ㬵±È»µÃÈ·±£Ô¶³Ìsql server 2000·þÎñÆ÷µÄIPƴдÕýÈ·¡£
¶þ ÔÚDos»òÃüÁîÐÐÏÂÊäÈëtelnet · ......