Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Building SPROCS in database

Status
Not open for further replies.

kinosaidp

Programmer
Mar 5, 2007
9
0
0
US
Hello!

I'm trying to figure a way to build sets of stored procedures and functions from a source database to another either using dts or t-sql.
I do have a list of stored procedures listed in tableA in the source database.
I'm thinking of
1. running my script thru tableA,
2. capture the SPROC name and functions(using sp_depends sprocname?)
3. generate the sql script
4. run the captured script to the destination database.

Currently the build is done manually where in we have to run the script in query analyzer to update the sprocs. It would be nice if there would be a better way of doing this.

Thanks.
 
I just want to know if somebody can help me with this one.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top