Share via


SPGlobalAdmin.UpdateConfigDatabaseConnection method

NOTE: This API is now obsolete.

Use the Join method of the SPFarm class to add a local computer to the server farm instead. (In Windows SharePoint Services 2.0 the UpdateConfigDatabaseConnection method was used to update the connection to the configuration database, and is maintained for backward compatibility.)

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
<ObsoleteAttribute("Use SPFarm.Join() instead.")> _
Public Function UpdateConfigDatabaseConnection ( _
    strDatabaseServer As String, _
    strDatabaseName As String, _
    strUserName As String, _
    strPassword As String _
) As SPConfigDatabase
'Usage
Dim instance As SPGlobalAdmin
Dim strDatabaseServer As String
Dim strDatabaseName As String
Dim strUserName As String
Dim strPassword As String
Dim returnValue As SPConfigDatabase

returnValue = instance.UpdateConfigDatabaseConnection(strDatabaseServer, _
    strDatabaseName, strUserName, strPassword)
[ObsoleteAttribute("Use SPFarm.Join() instead.")]
public SPConfigDatabase UpdateConfigDatabaseConnection(
    string strDatabaseServer,
    string strDatabaseName,
    string strUserName,
    string strPassword
)

Parameters

  • strDatabaseServer
    Type: System.String

    A string that specifies the database server.

  • strDatabaseName
    Type: System.String

    A string that contains the name of the new database.

  • strUserName
    Type: System.String

    A string that contains the user name for the administrator account. The parameter is required only if SQL authentication is used.

  • strPassword
    Type: System.String

    A string that contains the password for the administrator account. The parameter is required only if SQL authentication is used.

Return value

Type: Microsoft.SharePoint.Administration.SPConfigDatabase
An SPConfigDatabase object that represents the configuration database.

See also

Reference

SPGlobalAdmin class

SPGlobalAdmin members

Microsoft.SharePoint.Administration namespace