FairCom Corporation
 
FairCom Start PageFairCom ProductsDownloadsDeveloper SupportSales InformationFairCom CustomersFairCom Company InformationContact FairCom

Homebulletgrey.gifeNewsletterbulletgrey.gifVolume 21bulletgrey.gifDNS-less Connection Strings in a .NET Application


DNS-less Connection Strings in a .NET Application

Question:

I want to use a .NET application to connect to the c-treeSQL ODBC driver using a DSN-less connection string. What is required?

Answer:

Your application should include `using System.Data.Odbc' and the following string for the default installation on a local machine.

string connectString=
   "DRIVER={c-treeSQL ODBC Driver}; TRUSTED_CONNECTION=false;"; 
   connectString += "HOST=localhost; DATABASE=ctreeSQL;";
   connectString += "UID=ADMIN; PWD=ADMIN;";

The values of HOST, DATABASE, UID, and PWD are substituted as appropriate for your c-treeSQL Server installation.

"I have been using FairCom database technology for over 15 years on many multi platform projects. The level of service, support, quality, flexibility, and price/performance of the software is exceptional. If my customers ask about Oracle - I cringe and turn to FairCom for my database development needs."

Steven Kibler
Senior Software Engineer, Flight Trak, Inc.

FairCom Start PageSite MapContact FairComThe FairCom Privacy Policy Your Location: USA | Europe | Brazil | Japan
Copyright 2012 FairCom Corporation. All rights reserved.