Repository.ConnectToSQLRepository

Syntax

 * ConnectToSQLRepository( ServerName, DatabaseName , UseImpersonation  = False ,  ImpersonateDomain  = "",  ImpersonateUsername  = "" ,  ImpersonatePassword  = "")

Parameters
 * ServerName: The server file path for the SQL repository.


 * DatabaseName: The database name of the Synthesis repository to connect to.


 * UseImpersonation: Whether the database requires impersonation.


 * ImpersonateDomain: The domain for the impersonation.


 * ImpersonateUsername: The User Name for the impersonation.


 * ImpersonatePassword: The Password for the impersonation.

Usage Example
Dim MyRepository As New Repository Dim Success As Boolean = False Success = MyRepository.ConnectToSQLRepository("SQLServerPath", "SQLDatabaseName")