LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-06-2006, 01:30 AM   #1
nidhi
Member
 
Registered: Mar 2005
Posts: 30

Rep: Reputation: 15
Accessing MSSQL database through C++ on linux using freetds


Hi,

I have MSSql server 2000 installed on windows server, I need to access mssql database through c++ on linux using freetds.

Does anyone knows how to do it.If some one has smple code that will be really helpful.

Thanks,
Nidhi
 
Old 07-06-2006, 08:21 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Look at the freetds site:
http://www.freetds.org

Download and install the libraries, write a C++ "hello world", and try to connect. All the FAQs and documentation you should need are available on the FreeTDS site.

For whatever it's worth, you can also use ODBC has an alternative to FreeTDS for accessing SQL-Server from a Linux client.

'Hope that helps .. PSM
 
Old 07-07-2006, 01:25 PM   #3
nidhi
Member
 
Registered: Mar 2005
Posts: 30

Original Poster
Rep: Reputation: 15
Dear Paul,

Thanks for the reply, on my server freetds is installed an i am able to connect mssql db through php.
Not able to locate any program or documnet on freetds site for c++ and mssql connectivity.

DO you have any sample program or any guideline which i can follow to make c++ working with mssql.

Thanks,
Nidhi
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
question before moving from windows2003 to Linux+apache+php+iodbc+FreeTDS sugar2 Linux - Newbie 6 06-30-2006 12:00 PM
Restoring MSSQL database backup into PSQL mandrivaLE2005 Linux - Software 4 01-26-2006 09:35 AM
freetds to access SQL server from linux client sailu_mvn Linux - Software 2 12-06-2005 10:19 PM
accessing mysql database through c sonika_singhi Programming 5 12-15-2004 09:37 AM
freetds-perl-linux-m$sql hrc Linux - Software 0 03-08-2004 08:35 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration