Submit a ticketCall us

WebinarFREE IT Monitoring Webcast

Don’t miss out on our webcast, Essential IT Monitoring with SolarWinds ipMonitor, where we will show you how to keep an eye on your IT environment from one centralized, affordable, and lightweight monitoring tool: SolarWinds® ipMonitor®.

Register now.

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: 210 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