Unix Technical Forum

SQL Profiler - SPID

This is a discussion on SQL Profiler - SPID within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi, What is the SPID column for in SQL Profiler? I have many databases but I only want to ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 02:39 PM
wesleym312@gmail.com
 
Posts: n/a
Default SQL Profiler - SPID

Hi,
What is the SPID column for in SQL Profiler?
I have many databases but I only want to view the transactions on one
particular database. What changes should I make to the filters inorder
to achieve this. I have tried database name but that doesnt work.

Thanks in advance
Wes

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 02:39 PM
Fritz Franz
 
Posts: n/a
Default Re: SQL Profiler - SPID

<wesleym312@gmail.com> ha chiesto

> Hi,
> What is the SPID column for in SQL Profiler?


http://msdn2.microsoft.com/en-us/lib...7(SQL.80).aspx

Regards,

Fritz


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-01-2008, 02:39 PM
dba@sql-labs.com
 
Posts: n/a
Default Re: SQL Profiler - SPID

On Aug 20, 3:28 pm, wesleym...@gmail.com wrote:
> Hi,
> What is the SPID column for in SQL Profiler?
> I have many databases but I only want to view the transactions on one
> particular database. What changes should I make to the filters inorder
> to achieve this. I have tried database name but that doesnt work.
>
> Thanks in advance
> Wes


Hi Wes,

If for some reason the DatabaseName filter doesn't work, you can try
to filter by DatabaseID instead. To get the ID of your database, run
select db_id() against the database.

I also suggest you try out the tool SQL Trace Analyzer. It allows you
to filter your trace with very high granularity and provides detailed
information about your trace that's easy to understand. You can
download it from here: http://www.lakesidesql.com/tadownloa...er_signup.aspx.

HTH

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 03-01-2008, 02:40 PM
Erland Sommarskog
 
Posts: n/a
Default Re: SQL Profiler - SPID

(wesleym312@gmail.com) writes:
> What is the SPID column for in SQL Profiler?
> I have many databases but I only want to view the transactions on one
> particular database. What changes should I make to the filters inorder
> to achieve this. I have tried database name but that doesnt work.


SPID is the session id, and this is column is very good when you want to
watch a single process.

If you you want to view events from many sessions for one database, use
database id, this column is more often populated.

Note however that by default, you also get events where the filtered
column is not populated. On SQL 2000 this is difficult to avoid. On
SQL 2005 there is a checkbox for this.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:50 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com