freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Rubén Ortiz <ruben.ortiz AT itnet.es>
- To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] Can't connect from shell
- Date: Wed, 5 Dec 2007 09:29:22 +0100
Hi
Thanks by your answers. Ive installed Freetds once again but not with Yum. I
donwloaded and compiled the package with a properly specifications and then
sql connect run properly.
Thanks :)
-----Mensaje original-----
De: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] En nombre de ZIGLIO, Frediano,
VF-IT
Enviado el: lunes, 03 de diciembre de 2007 17:15
Para: FreeTDS Development Group
Asunto: Re: [freetds] Can't connect from shell
>
> Hi
>
>
>
> I installed freetds few days ago with yum and rpmForge
> repository enabled. I
> have a Linux Centos and php 5 like a lot of people and mssql
> support is not
> enabled with this distro. I find some tutorials through google and i
> compiled php 5 once again following a HowtoForge tutorial.
> Actually if i run
> a php script with phpinfo() mssql is show as "enabled". But
> in trust Linux
> Server can't connect against SQL 2005.
>
>
>
> I read a lot of documents but i need some help to setup
> FreeTDS and try to
> connect from command line. I believe that the main files to setup are:
>
>
>
> freetds.conf
>
> odbcint.ini
>
> odbc.ini
>
>
>
> I did the test with "isql" command and "tsql" with same
> parameters. Any
> worked.
>
>
>
> [IM002][unixODBC][Driver Manager]Data source name not found,
> and no default
> driver specified
>
> [ISQL]ERROR: Could not SQLConnect
>
>
>
> Theses is an output from Isql command. So i believe that i must have a
> trobule with configuration of freetds files(freetds.conf,
> odbc.ini, etc). I
> need a little help to try to configure properly freetds from shell and
> perhaps, after all, maybe i successful connect to SQL Server from php
> script.
>
>
>
> Thanks
>
>
>
> PD: i attach freetds.conf
>
Mmmm... there are no server configured in freetds.conf...
Usually to get a successful connection
- telnet server_ip/dns 1433/instance_port
to avoid firewall problems
- TDSVER=8.0 tsql -H server_ip/dns -p 1433/instance_port -U youruser
should ask password and connect directly to your server
- fill odbc.ini or ~/.odbc.ini with
[odbc_name]
driver=/path/to/your/libtdsodbc.so
server=server_ip/dns
port=1433/instance_port
TDS_Version=8.0
- isql odbc_name user
I think isql should ask password (you can add an argument with your
password but I don't like this way)
freddy77
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
-
[freetds] Can't connect from shell,
Rubén Ortiz, 12/03/2007
-
Re: [freetds] Can't connect from shell,
ZIGLIO, Frediano, VF-IT, 12/03/2007
- Re: [freetds] Can't connect from shell, Rubén Ortiz, 12/05/2007
-
Re: [freetds] Can't connect from shell,
ZIGLIO, Frediano, VF-IT, 12/03/2007
Archive powered by MHonArc 2.6.24.