473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

T-SQL Debugger Doesn't Allow Stepping Through Stored Procedures no other procedure with the same name

T-SQL Debugger Doesn't Allow Stepping Through Stored Procedures
And there is no other procedure with the same name owned by dbo or any
other users.
There is no error messages also, it just completes procedure and
returns result
server:
Microsoft SQL Server 2000 - 8.00.818 (Intel X86)
Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build
2195: Service Pack 4) and I don't know how do determine Client's
version.
What should be done (on client site or server site )to fix this
problem.
Thank you

May 10 '06 #1
12 4438
(me****@hotmail.com) writes:
T-SQL Debugger Doesn't Allow Stepping Through Stored Procedures
And there is no other procedure with the same name owned by dbo or any
other users.
There is no error messages also, it just completes procedure and
returns result
server:
Microsoft SQL Server 2000 - 8.00.818 (Intel X86)
Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build
2195: Service Pack 4) and I don't know how do determine Client's
version.


You can determine the client version from Help->About in Query Analyzer.

I believe that SP2 or earlier of Query Analyzer does not work with
SQL Server SP3. SP3 is 8.00.760. 8.00.818 is a hotfix to SP3 with a
security fix. 818 should work with 760 on the client.

Unless you have the server on the local machine, it is difficult to get
the debugger to work. There are so many things that have to be aligned.
Personally I have given up.

If you are running Windows XP SP2 on the client, you should upgrade to
SQL 2000 SP4, particularly if you are using the XP firewall. But it
does not sound like that - in that case you get an error message.

I believe that the problem when single-step does not work is that
SQL Server does not have privilege to write to your machine from
some port. This is usually due to that SQL Server runs under local
system, or it runs under a domain account with insuffcient privileges.
These days, DBAs perfer to run SQL Server under an account with a
small set or permissions to decrease the surface area in case of an
intrusion.

In Books Online, you can look under Troubleshooting->SQL Server Tools
Troubleshooting -> Troubleshooting the Transact-SQL Debugger and see if
you find any useful tips.

I've found that debuggin with PRINT and SELECT takes me a long way.

--
Erland Sommarskog, SQL Server MVP, es****@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
May 10 '06 #2
Thank you for your reply. The client version :8.00.194
You where saying that my local account is missing some privileges.
Which ones are missing? It's important for me to use debugger, so I am
desperate to get it to work.
Thank you for all your help.
Inna

May 10 '06 #3
(me****@hotmail.com) writes:
Thank you for your reply. The client version :8.00.194
That's the RTM version of Query Analyzer. Install SP3 of SQL 2000 on
your machine.
You where saying that my local account is missing some privileges.
Which ones are missing? It's important for me to use debugger, so I am
desperate to get it to work.


No, I said that the service account for SQL Server might be missing some
privs. But we don't know that yet. First roadblock is the incorrect
version of QA on your machine. It may not be the last.

By the way, what cliet OS do you have?
--
Erland Sommarskog, SQL Server MVP, es****@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
May 10 '06 #4
Hello ,
Sorry for delay, had to get the install of SP3 match the server.
As you asked , I have Windows 2000 5.00.2195 Service Pack 4.
I installed SP3 of SQL 2000 on my machine.
I tried to debug now, and I got new error:
ODBC: Msg 0, Level 19, State 1
[Microsoft][ODBC SQL Server Driver][SQL Server]SqlDumpExceptionHandler:
Process 107 generated fatal exception c0000005
EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
It's even worst then before, because error is too general and can mean
anything.
I hope you can help me.
Thank you very much
Inna

May 16 '06 #5
Hello ,
Sorry for delay, had to get the install of SP3 match the server.
As you asked , I have Windows 2000 5.00.2195 Service Pack 4.
I installed SP3 of SQL 2000 on my machine.
I tried to debug now, and I got new error:
ODBC: Msg 0, Level 19, State 1
[Microsoft][ODBC SQL Server Driver][SQL Server]SqlDumpExceptionHandler:
Process 107 generated fatal exception c0000005
EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
It's even worst then before, because error is too general and can mean
anything.
I hope you can help me.
Thank you very much
Inna

May 16 '06 #6
Hello ,
Sorry for delay, had to get the install of SP3 match the server.
As you asked , I have Windows 2000 5.00.2195 Service Pack 4.
I installed SP3 of SQL 2000 on my machine.
I tried to debug now, and I got new error:
ODBC: Msg 0, Level 19, State 1
[Microsoft][ODBC SQL Server Driver][SQL Server]SqlDumpExceptionHandler:
Process 107 generated fatal exception c0000005
EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
It's even worst then before, because error is too general and can mean
anything.
I hope you can help me.
Thank you very much
Inna

May 16 '06 #7
Hello ,
Sorry for delay, had to get the install of SP3 match the server.
As you asked , I have Windows 2000 5.00.2195 Service Pack 4.
I installed SP3 of SQL 2000 on my machine.
I tried to debug now, and I got new error:
ODBC: Msg 0, Level 19, State 1
[Microsoft][ODBC SQL Server Driver][SQL Server]SqlDumpExceptionHandler:
Process 107 generated fatal exception c0000005
EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
It's even worst then before, because error is too general and can mean
anything.
I hope you can help me.
Thank you very much
Inna

May 16 '06 #8
Hello ,
Sorry for delay, had to get the install of SP3 match the server.
As you asked , I have Windows 2000 5.00.2195 Service Pack 4.
I installed SP3 of SQL 2000 on my machine.
I tried to debug now, and I got new error:
ODBC: Msg 0, Level 19, State 1
[Microsoft][ODBC SQL Server Driver][SQL Server]SqlDumpExceptionHandler:

Process 107 generated fatal exception c0000005
EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
It's even worst then before, because error is too general and can mean
anything.
I hope you can help me.
Thank you very much
Inna
P.S. I have no idea what is happening with this post, it doesn't
confirm, that it was saved.
I am sorry if it will show several times, or maybe not.

May 16 '06 #9
(me****@hotmail.com) writes:
Hello ,
Sorry for delay, had to get the install of SP3 match the server.
As you asked , I have Windows 2000 5.00.2195 Service Pack 4.
I installed SP3 of SQL 2000 on my machine.
I tried to debug now, and I got new error:
ODBC: Msg 0, Level 19, State 1
[Microsoft][ODBC SQL Server Driver][SQL Server]SqlDumpExceptionHandler:
Process 107 generated fatal exception c0000005
EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.
It's even worst then before, because error is too general and can mean
anything.
I hope you can help me.
Thank you very much


There are probably more the one possible reason, but in a rush I found
this KB article: http://support.microsoft.com/default.aspx/kb/270061,
which says that you get this error if @@servername is NULL. The article
describes how to fix this condition.

--
Erland Sommarskog, SQL Server MVP, es****@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
May 17 '06 #10
Hello,
You were right:
select @@Servername
returns null
Finally I was added to sysadmin group on sql server I tried to run
sp_addserver 'IT456', 'local'
And I got
Server: Msg 15028, Level 16, State 1, Procedure sp_addserver, Line 14
The server 'IT456' already exists.

I know I can use 'duplicate_OK' or sp_dropserver and recreate it, but
I don't know what implications can be.
It is important server so I cannot "play" with it.

Or maybe there are other problems that have to be solved before.
Thank you

Jun 1 '06 #11
Hello,
You were right:
select @@Servername
returns null
Finally I was added to sysadmin group on sql server I tried to run
sp_addserver 'IT456', 'local'
And I got
Server: Msg 15028, Level 16, State 1, Procedure sp_addserver, Line 14
The server 'IT456' already exists.

I know I can use 'duplicate_OK' or sp_dropserver and recreate it, but
I don't know what implications can be.
It is important server so I cannot "play" with it.

Or maybe there are other problems that have to be solved before.
Thank you

Jun 1 '06 #12
(me****@hotmail.com) writes:
Hello,
You were right:
select @@Servername
returns null
Finally I was added to sysadmin group on sql server I tried to run
sp_addserver 'IT456', 'local'
And I got
Server: Msg 15028, Level 16, State 1, Procedure sp_addserver, Line 14
The server 'IT456' already exists.

I know I can use 'duplicate_OK' or sp_dropserver and recreate it, but
I don't know what implications can be.
It is important server so I cannot "play" with it.


The implications as such are harmless. However, for it to take effect
so that @@servername is no longer NULL, you need to restart SQL Server,
which may not be acceptable.

Then again, if this is a production server, you should not run the
debugger on it anyway.
--
Erland Sommarskog, SQL Server MVP, es****@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
Jun 1 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jarrod Morrison | last post by:
Hi all Im relatively new to using stored procedures and im not sure if it is possible to do what I am trying to do so any help here is greatly appreciated. I am using the variable @MachineName...
7
by: Douglas Buchanan | last post by:
I can't seem to open SQLS2k Stored Procedures in the IDE I am running MDE 2003 Version 7.1.3088 I have a MSDN professional subscription and did a complete install of vs.net Help explains how...
11
by: Bă§TăRĐ | last post by:
I have been working on this particular project for a little over 2 weeks now. This product contains between 700-900 stored procedures to handle just about all you can imagine within the product. I...
7
by: pkruti | last post by:
Below is a stored procedure i am working with and i am trying to drop the yesno_holding table if it exists but how do i add it back? Meaning i want it to drop if it exists but i want to add it back...
4
by: Little PussyCat | last post by:
Hello, I am doing a lot of work with stored procedures at work now and am wondering if there is a way that I can step through the code line by line and set breakpoints on it like I do in VB/VBA...
3
by: Rhino | last post by:
I've spent the last couple of hours trying to figure out how to debug a Java stored procedure and am just going in circles. The last straw came when I got "Cannot open input stream for default"...
0
by: Amber | last post by:
Stored procedures are faster and more efficient than in-line SQL statements. In this article we will look at two SQL Server stored procedures; one using an input parameter and one not, and see how...
2
by: Crazy Cat | last post by:
Using Visual Basic .NET and SQL Server 2005 I attempt to add a query that is a call to a stored procedure in the DataSet Designer. The TableAdapter Query Configuration wizard finds my stored...
4
by: scparker | last post by:
Hello, We have a stored procedure that does a basic insert of values. I am then able to retrieve the ID number created for this new record. We are currently using ASP.NET 2.0 and use N-Tier...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.