I restored a database from a backup file on the other server. Then I ran sp_auto_fix_login to fix the logins on the new server.
I need to run tens of stored procedures (with a single call) developed by our vendor and all the procedures and other referrenced objects have [dbo] as prefix([dbo].objectname). But when I tried to get object_id([dbo].objectname), I got null. When I tried to run "SELECT OBJECT_ID(<b>[mylogin]</b>.objectname)", I got the object_id. Here "mylogin" is one user account that created the database originally. mylogin belongs to sysadmin server role and is dbowner.
How can I run all the procedures without changing all "dbo" to "mylogin" in all the places?
By the way, it's SQL7 on NT4. I connected to SQL7 using Query Analyzer with sa account.
I need to run tens of stored procedures (with a single call) developed by our vendor and all the procedures and other referrenced objects have [dbo] as prefix([dbo].objectname). But when I tried to get object_id([dbo].objectname), I got null. When I tried to run "SELECT OBJECT_ID(<b>[mylogin]</b>.objectname)", I got the object_id. Here "mylogin" is one user account that created the database originally. mylogin belongs to sysadmin server role and is dbowner.
How can I run all the procedures without changing all "dbo" to "mylogin" in all the places?
By the way, it's SQL7 on NT4. I connected to SQL7 using Query Analyzer with sa account.