Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grouping tables in SQL SERVER

How do I group a set of tables or label them together?

In our project, each user has two separate tables allocated for them. I need to group all users tables separately.

How do I accomplish this?

like image 967
Josh Avatar asked Oct 26 '22 03:10

Josh


1 Answers

Perhaps you could use SQL Server Schemas to create logical separation of database objects (tables,views,stored procedures,functions,triggers etc.).

See the Microsoft Books Online Reference: User-Schema Separation

Using this method, you could then group related tables into the same schema.

like image 140
John Sansom Avatar answered Oct 30 '22 01:10

John Sansom