Thanks for the response, unfortunately I do not have the flexibility to change object owners as it is not my database.
Main Topics
Browse All TopicsHi. Apologies in advance if my description of this problem is a little basic - I'm no DBA!
I have restored a database backup on a local machine. I then had to create a new login to match the owner of this restored database's objects. I then sorted out this orhpaned user with "sp_change_users_login. Everything is fine in terms of the web application logging into this database correctly as this user and accessing the various objects.
However, when it comes to changing views or stored procedures, I get Error 208 message relating to the tables used in the views and stored procedures. If I prefix the table names with the owning user name, it is ok. I am not sure why this is necessary, as the owner of the tables, views, and stored procedures are the same. Unfortunately, I do not have the liberty of adding prefixes in all the views, etc as this is not my database and I am just adding extra features to the associated web application.
Can anyone suggest a way of making changes to views and stored procedures that will not require adding the owner prefix to the objects. It obviously works ok on their development and live servers, is there something I have missed in my setup?
Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: aneeshattingalPosted on 2006-04-25 at 09:56:15ID: 16535914
I think it is better to set the owner of all the database as 'dbo'