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.
| Author |
Topic |
|
abhit_kumar
Posting Yak Master
147 Posts |
Posted - 2010-02-11 : 00:32:41
|
| hello frnds,Im going to change on Table field name from APInv to APInvoice.Now the problem is that i have used field name APInV in lots of stored procedure,so is there any way so that i dont need to go to individual sp to change thefield name?Please guide me.Regards, |
|
|
senthil_nagore
Master Smack Fu Yak Hacker
1007 Posts |
Posted - 2010-02-11 : 00:35:50
|
| 1.Generate Script and do find and replace2.Drop all the procedures3.Recreate using the updated scriptSenthil.C------------------------------------------------------[Microsoft][ODBC SQL Server Driver]Operation canceledhttp://senthilnagore.blogspot.com/ |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-02-11 : 00:36:48
|
| nope. you need to search within stored proc for references and change it manually. you could use sp_depends to find out sps that refer your table------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
abhit_kumar
Posting Yak Master
147 Posts |
Posted - 2010-02-11 : 01:05:57
|
| Thanks visakh,but is there not any other way excepting to change it manually?Else your suggestion is good. |
 |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
|
|
|