Home Page
Articoli
Tips & Tricks
News
Forum
Archivio Forum
Blogs
Sondaggi
Rss
Video
Utenti
Chi Siamo
Contattaci
Username:
Password:
Login
Registrati ora!
Recupera Password
Home Page
Stanze Forum
SQL Server 2000/2005/2008, Express, Access, MySQL, Oracle
Tempo di query
mercoledì 10 febbraio 2010 - 17.17
Elenco Threads
Stanze Forum
Aggiungi ai Preferiti
Cerca nel forum
norby
Profilo
| Newbie
9
messaggi | Data Invio:
mer 10 feb 2010 - 17:17
Ciao a tutti, ho un programma scritto in vb.net che effettua una decina di query per valorizzare diversi textbox su una form.
Il db è sql server 2005 express edition.
Mi serviva un modo per capire quanto tempo impiega una query...
Esiste un modo da MS SQL Management Studio Express per vedere il tempo di esecuzione?
Ciao e grazie
dinoxet
Profilo
| Senior Member
484
messaggi | Data Invio:
mer 10 feb 2010 - 17:23
dal management fai nuova query incolla la query che vuoi testare e fai esegui il tempo è in basso a destra
DINOXET
__________________________________________
impossible is only a word
norby
Profilo
| Newbie
9
messaggi | Data Invio:
mer 10 feb 2010 - 18:26
eh, mi viene sempre 00.00.00, quindi ci mette meno di un secondo ?
alx_81
Profilo
| Guru
8.814
messaggi | Data Invio:
mer 10 feb 2010 - 20:43
>eh, mi viene sempre 00.00.00, quindi ci mette meno di un secondo?
Usa il seguente statement prima della select nel tuo Management Studio:
SET STATISTICS TIME ON;
Per ulteriori informazioni leggi qui:
http://msdn.microsoft.com/it-it/library/ms190287.aspx
--
Alessandro Alpi | SQL Server MVP
MCP|MCITP|MCTS|MCT
http://www.alessandroalpi.net
http://blogs.dotnethell.it/suxstellino
http://mvp.support.microsoft.com/profile/Alessandro.Alpi
lbenaglia
Profilo
| Guru
5.625
messaggi | Data Invio:
mer 10 feb 2010 - 21:39
>Esiste un modo da MS SQL Management Studio Express per vedere
>il tempo di esecuzione?
In aggiunta a quanto suggerito da Ale, in SSMS puoi premere il bottone "Include Client Statistics" che tra le altre cose restituisce:
Wait time on server replies
The cumulative amount of time (in milliseconds) that the client spent while it waited for the server to reply.
Total execution time
The cumulative amount of time (in milliseconds) that the client spent processing while the query was executed, including the time that the client spent waiting for replies from the server as well as the time spent executing code.
Client processing time
The cumulative amount of time that the client spent executing code while the query was executed.
Altre info qua:
http://msdn.microsoft.com/en-us/library/aa833205.aspx
>Ciao e grazie
Prego.
Ciao!
--
Lorenzo Benaglia
Microsoft MVP - SQL Server
http://blogs.dotnethell.it/lorenzo/
http://italy.mvps.org
norby
Profilo
| Newbie
9
messaggi | Data Invio:
gio 11 feb 2010 - 09:00
Grazie e un salutone!
Torna su
Stanze Forum
Elenco Threads
Partecipa anche tu! Registrati!
Hai bisogno di aiuto ?
Perchè non ti registri subito?
Dopo esserti registrato potrai chiedere
aiuto sul nostro
Forum
oppure aiutare gli altri
Consulta le
Stanze
disponibili.
Registrati ora !