HI
I have 20 sql servers each server will have near about 50 database , I want to create a Stored proc on each databases can some one help to write a loop and create sample proc on db's
@proc = 'CREATE PROC TEST111dddssww as begin print ''1'' end '
I want @proc to be Exec (@proc) on all databases..
I can.t use SP_MSforeachDB because I have some other validations before I execute . please help me . Thanks
Regards,
Ram
ramakrishna