Repository.ConnectToSQLRepository

Connects to a SQL server repository that you specify. Returns a Boolean value; when true, indicates a successful connection to the repository.

Syntax
.ConnectToSQLRepository(ServerName, DatabaseName, UseImpersonation, ImpersonateDomain, ImpersonateUsername, ImpersonatePassword)

Parameters
ServerName
 * String. The server file path for the SQL database.(Required)

DatabaseName
 * String. The name of the database. (Required)

UseImpersonation
 * Boolean. When true, indicates that the database requires SQL impersonation. Default value is false. (Optional)

ImpersonateDomain
 * String. The domain for the impersonation. (Optional)

ImpersonateUsername
 * String. The account username for the impersonation. (Optional)

ImpersonatePassword
 * String. The account password for the impersonation. (Optional)

Example
This example assumes that a SQL database named "MyEnterprise" exists in the C: drive. The code ignores the return value. VB|VB.NET MyRepository Repository MyRepository.ConnectToSQLRepository