Save database object with dbo instead of schema-Domain name + dbo

Posted on 2012-09-05
Medium Priority
Last Modified: 2012-09-13
Everytime I save a view or object it adds my schema  like

How can I save a view as dbo owner without the long schema name ?

and if I have save it already how will I chanegre it? thanks
Question by:zachvaldez
1 Comment
LVL 16

Accepted Solution

DcpKing earned 1020 total points
ID: 38369848
"   create view dbo.fred as   "  instead of   "   create view fred as   "

should let you save it as DBO, assuming you have the right privileges. If not, talk to your friendly DBA.

To change a view, open it using the SCRIPT AS ... ALTER VIEW   when you right click it and change the  "   alter view myname.fred as  "  to  "   create view dbo.fred as  " and run the code

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Stellar Phoenix SQL Database Repair software easily fixes the suspect mode issue of SQL Server database. It is a simple process to bring the database from suspect mode to normal mode. Check out the video and fix the SQL database suspect mode problem.

609 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