Chapter 5 Manipulating The Repository Using Scripts


Connecting to a Repository Database

Before you connect to the repository database using scripting, 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) 2007. Sybase Inc. All rights reserved.