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
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Custom Schema

Author  Topic 

ronnieoverby
Starting Member

36 Posts

Posted - 2008-08-29 : 16:37:09
I have created a new sql server 2005 database that I want to use for several applications to be built in the future. I would like to create the tables for each application with their own schema. For example, tables used by the employee directory will have a schema like: Directory.Employees, Directory.Table2, etc. instead of DBO.TableName.

How do you do this?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-29 : 16:38:12
Create the Directory schema and then when creating the objects, specify the two-parting naming convention: SchemaName.ObjectName.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

ronnieoverby
Starting Member

36 Posts

Posted - 2008-08-29 : 16:45:12
Thanks!

Who should I set as the schema owner?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-08-29 : 17:11:31
Directory

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -