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
 SQL queries log?

Author  Topic 

OldMySQLUser
Constraint Violating Yak Guru

301 Posts

Posted - 2008-10-08 : 09:22:48
This is a really newbie question but (how) can I view a log of the sql queries that have been executed?

I'm calling a stored procedure from a c#/vb.net program and want to know what query the server is actually executing.

GilaMonster
Master Smack Fu Yak Hacker

4507 Posts

Posted - 2008-10-08 : 09:35:46
You'll have to be running a profiler trace to get that. If you're not the admin of the server, as the admin to run one for you as it does require fairly high permissions.

--
Gail Shaw
SQL Server MVP
Go to Top of Page

OldMySQLUser
Constraint Violating Yak Guru

301 Posts

Posted - 2008-10-08 : 09:52:58
Many thanks for that.
Go to Top of Page
   

- Advertisement -