dbTalk Databases Forums  

Using Profiler to capture database name and object

microsoft.public.sqlserver.tools microsoft.public.sqlserver.tools


Discuss Using Profiler to capture database name and object in the microsoft.public.sqlserver.tools forum.



Reply
 
Thread Tools Display Modes
  #21  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Using Profiler to capture database name and object - 12-02-2008 , 04:28 PM






Snake (Snake (AT) discussions (DOT) microsoft.com) writes:
Quote:
I appoligize for not stating that I am using SS2000, so the fine query
below does not work. I am trying to use profiler to do a similar thing.
My gut feeling is that since all the "name" fields in profiler are
always blank that I just have to live with it. But I still need to
report to my boss which databases and tables are being accessed.
For the database, use DatabaseID as Andrew mentioned.

To get the tables, you will have to parse the queries.

You are probably better off running a server-side trace and then use
fn_trace_gettable to read the trace file. You can easily get the script
for a server-side trace by exporting what you have in Profiler.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #22  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Using Profiler to capture database name and object - 12-02-2008 , 04:28 PM






Snake (Snake (AT) discussions (DOT) microsoft.com) writes:
Quote:
I appoligize for not stating that I am using SS2000, so the fine query
below does not work. I am trying to use profiler to do a similar thing.
My gut feeling is that since all the "name" fields in profiler are
always blank that I just have to live with it. But I still need to
report to my boss which databases and tables are being accessed.
For the database, use DatabaseID as Andrew mentioned.

To get the tables, you will have to parse the queries.

You are probably better off running a server-side trace and then use
fn_trace_gettable to read the trace file. You can easily get the script
for a server-side trace by exporting what you have in Profiler.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #23  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Using Profiler to capture database name and object - 12-02-2008 , 04:28 PM



Snake (Snake (AT) discussions (DOT) microsoft.com) writes:
Quote:
I appoligize for not stating that I am using SS2000, so the fine query
below does not work. I am trying to use profiler to do a similar thing.
My gut feeling is that since all the "name" fields in profiler are
always blank that I just have to live with it. But I still need to
report to my boss which databases and tables are being accessed.
For the database, use DatabaseID as Andrew mentioned.

To get the tables, you will have to parse the queries.

You are probably better off running a server-side trace and then use
fn_trace_gettable to read the trace file. You can easily get the script
for a server-side trace by exporting what you have in Profiler.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #24  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Using Profiler to capture database name and object - 12-02-2008 , 04:28 PM



Snake (Snake (AT) discussions (DOT) microsoft.com) writes:
Quote:
I appoligize for not stating that I am using SS2000, so the fine query
below does not work. I am trying to use profiler to do a similar thing.
My gut feeling is that since all the "name" fields in profiler are
always blank that I just have to live with it. But I still need to
report to my boss which databases and tables are being accessed.
For the database, use DatabaseID as Andrew mentioned.

To get the tables, you will have to parse the queries.

You are probably better off running a server-side trace and then use
fn_trace_gettable to read the trace file. You can easily get the script
for a server-side trace by exporting what you have in Profiler.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #25  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Using Profiler to capture database name and object - 12-02-2008 , 04:28 PM



Snake (Snake (AT) discussions (DOT) microsoft.com) writes:
Quote:
I appoligize for not stating that I am using SS2000, so the fine query
below does not work. I am trying to use profiler to do a similar thing.
My gut feeling is that since all the "name" fields in profiler are
always blank that I just have to live with it. But I still need to
report to my boss which databases and tables are being accessed.
For the database, use DatabaseID as Andrew mentioned.

To get the tables, you will have to parse the queries.

You are probably better off running a server-side trace and then use
fn_trace_gettable to read the trace file. You can easily get the script
for a server-side trace by exporting what you have in Profiler.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #26  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Using Profiler to capture database name and object - 12-02-2008 , 04:28 PM



Snake (Snake (AT) discussions (DOT) microsoft.com) writes:
Quote:
I appoligize for not stating that I am using SS2000, so the fine query
below does not work. I am trying to use profiler to do a similar thing.
My gut feeling is that since all the "name" fields in profiler are
always blank that I just have to live with it. But I still need to
report to my boss which databases and tables are being accessed.
For the database, use DatabaseID as Andrew mentioned.

To get the tables, you will have to parse the queries.

You are probably better off running a server-side trace and then use
fn_trace_gettable to read the trace file. You can easily get the script
for a server-side trace by exporting what you have in Profiler.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #27  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Using Profiler to capture database name and object - 12-02-2008 , 04:28 PM



Snake (Snake (AT) discussions (DOT) microsoft.com) writes:
Quote:
I appoligize for not stating that I am using SS2000, so the fine query
below does not work. I am trying to use profiler to do a similar thing.
My gut feeling is that since all the "name" fields in profiler are
always blank that I just have to live with it. But I still need to
report to my boss which databases and tables are being accessed.
For the database, use DatabaseID as Andrew mentioned.

To get the tables, you will have to parse the queries.

You are probably better off running a server-side trace and then use
fn_trace_gettable to read the trace file. You can easily get the script
for a server-side trace by exporting what you have in Profiler.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
  #28  
Old   
Erland Sommarskog
 
Posts: n/a

Default Re: Using Profiler to capture database name and object - 12-02-2008 , 04:28 PM



Snake (Snake (AT) discussions (DOT) microsoft.com) writes:
Quote:
I appoligize for not stating that I am using SS2000, so the fine query
below does not work. I am trying to use profiler to do a similar thing.
My gut feeling is that since all the "name" fields in profiler are
always blank that I just have to live with it. But I still need to
report to my boss which databases and tables are being accessed.
For the database, use DatabaseID as Andrew mentioned.

To get the tables, you will have to parse the queries.

You are probably better off running a server-side trace and then use
fn_trace_gettable to read the trace file. You can easily get the script
for a server-side trace by exporting what you have in Profiler.


--
Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se

Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.