Submit a ticketCall us

AnnouncementsChange Is Inevitable

Get valuable help when it comes to tracking and monitoring changes. SolarWinds® Server Configuration Monitor (SCM) is designed to help you: detect, track, and receive alerts when changes occur, correlate system performance against configuration changes, compare server and application configuration against custom baselines, and verify application and system changes.

Learn more.

Home > Success Center > Kiwi CatTools > Kiwi CatTools Documentation > Kiwi CatTools 3.11 Administrator Guide > API > CatTools API Classes > CatTools Database Class > Sample code for connecting to your database using the CatTools API

Sample code for connecting to your database using the CatTools API

Table of contents
No headers
Created by Caroline Juszczak, last modified by Caroline Juszczak on Jun 28, 2016

Views: 209 Votes: 0 Revisions: 1

Sample VB code showing you how to connect to your database using the CatTools API.

 

Dim DB As CatToolsAPI.Database

Set DB = New CatToolsAPI.Database

 

DB.EncryptionPassword = "MyPassword"

 

If DB.OpenConnection Then

MsgBox "Connected ok"

Else

MsgBox "DB connection failed: " & DB.ErrDescription

End If

 

DB.CloseConnection

Set DB = Nothing

Last modified

Tags

Classifications

Public