共用方式為


SPGlobalAdmin.StartDBService Method

NOTE: This API is now obsolete.

Use the Provision method of the SPWindowsServiceInstance class to provision the database service instead. (In Windows SharePoint Services 2.0 the StartDBService method started the specified database server as a service in the SharePoint Foundation deployment, and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<ObsoleteAttribute("Call SPWindowsServiceInstance.Provision().", False)> _
Public Sub StartDBService ( _
    strDatabaseServer As String _
)
'Usage
Dim instance As SPGlobalAdmin
Dim strDatabaseServer As String

instance.StartDBService(strDatabaseServer)
[ObsoleteAttribute("Call SPWindowsServiceInstance.Provision().", false)]
public void StartDBService(
    string strDatabaseServer
)

Parameters

  • strDatabaseServer
    Type: System.String

    A string that contains the name of the database server.

See Also

Reference

SPGlobalAdmin Class

SPGlobalAdmin Members

Microsoft.SharePoint.Administration Namespace