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 Administration
 Schema binding

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2013-07-22 : 20:56:17
Hi

whenever i've created objects in windows authentication,objects were always binded with my windowslogin schema
(ie) [munu].[Employee]
incase of sql authentication ,objects were binded with dbo schema (ie) [dbo].[Employee]

i tried to create objects from my windows authentication mode by specifying create table [dbo].[employee]. but it
still creates with windows schema (ie) [munu].[Employee]

how to bind with dbo schema from windows credential?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-07-23 : 01:02:17
you need make dbo as default schema for the user

use ALTER USER statement
http://msdn.microsoft.com/en-us/library/ms176060.aspx

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-07-23 : 06:40:36
In SSMS object explorer, expand the nodes and navigate to the security node under the name of the database you are interested in. Expand that, right-click on the user and select properties. In the dialog that pops up, change the default schema to dbo and click ok.

It has the same effect as doing it using T-SQL, but is more visual.
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2013-07-24 : 14:12:16
Thanks James and visakh16
quote:
Originally posted by James K

In SSMS object explorer, expand the nodes and navigate to the security node under the name of the database you are interested in. Expand that, right-click on the user and select properties. In the dialog that pops up, change the default schema to dbo and click ok.

It has the same effect as doing it using T-SQL, but is more visual.

Go to Top of Page

James K
Master Smack Fu Yak Hacker

3873 Posts

Posted - 2013-07-24 : 14:23:38
welcome
Go to Top of Page
   

- Advertisement -