Submit a ticketCall us

WebinarUpcoming Webinar: Should I Move My Database to the Cloud?

So you’ve been running an on-premises SQL Server® for a while now. Maybe you’ve moved it from bare metal to a VM, and have seen some positive benefits. But, do you want to see more? If you said “YES!”, then this session is for you, as James Serra will review the many benefits that can be gained by moving your on-prem SQL Server to an Azure® VM (IaaS). He’ll also talk about the many hybrid approaches, so you can gradually move to the cloud. If you are interested in cost savings, additional features, ease of use, quick scaling, improved reliability, and ending the days of upgrading hardware, this is the session for you.

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