SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Client-Side Tracing: How?


Client-Side Tracing: How?

Author
Message
wayne_dyck
wayne_dyck
SSC Rookie
SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)SSC Rookie (25 reputation)

Group: General Forum Members
Points: 25 Visits: 8
Hi,

Is there a way to do client-side tracing of the SQL commands being sent from a client box to a SQL Server server without using the SQL Profiler or the sp_trace* stored procedures?

I have a packaged application that is poorly documented and has poor reporting capabilities. I need to write queries against the database tables, in some cases without knowing what tables I'm even dealing with. The outsourced IT company managing our servers has been uncooperative with my requests for access to either the SQL Profiler or the underlying stored procedures.

I'd like to be able to capture the SQL passing from the client app to the server when I perform a function in the app in order to jump-start the process of identifying the table(s) involved in the particular form I'm working in. Once I know the tables and a bit of the SQL, I would be better positioned to write my own customized versions of the queries.

Can this be done?

Thanks for any help you can give.

Wayne
Orlando Colamatteo
Orlando Colamatteo
SSC-Dedicated
SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)SSC-Dedicated (38K reputation)

Group: General Forum Members
Points: 38476 Visits: 14411
Is the client app using the SQL Server Native Client? If so you might be able to trace activity that way:

Tracing SQL 2008 SNAC

I am not sure if the same tracing capabilities were available in the 2005 native client but it might be worth a look.

__________________________________________________________________________________________________
There are no special teachers of virtue, because virtue is taught by the whole community. --Plato
Alexander Suprun
Alexander Suprun
Ten Centuries
Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)Ten Centuries (1.2K reputation)

Group: General Forum Members
Points: 1221 Visits: 1516
wayne_dyck (2/20/2013)
Hi,
The outsourced IT company managing our servers has been uncooperative with my requests for access to either the SQL Profiler or the underlying stored procedures.
Run SQL Profiler against your dev server or your local box.


Alex Suprun
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search