Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 create table with owner

Author  Topic 

laailalalaa
Yak Posting Veteran

57 Posts

Posted - 2010-02-26 : 06:40:06
hello,

i created a database DB with owner sa. when i create a table like this:

create table DB.sa.tablename (columns list)

i receive:

The specified schema name "sa" either does not exist or you do not have permission to use it.

but the following works:

create table DB.dbo.tablename(columns list)

i tried to create a user 'sa' on DB with login 'sa' and default schema 'dbo', but i received that i 'cannot use the principal sa'.

what is that dbo? and how can i create a user and map it to my login?
and what's a schema?

thanks

vaibhavktiwari83
Aged Yak Warrior

843 Posts

Posted - 2010-02-26 : 07:14:19
Such kind of topic should be posted in New to SQL Server administration forum for quicker response

Vabhav T
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2010-02-26 : 08:02:54
see
http://msdn.microsoft.com/en-us/library/ms190387.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -