SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to Debug Store Procedure in Sql Server 2005


How to Debug Store Procedure in Sql Server 2005

Author
Message
Abhay Jadhav
Abhay Jadhav
SSC Rookie
SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)

Group: General Forum Members
Points: 36 Visits: 21
Hello All,
Greetings.


I have serious problem while dealing with Stored Procedure in Sql server 2005. I knew how to debug the SP in sql server 2000. in Query Analyzer right clicking the SP name and selecting the Debug option. But i don't know about how to debug it in Sql Server 2005. Can anyone please tell me in detail how to do it.
Please tell me urgently.

Thanks in Advance
Abhay
rafa3004
rafa3004
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 32
Hi, You can using the Visual Studio.

Bye...
Abhay Jadhav
Abhay Jadhav
SSC Rookie
SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)

Group: General Forum Members
Points: 36 Visits: 21
Thanks for your coments.
can you please tell me how to debug it in Visual studio. As i don't have any idea relating to it. Please guide me.

Thanks in Advance
Abhay
~paul hewitt
~paul hewitt
SSC Eights!
SSC Eights! (989 reputation)SSC Eights! (989 reputation)SSC Eights! (989 reputation)SSC Eights! (989 reputation)SSC Eights! (989 reputation)SSC Eights! (989 reputation)SSC Eights! (989 reputation)SSC Eights! (989 reputation)

Group: General Forum Members
Points: 989 Visits: 251
To get started, you might try:

Make a new project in Vis Studio, choose other project types, then database. (Note I am using VS 2005)

Create a database reference when prompted (or right click on database reference in Solution Explorer)

Fill in the dialogue boxes to specify the sql server and database you want to use.

Then look in the Server Explorer, expand Stored Procs container, and pick the stored proc you want. Right click on that and Step Into proc.

That should get you started.

For some reason I suddenly have the paranoid feeling that everyone will now post better replies which need less mouse clicks or whatever! Smile
Abhay Jadhav
Abhay Jadhav
SSC Rookie
SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)

Group: General Forum Members
Points: 36 Visits: 21
Well thanks Paul. I have been waiting for this reply since last 2 months. thanks a lot.

Abhay
Sandeep Kataria
Sandeep Kataria
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 47
Hi,

I dont see the 'step into' option and I also dont see the database in th e'other projects' when I try to create new project in VS2005. Obviously I am missing stuff. Can you tell what?

Sandeep


Kind Regards,

Sandeep Kataria
kumar_janakiraman
kumar_janakiraman
Forum Newbie
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)

Group: General Forum Members
Points: 1 Visits: 15
Hi,
Login as Windows Authentication then try for Debug.
Sandeep Kataria
Sandeep Kataria
Forum Newbie
Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: General Forum Members
Points: 3 Visits: 47
Thanks Kumar but I am logging in with windows authentication...

Sandeep


Kind Regards,

Sandeep Kataria
Abhay Jadhav
Abhay Jadhav
SSC Rookie
SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)SSC Rookie (36 reputation)

Group: General Forum Members
Points: 36 Visits: 21
Hi Sandeep,
You can Click on "View" menu and can select "Sever Explorer" option from it. From there you can connect to your Server by giving correct credentials. After that the Server Explorer will appear at the left side of the window.
You can select any "Blank Solution" and can follow the steps. After getting the "Server Explorer" you can expand the "Stored Procedure" option and can select the specific Stored Procedure and right click the mouse and select "Open" option. Which will open your Stored Procedure in Editable window. After that you can select "Debug" menu option and click on "Start Debugging".

Hope this can solve your problem.

Bye
Abhay
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search