Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing Table ownership

Status
Not open for further replies.

pkw25

MIS
Mar 20, 2002
46
IE

Hello

We have a an SQl Server database at work. I have written some of my own queries for it. I wanted to be able to work at home with the same queries by copying the relavant tables to a new Database on my hard drive.
The problem is the tables at work are all owned by user 'scheme' which means scheme is everywhere in the queries.
The copied tables have user 'dbo'. In order for the queries to work at home I have to edit them everytime.
I cant seem to change the owner of these tables to scheme.
I created the user scheme and login and used the sp_changedbowner stored procedure but to no avail. Any help on this matter would be appreciated.

Paraic Walsh
 

Thanks

Your solution worked a dream. You saved me alot of time trying out different SP's

Paraic Walsh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top