How do I create a SQL table under a different schema?

Matt picture Matt · Sep 29, 2009 · Viewed 152.5k times · Source

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.

Answer

adrianbanks picture adrianbanks · Sep 29, 2009
  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.