Re: not creating tables as dbo anymore ?
From: Allan Mitchell (allan@no-spam.sqldts.com)
Date: 03/05/03
- Next message: Bhikku Mhatre: "Re: not creating tables as dbo anymore ?"
- Previous message: Dan Guzman: "Re: not creating tables as dbo anymore ?"
- In reply to: Francis: "Re: not creating tables as dbo anymore ?"
- Next in thread: Bhikku Mhatre: "Re: not creating tables as dbo anymore ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
From: "Allan Mitchell" <allan@no-spam.sqldts.com> Date: Wed, 5 Mar 2003 15:18:20 -0000
Hello, Francis!
Read these in BOL
Database Owner (dbo)
CREATE TABLE
owner
Is the name of the user ID that owns the new table. owner must be an
existing user ID in the database specified by database_name. owner defaults
to the user ID associated with the login for the current connection in the
database specified in database_name. If the CREATE TABLE statement is
executed by a member of the sysadmin fixed server role, or a member of the
db_dbowner or db_ddladmin fixed database roles in the database specified by
database_name, owner can specify a user ID other than the one associated
with the login of the current connection. If the CREATE TABLE statement is
executed by a login associated with a user ID that has only create table
permissions, owner must specify the user ID associated with the current
login. Members of the sysadmin fixed server role, or logins aliased to the
dbo user are associated with the user ID dbo; therefore, tables created by
these users default to having dbo as the owner. Tables created by any logins
not in either of these two roles have owner default to the user ID
associated with the login.
-- 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 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 ??>> --- Microsoft CDO for Windows 2000
- Next message: Bhikku Mhatre: "Re: not creating tables as dbo anymore ?"
- Previous message: Dan Guzman: "Re: not creating tables as dbo anymore ?"
- In reply to: Francis: "Re: not creating tables as dbo anymore ?"
- Next in thread: Bhikku Mhatre: "Re: not creating tables as dbo anymore ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|