Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
in the sql server 2005, how to batch replace one characters to another in all of the store procedures and functions? I have more than 200 store procedures in the database and would like to replace one word in all store procedures. do you have same simple solution, like as using T-SQL?Thanksrocky wang
madhivanan
Premature Yak Congratulator
22864 Posts
Posted - 2008-08-21 : 08:13:18
quote:Originally posted by rockyzlwang in the sql server 2005, how to batch replace one characters to another in all of the store procedures and functions? I have more than 200 store procedures in the database and would like to replace one word in all store procedures. do you have same simple solution, like as using T-SQL?Thanksrocky wang
Script out the procedures to text fileDo search and replaceExecute the codeMadhivananFailing to plan is Planning to fail
rockyzlwang
Starting Member
2 Posts
Posted - 2008-08-21 : 08:22:50
quote:Originally posted by madhivanan
quote:Originally posted by rockyzlwang in the sql server 2005, how to batch replace one characters to another in all of the store procedures and functions? I have more than 200 store procedures in the database and would like to replace one word in all store procedures. do you have same simple solution, like as using T-SQL?Thanksrocky wang
Script out the procedures to text fileDo search and replaceExecute the codeMadhivananFailing to plan is Planning to fail
thanks.do have any other way except export to txt first, and only use T-SQL statement to do that? I rememnbered that there is a simple way by T-SQL statement to do, but I forgot it now. and there are too much store procedures and functions in database, not easy to export to txt in fact.thanks again.rocky wang