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
object.ConnectToSQLRepository(ServerName, DatabaseName, UseImpersonation, ImpersonateDomain, ImpersonateUsername, ImpersonatePassword)

where object is a variable that represents a Repository object.

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