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

ÇëÎÊÈçºÎÔÚSQLSERVERÖвâÊÔ²¢µÃµ½SQLÓï¾äÔËÐÐʱ¼ä£¿

ÇëÎÊÈçºÎÔÚSQLSERVERÖвâÊÔ²¢µÃµ½SQLÓï¾äÔËÐÐʱ¼ä£¿

лл£¡
SQL code:

SET STATISTICS TIME ON
...sql
SET STATISTICS TIME off



ÎÒÊÇ¿´Ê±¼ä¸ú×ÙÆ÷¸ú×ÙsqlµÄÖ´ÐÐʱ¼ä Duration ÁÐ

ѧϰÁË
ÒýÓÃ
ÇëÎÊÈçºÎÔÚSQLSERVERÖвâÊÔ²¢µÃµ½SQLÓï¾äÔËÐÐʱ¼ä£¿

лл£¡


ÒýÓÃ
SQL codeSETSTATISTICS TIMEON
...sqlSETSTATISTICS TIMEoff


²»ÓÃÊä³öÔËÐÐʱ¼ä£¿»¹ÊÇ˵Õâ¸ö´úÂëÖ´ÐÐÍêSQLÓï¾ä¾Í»áÊä³öÔËÐÐʱ¼ä£¿

ÒýÓÃ
ÎÒÊÇ¿´Ê±¼ä¸ú×ÙÆ÷¸ú×ÙsqlµÄÖ´ÐÐʱ¼ä Duration ÁÐ


ÈçºÎ²é¿´£¿Ð»Ð»£¡

SQL code:
ÈçºÎµÃµ½SQL¾«È·µÄÖ´ÐÐʱ¼ä
·½·¨Ò»:

declare @d datetime
set @d=getdate()
-->²éѯÓï¾ä
select [Óï¾äÖ´Ðл¨·Ñʱ¼ä(ºÁÃë)]=datediff(ms,@d,getdate())

·½·¨¶þ:

SET STATISTICS TIME ON

SELECT * from SYSOBJECTS -->ÄãµÄ²éѯ

SET STATISTICS TIME OFF


ÒýÓÃ
ÒýÓà 2 Â¥ bancxc µÄ»Ø¸´:
ÎÒÊÇ¿´Ê±¼ä¸ú×ÙÆ÷¸ú×ÙsqlµÄÖ´ÐÐʱ¼ä Duration ÁÐ


ÈçºÎ²é¿´£¿Ð»Ð»£¡

ÔÚ[ÏûÏ¢]ÄǸöÑ¡Ï¿ÉÒÔ¿´µ½.

management studio -> ¹¤¾ß(tools)->ʼþ¸ú×


Ïà¹ØÎÊ´ð£º

dbf±íµ¼Èëµ½sql server2000±íÎÊÌâ

ÇëÎÊ£º
1,ÈçºÎ½«Ò»ÕÅdbf±íµ¼Èëµ½sql server2000ÖеÄÒ»ÕÅ±í¡£Ê¹ÓÃDTS¸ÃÔõÑùʵÏÖ£¿
2,ʹÓÃÍøÉÏ´úÂ룺
Insert Into Tb_cj Select * from openrowset('MSDASQL','Driver=Microsoft Visual FoxPro D ......

SQLÃÔ»ó

CREATE TABLE [Test_xcmtmp] (
[id] [int] IDENTITY (1, 1) NOT NULL ,
[name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[subject] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL ,
[Sourc ......

jspÁ´½Ósql2000µÄÒÉÎÊ£¿



type Exception report


message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jas ......

ÇóÒ»ÐÐÒµÍøÔ´Âë(C#+sqlserver)

ÈçÌâ
Ö»ÓÐ100·Ö¸øÁË¡£¡£¡£
ÄĸöÐÐÒµ£¿
ÎÒÏëÍøÉϵÄÔ´Âë¿Ï¶¨²»ÄÜÍêÈ«Âú×ã¸öÈËÏë·¨
×îºó»¹µÃ×Ô¼ºÕû
ÍƼöÒ»¿î×ÔÖú½¨Õ¾Èí¼þ£º·çѶ
C#+SQL
¿ÉÒÔÉè¼Æ³ö±È½ÏÁé»îµÄÍøÕ¾

ʲôÐÐÒµ°¡....

µ½51aspx.co ......

¹ØÓÚSQLSERVERµ×²ãÎÊÌâ - MS-SQL Server / ÒÉÄÑÎÊÌâ

ÇëÎÊһϣ¬ÍâÍøÁ½Ì¨SQLSERVERʵÀýÊý¾Ý´«Ê䣬ÓÐûÓвÉÓÃÊý¾ÝѹËõºÍ¼ÓÃÜ¡£Ñ¹Ëõ±ÈÊǶàÉÙ£¬¼ÓÃÜÊÇʲô¼ÓÃÜËã·¨£¿Ïà¹ØÎĵµÄÄÀï¿ÉÒÔÕÒµ½£¿Ð»Ð»


ÎÒÒ²ÏëÖªµÀ£¡¹Ø×¢´ËÌù£¡

¹Ø×¢¡«¡«

Êý¾Ý¿â´óÅ£¶¼ÄÄÈ¥ÁË°¡£¿
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ