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


find all the objects in a stored procedure


find all the objects in a stored procedure

Author
Message
bhaaratbchopra
bhaaratbchopra
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 26
I have a question to find out all the objects used in a stored procedure.
i can find it using sysobjects and sysdepends table. but it gives me only that objects which exist in
same database in which procedure exist.
how can I find all the objects in a stored procdure if, objects used in procedure are related to
other database and procedure exist in other database. for eg i have a procedure in 'A' database
and it is using table which exist in 'B' database. I m Working in sql 2000. if possible please give me solution in sql 2000 else in sql 2005
Steve Jones
Steve Jones
SSC Guru
SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)

Group: Administrators
Points: 65553 Visits: 19118
There is no good way to do this as the dependency tree takes some effort to build. Red Gate has a dependency tool (my employer) that will find the dependencies.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
bhaaratbchopra
bhaaratbchopra
Grasshopper
Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)Grasshopper (19 reputation)

Group: General Forum Members
Points: 19 Visits: 26
thanks for your reply.

I have another question

On one server there four instance of sql 2008 we need to upgrade it to 2008 r2. we will use inplace upgrade to upgrade on instance at a time.

Please let us know what do we need to take care of and what will be the rollback plan.
Steve Jones
Steve Jones
SSC Guru
SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)SSC Guru (65K reputation)

Group: Administrators
Points: 65553 Visits: 19118
That's a huge question. What do you need to do?

Practice the upgrade on other servers, learn what might be a problem in your environment and document the process. Make sure you have good backups.

Follow me on Twitter: @way0utwest
Forum Etiquette: How to post data/code on a forum to get the best help
My Blog: www.voiceofthedba.com
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