SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Schema binding
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

sent_sara
Constraint Violating Yak Guru

India
365 Posts

Posted - 07/22/2013 :  20:56:17  Show Profile  Reply with Quote
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

India
52249 Posts

Posted - 07/23/2013 :  01:02:17  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

3332 Posts

Posted - 07/23/2013 :  06:40:36  Show Profile  Reply with Quote
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

India
365 Posts

Posted - 07/24/2013 :  14:12:16  Show Profile  Reply with Quote
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
Flowing Fount of Yak Knowledge

3332 Posts

Posted - 07/24/2013 :  14:23:38  Show Profile  Reply with Quote
welcome
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000