Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Given a line # - How do I determine the statement within a Stored Proc?
I am getting a deadlock message and it is referencing the following:
SPID: 192 ECID: 0 Statement Type: DELETE Line #: 77

When I execute a sp_helptext on the SP in question - there are 4 delete
statements but none of these are on line 77 of the sp_helptext output.  In
fact line # 77 of the sp_helptext output is actually the very last END
statement in the SP.

Is there any way to tell what the statement is that corresponds to line #
77?

Thanks in advance,
Tom



Report this thread to moderator Post Follow-up to this message
Old Post
TJT
08-31-05 04:23 PM


Re: Given a line # - How do I determine the statement within a Stored Proc?
look like line 1 starts at the first statement inside the SP, after these
lines

CREATE  PROC xxx
AS
SET NOCOUNT ON

and any blank line.

hth,


"TJT" <TJT@nospam.com> wrote in message
news:uhaG8ZkrFHA.260@TK2MSFTNGP11.phx.gbl...
>I am getting a deadlock message and it is referencing the following:
> SPID: 192 ECID: 0 Statement Type: DELETE Line #: 77
>
> When I execute a sp_helptext on the SP in question - there are 4 delete
> statements but none of these are on line 77 of the sp_helptext output.  In
> fact line # 77 of the sp_helptext output is actually the very last END
> statement in the SP.
>
> Is there any way to tell what the statement is that corresponds to line #
> 77?
>
> Thanks in advance,
> Tom
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
ME
08-31-05 06:23 PM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 12:36 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006