Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: 2 days ago @ 4:18 AM
Points: 246, Visits: 1,167
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, July 4, 2014 3:55 AM
Points: 2,836, Visits: 5,062
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