MS SQL Server Concepts and Programming Question:

Download Job Interview Questions and Answers PDF

What Is a Schema in MS SQL Server 2005?

MS SQL Server Interview Question
MS SQL Server Interview Question

Answer:

A schema is a container of database objects with the following interesting related rules:

* A schema may contain different object types, like tables, indexes, views, procedures, functions, etc.
* A database user can be assigned with a default schema.
* Object names must be prefixed with schema names when referencing schemas outside your default schema.
* Every schema has a single owner (a database user). A database user may own multiple schemas.
* If you login name is mapped to the owner of a schema, you have full permissions on this schema.
* To drop a schema, you need to empty the schema first.


Download MS SQL Server Interview Questions And Answers PDF

Previous QuestionNext Question
How To Create an Multi-Statement Table-Valued Function?How To Create a New Schema in a Database?