views:

419

answers:

4

This is from SQL Server 2008, ssms

When I create a table, it creates under dbo.

I would like to create it under a different schema, but when I use the 'New Table' dialog, I can never find the field where to specify this.

+1  A: 

Try running CREATE TABLE [schemaname].[tableName]

Shaun F
Yeah, I realize I could do that, I was just wondering if the dialog version had an option somewhere to do this.
Matt
+3  A: 
  1. Right-click on the tables node and choose New Table...
  2. With the table designer open, open the properties window (view -> Properties Window).
  3. You can change the schema that the table will be made in by choosing a schema in the properties window.
adrianbanks
A: 

When I create a table using SSMS 2008, I see 3 panes:

  • The column designer
  • Column properties
  • The table properties

In the table properties pane, there is a field: Schema which allows you to select the schema.

Brannon
+2  A: 
Daniel