Hi all,
we have large database and we need to change all tables name,stored procedures name,sql server agents etc...
any idea how to do that fast and any impact when we do this..
any suggestions
Hi all,
we have large database and we need to change all tables name,stored procedures name,sql server agents etc...
any idea how to do that fast and any impact when we do this..
any suggestions
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nitin SontakkePosted Jan 1, 2023, 4:54 AM
First, it would be nice to know what is the purpose of such an activity. Meaning, standardization, consistency, etc.
Second, can you please give us an example existing name and proposed name.
It is simple as well as complex at the same time.
It is the dependent objects which can be difficult to manage.
Otherwise, you can use metadata to generate object renaming script.
Hope it hleps!
Rajesh GamiPosted Jan 3, 2023, 6:15 AM
If you want to identify all stored procedures referring to a particular table then use the below query
Tahir AnsariPosted Jan 3, 2023, 5:50 AM
fore.g table name is tbl_employee so we need to changes tbl_employees or tbl_emp1 etc
stored procedures name is proc_getemp then change to proc_empget, empget, etc.
how to find how many tables are connected to stored procedures