I tried like this:
SELECT @def = [definition] FROM [@from_db].sys.sql_modules WHERE object_id = OBJECT_ID('MyProcedure') EXEC(@def);
or any other way same like this.
Aucun commentaire:
Enregistrer un commentaire