Re: not creating tables as dbo anymore ?
From: Dan Guzman (danguzman@nospam-earthlink.net)
Date: 03/05/03
- Next message: Allan Mitchell: "Re: not creating tables as dbo anymore ?"
- Previous message: Francis: "Re: not creating tables as dbo anymore ?"
- In reply to: Francis: "Re: not creating tables as dbo anymore ?"
- Next in thread: Allan Mitchell: "Re: not creating tables as dbo anymore ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Dan Guzman" <danguzman@nospam-earthlink.net> Date: Wed, 5 Mar 2003 09:18:33 -0600
To create dbo-owned objects without explicitly specifying dbo as the
owner, the user must be either:
a sysadmin role member (sp_addsrvrolemember)
the database owner (sp_changedbowner)
aliased to dbo (sp_addalias)
If sysadmin is overkill, I suggest you change the database owner to the
desired login. Aliases are provided only for backward compatibility.
-- Hope this helps. Dan Guzman SQL Server MVP ----------------------- SQL FAQ links (courtesy Neil Pike): http://www.ntfaq.com/Articles/Index.cfm?DepartmentID=800 http://www.sqlserverfaq.com http://www.mssqlserver.com/faq ----------------------- "Francis" <FMignault@newtrade.com> wrote in message news:036301c2e328$d7e26290$3001280a@phx.gbl... > I would like it to create the tables as dbo without > specifying it. > > I know it is possible because it was doing it before but > something changed and I don't know what. > > I saw that there is a dbo user associated to the database. > Can I associate my user to it ? > > Francis. > > >-----Original Message----- > >Hello, Francis! > > > >Have the user create the table using CREATE TABLE > dbo.TableName(........... > > > > > > > >-- > > > >Allan Mitchell (Microsoft SQL Server MVP) > >MCSE,MCDBA > >www.SQLDTS.com > >I support PASS - the definitive, global community > >for SQL Server professionals - http://www.sqlpass.org > > > >: I have userA that has access to one database as > >: db_owner. > > > >: How come, when I create a table it is not owned by dbo ? > >: It creates the tables as userA.table ... > > > >: I don't understand. How can I setup the user so that it > >: will create objects as dbo ? > > > > --- Microsoft CDO for Windows 2000 > > > > > >. > >
- Next message: Allan Mitchell: "Re: not creating tables as dbo anymore ?"
- Previous message: Francis: "Re: not creating tables as dbo anymore ?"
- In reply to: Francis: "Re: not creating tables as dbo anymore ?"
- Next in thread: Allan Mitchell: "Re: not creating tables as dbo anymore ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|