![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| SSH not able to connect - Need help | Sathy153 | Shell Programming and Scripting | 2 | 01-14-2008 04:47 AM |
| MSSQL JDBC Driver Single Sign On Auth from Unix 0.1 (Default branch) | iBot | Software Releases - RSS News | 0 | 01-12-2008 03:10 AM |
| How to connect to oracle ?? | divyesh shah | Shell Programming and Scripting | 2 | 01-04-2007 12:40 AM |
| cant connect | Combat Form | UNIX for Dummies Questions & Answers | 6 | 05-01-2004 06:06 PM |
| Cannot connect to my ISP | coolteach | UNIX for Dummies Questions & Answers | 8 | 09-26-2001 03:56 PM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
connect to mssql
Hi - can any one tell me is it possible to connect to mssql and fetch the data from unix shell scripts
|
| Forum Sponsor | ||
|
|
|
|||
|
Install UnixODBC + FreeTDS, and use the isql utility. Try something like
isql -H hostname -U user < filename.sql But if you would like to get the return resultset, probably you should place that part of the program in Perl instead, as it can be used with the Perl ODBC package to get the resultset through the DBI just as other database backends. |
|
|||
|
I didn't use a DSN for connect when I used it. I just specified the host, port number, username and password and it worked for me. Make sure the SQL server accepts standard (password) authentication. i.e. mixed authentication mode rather than just Windows authentication. Maybe check the firewall also if that matters.
I will just say try to use the MSSQL Enterprise Manager or Query Analyzer to test the connection first, then if that's okay try do so with isql/tsql. |
|||
| Google UNIX.COM |