Chapter 9 Accessing objects using VBScript


Connecting to a repository database

Before you connect to the repository database using VBScript, definitions of repositories must exist on your workstation, as you cannot define a new repository definition via the scripting feature.

You can connect to the Repository database using the following method on RepositoryConnection: Open(ByVal RepDef As String = "", ByVal User As String = "", ByVal Pass As String = "", ByVal DBUser As String = "", ByVal DBPass As String = "") As Boolean.

Example

Dim C
Set C = RepositoryConnection
C.Open

You disconnect from the repository database using the following method: Close().

Example

C.Close

 


Copyright (C) 2005. Sybase Inc. All rights reserved.