September 15, 2005 at 9:25 am
Can any one give me a hint as to what needs to be done to allow debugging of stored procedure via Visual Studio? I'm getting the message: 'Cannot debug stored procedure because the SQL Server database is not set up correctly or user does not have permission to execute maste.sp_sdidebug.'
I can use the Visual Studio debugger on Database A. I created database B via restore of a backup of database A, yet I get the upbove message when trying to debug. I suspect there's a simple setting I need to change, but don't know what it is.
Any advice greatly appreciated!
Jim
September 15, 2005 at 10:40 am
Does the user your program is using for the connection have execute permissions on the stored proc? (If you're not sure what user you're connecting as, test by giving everyone exec rights to that sp, just long enough to see if the debugger works.)
September 15, 2005 at 10:43 am
Thanks for the reply (especially the second part!)
Yup, we've got execute rights, so it's something else.
September 15, 2005 at 11:02 am
September 15, 2005 at 6:01 pm
Are you running XP? And do both databases run on machines that have SQL SP4 installed? I found I have a problem when running XP against a server that is using SQL SP3. I get the same errors.
Make sure to fully test SP4 before installing on a production box! I've had problems with linked servers after installing it going from a 2000 box to a 2003 box.
Gary Johnson
Sr Database Engineer
September 15, 2005 at 6:11 pm
You may already know this but have you read the help for "Setting up SQL Debugging" ? There is quite a lot of info there.
DB
The systems fine with no users loggged in. Can we keep it that way ?br>
September 16, 2005 at 6:55 am
September 16, 2005 at 7:30 am
Hi,
What i have read so far is you can only debug stored procedure in visual studio's enterprise edition and not in any other version.
Mits
September 16, 2005 at 12:50 pm
Apply SQL Hotfix 944 on Server.
Turn off your Firewall. Or add exception (add ports) to it which are related to your machine/remote machine using Stored Proc.
Also in the Firewall Settings exclude the program C:\Program
Files\Common Files\Microsoft Shared\SQL Debugging\sqldbreg2.exe and Port 135
September 19, 2005 at 1:24 am
Viewing 10 posts - 1 through 9 (of 9 total)
You must be logged in to reply to this topic. Login to reply