ÇëÎÊÈçºÎÔÚ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)->ʼþ¸ú×
Ïà¹ØÎÊ´ð£º
ÇëÎÊ£º 1,ÈçºÎ½«Ò»ÕÅdbf±íµ¼Èëµ½sql server2000ÖеÄÒ»ÕÅ±í¡£Ê¹ÓÃDTS¸ÃÔõÑùʵÏÖ£¿ 2,ʹÓÃÍøÉÏ´úÂ룺 Insert Into Tb_cj Select * from openrowset('MSDASQL','Driver=Microsoft Visual FoxPro D ......
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 ......
type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jas ......
ÈçÌâ Ö»ÓÐ100·Ö¸øÁË¡£¡£¡£ ÄĸöÐÐÒµ£¿ ÎÒÏëÍøÉϵÄÔ´Âë¿Ï¶¨²»ÄÜÍêÈ«Âú×ã¸öÈËÏë·¨ ×îºó»¹µÃ×Ô¼ºÕû ÍƼöÒ»¿î×ÔÖú½¨Õ¾Èí¼þ£º·çѶ C#+SQL ¿ÉÒÔÉè¼Æ³ö±È½ÏÁé»îµÄÍøÕ¾ ʲôÐÐÒµ°¡.... µ½51aspx.co ......
ÇëÎÊһϣ¬ÍâÍøÁ½Ì¨SQLSERVERʵÀýÊý¾Ý´«Ê䣬ÓÐûÓвÉÓÃÊý¾ÝѹËõºÍ¼ÓÃÜ¡£Ñ¹Ëõ±ÈÊǶàÉÙ£¬¼ÓÃÜÊÇʲô¼ÓÃÜËã·¨£¿Ïà¹ØÎĵµÄÄÀï¿ÉÒÔÕÒµ½£¿Ð»Ð» ÎÒÒ²ÏëÖªµÀ£¡¹Ø×¢´ËÌù£¡ ¹Ø×¢¡«¡« Êý¾Ý¿â´óÅ£¶¼ÄÄÈ¥ÁË°¡£¿ ......