啟動 SQL Server 服務
Microsoft.SQLServer.2005.DBEngine.StartService (Task)
Element properties:
Member Modules:
Source Code:
<Task ID="Microsoft.SQLServer.2005.DBEngine.StartService" Target="SQL2005Core!Microsoft.SQLServer.2005.DBEngine" Accessibility="Internal" Enabled="true" Remotable="false">
<Category>Maintenance</Category>
<WriteAction ID="WA" TypeID="System!System.CommandExecuter">
<ApplicationName/>
<WorkingDirectory/>
<CommandLine>net start $Target/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</CommandLine>
<TimeoutSeconds>300</TimeoutSeconds>
<RequireOutput>true</RequireOutput>
<Files/>
</WriteAction>
</Task>