When I create a stored procedure or view it always appends dbo at the beginning of the name. What is the command to use so it does not add the dbo to the front of the name. THANKS IN ADVANCE FOR ANY HELP!!!
In SQL Server 2000 if the person creating the object doesn't have sysadmin rights and there logon isn't mapped directly to the dbo user then when they create objects they will be created in the users schema. This is by design.
In SQL Server 2005+ you can change the default schema of the user so that there objects are created in the dbo schema by default. This can only be done if the user is logging in via a SQL Login, or a Windows login that is specifically specified in the Security section of both the Instance and the database. You can not get the default schema for Windows groups.
It is best practice to always include the name of the schema when creating or modifying objects so that you know which object you are working with.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.