Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am using SQL Server 2008 R2.

TEST 1:
step 1. I create a login user named 'mtcs', just a user ,no database mapping.

step 2. I create a database named 'DBMTCS', and ,I assign the 'mtcs' as owner to database 'DBMTCS'.

step 3. After step1,2, I want change the schema from the User Mapping of the user 'mtcs' ,but can not.


TEST 2:
step 1. I create a database named 'DBMTCS', the owner is default.

step 2. I create a login user 'mtcs', than I do the user mapping, I changed the schema of 'DBMTCS'.

step 3. I change the owner of 'DBMTCS', but can not.

Before this test, I just want to create a database which has its own user and schema.Still not complete. so there I have 2 questions:

1.Whats the difference between the database OWNER and login user MAPPING?


2.How to change the schema of the database?



Thanks in advance
Posted
Comments
Herman<T>.Instance 13-Nov-12 5:48am    
an explanation can be found here

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900