Results 1 to 3 of 3

Thread: What is spid?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2010
    Posts
    478

    What is spid?

    I ran sp_who2 in sql server, what is SPID?
    From Microsoft, I found that it is session ID.(I copied it at bottom).
    I used ASP.NET in app, what is the relationship between SPID and connection string? Is it processing ID?
    -------------
    session ID (SPID in SQL Server 2000 and earlier) is a session identification number belonging to the SQL Server instance. session ID is smallint.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: What is spid?

    the spid uniquely idendifies a given connection to the database. the relationship is that you connect, you get a spid. the connectionstring doesn't affect the spid and the spid does not affect the connectionstring. it is any connection to the server. If you make multiple connections to the server at the same time, you get multiple spids assigned. Also spid is what you pass to the sproc to kill a process (something that should only be done under extreme circumstances) on the server.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: What is spid?

    aspfun, was this just a general question, or are you having a specific issue that you are trying to fault find?

    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width