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.
Author |
Topic |
drsloat
Starting Member
45 Posts |
Posted - 2010-07-30 : 15:43:39
|
I have some stored procedures that do something like:if (have local data) query local tableelse query linked serverIs there any performance monitor counter I can use to monitor the linked server usage? I want to find out how often the procedure is querying the local data vs the linked server.Maybe the best way is to run sql server profiler on the linked server? |
|
tkizer
Almighty SQL Goddess
38200 Posts |
|
jackv
Master Smack Fu Yak Hacker
2179 Posts |
Posted - 2010-07-31 : 07:16:44
|
You could try something like the following flow:if (have local data)query local tableelse begin query linked server insert into mylogtable(cnt)VALUES(1) endJack Vamvas--------------------http://www.sqlserver-dba.com |
|
|
|
|
|