Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SET STATISTICS TIME ON Expand / Collapse
Author
Message
Posted Tuesday, November 13, 2012 5:26 AM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: 2 days ago @ 4:33 PM
Points: 398, Visits: 1,903
How to save the results from "SET STATISTICS TIME ON" in table format?

Ben Brugman
Post #1384041
Posted Tuesday, November 13, 2012 6:50 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, April 29, 2016 8:08 AM
Points: 2,934, Visits: 5,473
ben.brugman (11/13/2012)
How to save the results from "SET STATISTICS TIME ON" in table format?

Ben Brugman


In exactly same way as result of PRINT - it is impossible in T-SQL as it's does output into message
stream.

If you really desperate, you can create some client application (eg. in C#) which will execute your sql statements and save message stream into some table.




_____________________________________________
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!"
(So many miracle inventions provided by MS to us...)

How to post your question to get the best and quick help
Post #1384059
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse