- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: connect mssql database from linux machine
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2008 01:24 AM
тАО04-04-2008 01:24 AM
connect mssql database from linux machine
I want to connect MSSQLServer2k database(nltrans) on Windows2k machine(host=AGNI, ip=192,168.0.11) from linux m/c( 192.168.0.4)
Thanks
MKS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2008 11:48 PM
тАО04-04-2008 11:48 PM
Re: connect mssql database from linux machine
A quick Google will head you towards FreeTDS which should do what you want...
http://www.freetds.org
Cheers,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2008 01:45 AM
тАО04-05-2008 01:45 AM
Re: connect mssql database from linux machine
Thanks for your reply.
I have already installed freetds. But still not getting connection with sql server.
There are /etc/odbc.ini /etc/odbcinst.ini /etc/freetds.conf files but confused which file i have to use and what entries would be put according above infrastructure?
Pls suggest.
Thanks,
MKS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2008 02:04 AM
тАО04-05-2008 02:04 AM
Re: connect mssql database from linux machine
http://www.freetds.org/userguide
If you can't figure things out, then letting us know exactly how you've got things configured, and exactly what it does when you're not getting a connection, would be useful...
Cheers,
Rob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2008 03:08 AM
тАО04-05-2008 03:08 AM
Re: connect mssql database from linux machine
/etc/freetds.conf
[myserver2k]
host = agni.sigma2.com
port = 1433
/etc/odbc.ini
[nltrans]
Trace = ON
Driver = ODBC
Database = nltrans
PORT = 1433
/etc/odbcinst.ini
Description = ODBC for MSSQL
Driver = /usr/lib/libodbcpsql.so
Setup = /usr/lib/libodbcpsqlS.so
FileUsage = 1
UsageCount = 1
when i connecting ----
tsql -H agni -p 1433 -U 'sigma2\administrator' -P 'password'
locale is "en_US.UTF-8"
locale charset is "UTF-8"
Msg 20009, Level 9, State 0, Server OpenClient, Line 0
Server is unavailable or does not exist.
There was a problem connecting to the server
Thanks,
MKS
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-05-2008 04:29 AM
тАО04-05-2008 04:29 AM
Re: connect mssql database from linux machine
From the FAQ: http://www.freetds.org/faq.html
Connecting like so:
tsql -H hostmachine -p port -U username -P password
will bypass the freetds.conf file. Therefore check first that your hostname is reachable
# telnet agni 1433
# telnet agni.sigma2.com 1433
You should get some form of response from the server...
Cheers,
Rob