PDA

View Full Version : محدودیت دسترسی به دیتابیس در shema پیش فرض dbo



hasti.lm
یک شنبه 03 شهریور 1392, 15:20 عصر
سلام
امکان دارد که schema پیش فرض dbo را برای دیتابیس مورد نظر غیر فعال کنیم و با یوزر sa هم به دیتایبیس دسترسی نداشته باشیم در واقع میخوام که دیتابیس را در یک schema خاص و یوزر خاص ایجاد کنم و شکل دیگه ای دسترسی نداشته باشم
باتشکر

bitasoft.ir
یک شنبه 17 شهریور 1392, 15:53 عصر
سلام
امکان دارد که schema پیش فرض dbo را برای دیتابیس مورد نظر غیر فعال کنیم و با یوزر sa هم به دیتایبیس دسترسی نداشته باشیم در واقع میخوام که دیتابیس را در یک schema خاص و یوزر خاص ایجاد کنم و شکل دیگه ای دسترسی نداشته باشم
باتشکر



CREATE SCHEMA schema_name_clause [ <schema_element> [ ...n ] ]

<schema_name_clause> ::=
{
schema_name
| AUTHORIZATION owner_name
| schema_name AUTHORIZATION owner_name
}

<schema_element> ::=
{
table_definition | view_definition | grant_statement |
revoke_statement | deny_statement
}





schema_name
Is the name by which the schema is identified within the database.
AUTHORIZATION owner_name
Specifies the name of the database-level principal that will own the schema. This principal may own other schemas, and may not use the current schema as its default schema.
table_definition
Specifies a CREATE TABLE statement that creates a table within the schema. The principal executing this statement must have CREATE TABLE permission on the current database.
view_definition
Specifies a CREATE VIEW statement that creates a view within the schema. The principal executing this statement must have CREATE VIEW permission on the current database.
grant_statement
Specifies a GRANT statement that grants permissions on any securable except the new schema.
revoke_statement
Specifies a REVOKE statement that revokes permissions on any securable except the new schema.
deny_statement
Specifies a DENY statement that denies permissions on any securable except the new schema.