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 Programming
 how to add table to schema group

Author  Topic 

AdamWest
Constraint Violating Yak Guru

360 Posts

Posted - 2011-07-21 : 12:11:02
We have a schema group called account.

the tables are account.table1,2, etc
I wanted to add the new usercustomerdepartment table to this account schema.
but when I do 'new table' it places it in dbo. account etc
how can i get it just in the account schema?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2011-07-21 : 12:13:57
just give CREATE TABLE account.<tablename>....

dbo might be your default schema which causes it to add the prefix automatically.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
   

- Advertisement -