CreateConfigDatabase(String, String, String, String) Method
The CreateConfigDatabase method of the SPGlobalAdmin class creates a configuration database based on the specified database server, database name, account name, and password.
Parameters
strDatabaseServer A string that specifies the database server.
strDatabaseName A string that contains the name of the new database.
strUserName A string that contains the user name for the administrator account. This parameter is required only if SQL authentication is used.
strPassword A string that contains the password for the administrator account. This parameter is required only if SQL authentication is used.
Requirements
Platforms: Microsoft Windows Server 2003
Security: Code Access Security