variable dbname “SARP” ;# Data source name
variable User “NewUser” ;# SQL Server User
variable Passwd “xx123xx” ;# SQL Serer User Password
variable err “” ;# Catch ODBC errors
odbc SQLAllocHandle SQL_HANDLE_ENV SQL_NULL_HANDLE henv
odbc SQLSetEnvAttr $henv SQL_ATTR_ODBC_VERSION SQL_OV_ODBC3 0
odbc SQLAllocHandle SQL_HANDLE_DBC $henv hdbc
set err [odbc SQLConnect $hdbc $dbname SQL_NTS $User SQL_NTS $Passwd SQL_NTS]
echo $err
The following is the portion of ODBC.ini file
[SARP]
Driver=/hci/cis5.8/integrator/lib/Connect6.0/lib/ivmsss24.so
Description=DataDirect 6.0 SQL Server Wire Protocol
Address=123.456.789.174,1433
AlternateServers=
AnsiNPW=Yes
ConnectionRetryCount=0
ConnectionRetryDelay=3
Database=paris
FetchTSWTZasTimestamp=0
FetchTWFSasTime=0
LoadBalancing=0
LogonID=
Password=
QuotedId=No
ReportCodepageConversionErrors=0
ReportDateTimeENGINE=1
SnapshotSerializable=0
I am not sure if I am missing anything or if I could find more information on where the issue is. If someone has run into this issue and resolved it, please share your findings and troubleshooting information on this.