Submit a ticketCall us

Get a crash course on Network Monitoring delivered right to your inbox
This free 7-day email course provides a primer to the philosophy, theory, and fundamental concepts involved in IT monitoring. Lessons will explain not only how to perform various monitoring tasks, but why and when you should use them. Sign up now.

Home > Success Center > Kiwi CatTools > 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: 34 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
07:23, 28 Jun 2016

Tags

Classifications

Public