creating a stored procedure in a different database

  • i want to create a stored procedure in different database from one database theough a stored procedure..i have some idea about opendatasource but don't know how to go about implementing it..please help me

     

    thanks in advance

  • Opendatasource can only be used for querying another server.

    you can try to use dynamic sql, but there are always challenges doing so.

    http://www.sommarskog.se/dynamic_sql.html

    But using a stored procedure to create another stored procedure is unusual at best.

     

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply