Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 DML Query

Author  Topic 

asm
Posting Yak Master

140 Posts

Posted - 2014-03-21 : 08:06:57
Hi,

I want to store all executed query (from Desktop Application) for a day without profiler in Express edition and store the same in a table or csv.



Thanks

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2014-03-21 : 08:31:30
Profiler/Trace is the tool in SQL Server designated for that purpose. I am not aware of another method to trace all queries on the server.

What is your concern about using trace?
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2014-03-21 : 10:50:56
Extended events? DML triggers?


Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

asm
Posting Yak Master

140 Posts

Posted - 2014-03-22 : 06:07:07
only want the DML query for selected database but in trace it gives all query for all database
Go to Top of Page

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2014-03-22 : 09:26:54
You can filter by database and by event types
Go to Top of Page
   

- Advertisement -