Stored procedures with table parameter

  • Hi all,

    I have created a SP in master database that requires table name as a parameter. But I am worried, it give a error " obj not found" if the table belongs to other database...

    For this SP to work successfully against all the tables.. do i need to deploy therm each and every DB in my server or is there any way out..

    How can I implement this...??

    Thanks in advance...

     

  • can you add an extra parameter for the database name?

    then your sql could refernce the full name of the table. e.g

    database.tableowner.tablename

    or could you post your stored procedure so we can see if there is an easy way

    MVDBA

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

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