Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture Client SQL?

Status
Not open for further replies.

JMCraig

Programmer
Feb 20, 2002
217
US
Hi Folks,

I'm hoping to find a centralized way to capture the SQL generated by clients running against an MS SQL Server (similar to what you can do via the audit functions in Sybase). Is there any way to use the Profiler or some other tool to configure capture of the SQL that a client sends to the server? I need to grab this to look for a specific pattern in the SQL--I'm trying to do something special when it does a particular partern of a SELECT followed by no UPDATE (hence a trigger won't do it--there's no operation I can hang the trigger on--and the pattern in question is several statements, not a single one).

A quick read of the Profiler documentation didn't reveal any way to enable capture of the actual SQL that one or more users or clients generate. Did I miss something? Is there another option that comes to mind?

Thanks much!

John

John Craig
Alpha-G Consulting, LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top