I have a stored proc that resides at a location named business_istestxc.dbo.A1 of a particular server. The proc in question pulls data from tables on A1 (mostly) but must also go out to business_test and pull data from tables B2 and C3. Since the proc resides on A1, the path to tables B2 and C3 are fully declared as business_test.dbo.B2 and business_test.dbo.C3 and all is good.
In the long involved process of bringing a large project up, the stored procs MUST be tested on a 'test' system database named salesmanship. Therefore the full paths will be salesmanship_istestxc.dbo.A1 and salesmanship_test.dbo.B2 and salesmanship_test.dbo.C2 so that each proc must be changed by hand to change the path. In addition, when they are placed 'back' on business they will again have to be changed.
Question: Is there a way to paramatize the paths so that they do not have to be changed manually?
In advance your help is gratefully received.
In the long involved process of bringing a large project up, the stored procs MUST be tested on a 'test' system database named salesmanship. Therefore the full paths will be salesmanship_istestxc.dbo.A1 and salesmanship_test.dbo.B2 and salesmanship_test.dbo.C2 so that each proc must be changed by hand to change the path. In addition, when they are placed 'back' on business they will again have to be changed.
Question: Is there a way to paramatize the paths so that they do not have to be changed manually?
In advance your help is gratefully received.