I am trying to make an inline ipl call to populate a dropdown from a SQL Server 2008 database. I am using a system DSN in my connection string.
my $dbConnection_dev = "DBI

DBC

SN=dsnname";
The code works fine from the command prompt but gives a connection issue when I call it from a formspublisher through inline
ERROR at [23:32:31 24.00.2010 ] in [D:\Interwoven\iw-home\custom\bin\project\content_category.ipl]: Development Database connection not made: [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied. (SQL-08001)
[Microsoft][ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). (SQL-01000)(DBD: db_login/SQLConnect err=-1)
Do I need to set some environment variables in my ipl to use a system DSN?
I also tried to use a fully ODBC driver in the connection string but that doesn't work
my $dbConnection_dev = "DBI

DBC

river={SQL Server};Server=$sqlinstance;Database=DBName;UID=uid;PWD=pwd";
What am I missing here?