tsql - Delete Redundant Sql Server Stored Procedures -
how delete redundant stored procedures in t-sql? saying "redundant", talking sps may have different names, work same way -- same input, same output. approaches can different.
here situation: 20-30 databases hundreds of tables each, thousands of stored procedures keeps growing everyday, no version control on stored procedures, , did on production databases, no test databases.
profiler , hard work answer. set profiler monitor rpc:completed event. remove possible columns , add "text data" column. output saved parsed find stored procedures have same paramertes , produce same output. check stored procedure output parameters in sql server profiler more information on results of rpc:completed event.
Comments
Post a Comment