(SQL 2000 SP1)
Basically I have been asked to find a way to create a new stored procedure in a different database.
I have got as far as creating a stored procedure from a stored procedure using the following code.
CREATE procedure b as
declare @SQLString nvarchar(500)
set @SQLString =N'CrEATE procedure a as select * from sysfiles'
EXECUTE sp_executesql @SQLString
But I need the stored procedure to be created in a different database, Any ideas anyone?