Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 query analyzer question

Author  Topic 

mikejohnson
Posting Yak Master

153 Posts

Posted - 2004-02-24 : 10:57:23
in sql query analyzer, is there a way to display the script that is used in a certain sp? all i'm doing is putting the name of the sp in sql query analyzer and running it. now i want to see the sp script w/o opening enterprise manager.

X002548
Not Just a Number

15586 Posts

Posted - 2004-02-24 : 11:01:46
QA Menu item

Tools>ObjectBrowser>Show/Hide

Or just hit F8



Brett

8-)
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-02-24 : 14:23:53
Why wouldn't you just use sp_helptext 'ProcName'?

Or highlight the sp and hit Alt+F1?

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-02-24 : 14:30:06
I find the object browser to be easier. You just right click on it and hit edit. It'll automatically put ALTER instead of CREATE. It also puts the SET commands that were used on CREATE.

To each his own though.

Tara
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-02-24 : 14:44:17
Object Browser. You're so new school. (grin)

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-02-24 : 14:50:25
I just adapt. I've been working on SQL Server since 4.2 (very little though, mostly 6.5 and newer). If I find that the tool can make my life easier, I use it.

Tara
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-02-24 : 14:58:39
I've been using it since 4.2 also. I was just kidding with you. I like the object browser. There's so many ways to do things in 2000. I find myself using all of them at times. Just depends on what I'm doing at any given time.

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

X002548
Not Just a Number

15586 Posts

Posted - 2004-02-24 : 15:45:36
Hell, I didn't even knew ezisted until Tara told me sometime last year

(still don't use it)



Brett

8-)
Go to Top of Page
   

- Advertisement -