January 19, 2012 at 9:39 am
How do i query to check if anyone is using the XML data that exists in a table?
January 19, 2012 at 9:55 am
Are your queries via stored proc to the table that holds this data or are they all ad-hoc?
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
January 19, 2012 at 9:55 am
if "using" means SELECT FROM that table, only way is by adding a trace so you can see who's selecting stuff from it;
for INSERt/UPDATE/DELETE, you could add a trigger which either directly audits to a table or emails the details, or calls a notification service to audit or email or whatever you need to do asynchronously.
Lowell
January 19, 2012 at 10:48 am
Sorry..Let me rephrase my question...
There are 370 tables in the database. I'd like to check how many tables have XML in them.
After I get the list of tables, I'll run a trace on it to verify who's running queries against these tables.
January 19, 2012 at 11:00 am
There is a query on this page that should help with that.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply