I want to use Enterprise Manager to script all stored procedures on a SQL7 database, then run that script on an SQL2000 database to bring it in line.
The script built out of the SQL7 box contains statements to DROP [DBO].[<procedure name>], but the statements which CREATE the new procedures do not have the [DBO] ownership on them.
This script runs fine on other SQL7 databases, which seem not to mind the missing [dbo] on the CREATE statements.
SQL2000 seems to create the procedures without an ownership context, resulting in there being no [dbo] procedure to DROP if the script should ever be run again in the future.
How is this resolved?
The script built out of the SQL7 box contains statements to DROP [DBO].[<procedure name>], but the statements which CREATE the new procedures do not have the [DBO] ownership on them.
This script runs fine on other SQL7 databases, which seem not to mind the missing [dbo] on the CREATE statements.
SQL2000 seems to create the procedures without an ownership context, resulting in there being no [dbo] procedure to DROP if the script should ever be run again in the future.
How is this resolved?