Ok Thanks for your help.
And one more thing ..
When I ran phpinfo() I am getting
'--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite3' '--disable-phar' '--disable-fileinfo' '--disable-json' '--without-pspell' '--disable-wddx' '--without-curl'...
$HostName='172.29.1.29';
$DBName='PRD_ETL';
$userName="XXXXXXXX";
$password="XXXXXXX";
$dsn = "Provider=Teradata;DBCName={$HostName};Database={$DBName};";
$con=odbc_connect($dsn,$userName,$password);
var_dump($con);
I followed the same steps as you given but still I am getting the below error...
I am running php in 64 bit mode
odbc teradata installed properly ..why because when I run the below command in Linux ,odbc connection got successful ..
root@ledsdndbv01> /opt/teradata/client/14.10/odbc_64/bin/tdxodbc
Enter Data Source Name: testdsn_etc
Enter UserID...
Hi jpadie,
Thanks for your quick reply.
I am running my project in UNIX box,how can I set system env variable in UNIX irrespective of my profile?
or with your 2nd approach
Its giving me the error as
" PHP Warning: odbc_connect(): SQL error: [unixODBC][Driver Manager]Data source name not...
thread434-1439713
Can anyone help me why I am getting below error
[05-Nov-2014 12:29:52] PHP Warning: odbc_connect(): SQL error: Failed to fetch error message, SQL state HY000 in SQLConnect in /var/www/html/edspbj/application/controllers/AdminPbjController.php on line 77
[05-Nov-2014...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.