I have tclodbc installed.
in my xlate procs I have this:
package require tclodbc
set USER query
set PASSWD query
database connect sql {DRIVER=SQL Server;SERVER=snhdapp.lrjhc.dom; DATABASE=CentricityPM;Username=$USER;Password=$PASSWD}
When I test a xlate it passes without a hitch, all values returned are good.
When I put the xlate in a net config route xlate setting and try to run it I get this error:
errorInfo:
28000 18452 {[Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user ‘(null)’. Reason: Not associated with a trusted SQL Server connection.}
while executing
“database connect sql {DRIVER=SQL Server;SERVER=snhdapp.lrjhc.dom; DATABASE=CentricityPM;Username=$USER;Password=$PASSWD}”
(procedure “xlt_tribe” line 6)
invoked from within
“xlt_tribe”
What might I be missing?
I have a DSN on this server and test it with the same username and password and it also works fine.