Solved

DB object ownership problem.

Posted on 2011-09-02
2
355 Views
Last Modified: 2012-05-12
Hi

(Please refer to attached screen shot)

I log into a SQL Server 2005 database using account admin_cbp_test and create a simple table, the table then has admin_cbp_test ownership, but I want the table objects always to have dbo ownership. How do I achieve that? Can I only do this with an sa account or can I add the user to a particular to achieve same result?

Thanks.
Image1.png
0
Comment
Question by:jonatec
2 Comments
 
LVL 29

Accepted Solution

by:
QPR earned 500 total points
ID: 36472251
create table dbo.tablename
...
0
 

Author Closing Comment

by:jonatec
ID: 36472284
Great thanks !
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question