Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-14-2010, 05:09 AM   #1
LQ Newbie
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Accessing MS SQL Server 2005 standards with C programming

Hi All,

It would be helpful, If you would share the different options to access MS SQL 2005 using C? We are using gcc compiler.

Old 10-14-2010, 05:54 AM   #2
Registered: May 2002
Location: Thorverton, Near Exeter, Devon, England
Distribution: Ubuntu 10.04 (used to be Red Hat 7.1, then Red Hat 9, then FC 2, FC 5, FC 6, FC 9 and Ubuntu 8.04)
Posts: 105

Rep: Reputation: 16
You can use ODBC.
Old 10-14-2010, 01:52 PM   #3
LQ Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

1. As far as C programming API, I agree with hairysocks. ODBC is a good choice.

2. Regardless of which API you use, you're also going to need a driver for your Linux host to communicate with SQL Server. I recommend FreeTDS:

'Hope that helps


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
SQL update statement to SQL SERVER 2005 scheidel21 Programming 2 11-05-2009 07:30 PM
Problem accessing Windows SQL server from Red Hat Web Server mariap Linux - General 0 12-28-2008 06:46 PM
accessing SQL server via wine on a network topcat Linux - Software 3 10-28-2007 04:11 PM
LXer: Review: Microsoft SQL Server 2005 Unleashed LXer Syndicated Linux News 0 05-11-2007 12:16 AM
[SOLVED] Managing Microsoft SQL Server 2005 on linux Blue_Ice Linux - Enterprise 1 10-03-2006 11:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:51 AM.

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