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 ......
//×ܼǼÊý
function sumRecord()
{
var conn= Server.CreateObject("ADODB.connection");
var rs= Server.CreateObject("adodb.recordset");
conn.open("PROVIDER=SQLOLEDB;DATA SOURCE=127.0.0.1;UID=sa;PWD=123456;DATABASE=test");
var sql = "select count(*) as RecordCount from baoming";
rs.open(sql, ......
<Language from="SQL" To="C#">
<Type from="bigint" To="long" />
<Type from="binary" To="object" />
<Type from="bit" To="bool" />
<Type from="char" To="string" />
<Type from="datetime" To="DateTime" ......
ÔÚÖ÷Êý¾Ý¿âÎļþ½øÐдóÁ¿µÄɾ³ý(ÐÂÔö£¬Ð޸Ķ¼»áÓÐÈÕÖ¾)£¬ÈÕÖ¾ÎļþÓÐ1.5G¡£×òÌ컹ÔÊý¾Ý¿âʱ³õʼֵҲ²Å1MB¡£±ØÐëÇå³ýµô£¬²»È»Ì«Õ¼¿Õ¼äÁË¡£ÉÏÍøÕÒÁ˸öÇå³ýÈÕÖ¾µÄ·½·¨¡£Ë³Àû½«ÈÕÖ¾Îļþlog.ldf´Ó1.5G±äΪÁË1M¡£ ÎÒÖ´ÐÐÈçÏ£º
1.Çå¿ÕÈÕÖ¾
DUMP TRANSACTION ¿âÃû WITH NO_LOG
2.½Ø¶ÏÊÂÎñÈÕÖ¾£º
BACKUP LOG ......
sqlserver 2000 Ô¶³ÌÁ¬½Ó ·þÎñÆ÷µÄ½â¾ö·½°¸
Ïêϸ³ö´¦²Î¿¼£ºhttp://www.jb51.net/article/18774.htm
¾ßÌå²½Ö裺
Ò»¡¢ping·þÎñÆ÷IPÄÜ·ñpingͨ
¹Û²ìÔ¶³ÌSQL Server 2000·þÎñÆ÷µÄÎïÀíÁ¬½ÓÊÇ·ñ´æÔÚ¡£Èç¹û²»ÐУ¬Çë¼ì²éÍøÂ磬²é¿´ÅäÖ㬵±È»µÃÈ·±£Ô¶³Ìsql server 2000·þÎñÆ÷µÄIPƴдÕýÈ·¡£
¶þ ÔÚDos»òÃüÁîÐÐÏÂÊäÈëtelnet · ......