LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-04-2007, 06:45 AM   #1
vdx
Member
 
Registered: Aug 2007
Location: The Greate INDIA
Distribution: CentOS, RHEL, Fedora
Posts: 102

Rep: Reputation: 24
Question how to create DSN in Linux


I am using rhel5 and using C for development.

I have 2 PCs, I have installed RHEL5 in first pc for development and in another pc I have installed Windows XP and also SQL Server 2000 (for DB server).

I want to make a program (in rhel5) which can interact with MS SQL Server 2000.

So for tht I have downloaded and installed libiodbc, libiodbc-devel and libiodbc-admin.

And also searched with google for good tutorial abt how to make odbc connection.

I found good tutorials but no any tutorial hav cleared steps for "How to make DSN(Data Source Name)".

DSN means "Data Source Name", but wt it actually means ? (like is it kinda driver or text string or ...).

So I hav 2 questions.

1) Wt DSN actually means ?

2) How to create DSN on Linux machine ?


thnx in advance...

(if is there any good tutorial plz let me know)
 
Old 10-04-2007, 07:31 AM   #2
whitemice
Member
 
Registered: Aug 2007
Location: Michigan, USA
Distribution: openSUSE
Posts: 52

Rep: Reputation: 15
Odbc

> I want to make a program (in rhel5) which can interact with MS SQL
> Server 2000.
> So for tht I have downloaded and installed libiodbc, libiodbc-devel
> and libiodbc-admin.

I'd recommend unixODBC over iODBC.

> And also searched with google for good tutorial abt how to
> make odbc connection.

I can't understand how you could fail to find one. The ODBC *concepts* are the same on any platform; UNIX, Windows, or LINUX.

> DSN means "Data Source Name", but wt it actually means ?

It names a data source and the parameters required to connect like which driver to use, host name, port and possibly username/password.

> 2) How to create DSN on Linux machine ?


You use one of the provided tools or edit the appropriate INI file.

ftp://kalamazoolinux.org/pub/pdf/dbaccess.pdf
 
Old 10-05-2007, 02:19 AM   #3
vdx
Member
 
Registered: Aug 2007
Location: The Greate INDIA
Distribution: CentOS, RHEL, Fedora
Posts: 102

Original Poster
Rep: Reputation: 24
Smile

thnx whitemice

thnk u very much for replay and clarify my doubts.

I got wt I need, thnx 1s again.

 
  


Reply


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
DSN-Less connection in linux jayakrishnan Programming 1 06-12-2007 08:18 AM
How to install DSN for Linux FC3 thuan1975 Linux - Networking 2 08-05-2005 01:20 AM
dsn=5.0.0 sendmail dcexplorer Linux - General 3 11-12-2003 09:06 PM
DSN=5.0.0 Sendmail joseph Linux - General 1 09-03-2003 03:27 AM
DSN Setup rshadow Linux - Networking 3 10-01-2002 06:44 PM

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

All times are GMT -5. The time now is 11: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