Перевод базы данных в режим "вне сети"
Microsoft.SQLServer.2005.Databse.SetDBOffline (Task)
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2005.Databse.SetDBOffline" Target="SQL2005Core!Microsoft.SQLServer.2005.Database" Accessibility="Internal" Enabled="true">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="Microsoft.SQLServer.2005.SetDBState">
<ConnectionString>$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ConnectionString$</ConnectionString>
<Database>$Target/Property[Type="SQL!Microsoft.SQLServer.Database"]/DatabaseName$</Database>
<State>OFFLINE</State>
<TimeoutSeconds>300</TimeoutSeconds>
</WriteAction>
</Task>