Hi,
I hope someone can help me.
My XML data file contains several records. There is a field in each record, let’s call it connectonURL.
Its value can be dynamic depending on the record:
"jdbc:odbc:Driver={Microsoft Access Driver(*.txt, *.csv)};DBQ=D:\\DB\\Manifest\\IR\\"
"jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=" + database + ";DriverID=22;READONLY=true"
"jdbc;odbc:Driver={Microsoft Excel Driver (*.xls)};" + "Driverid=790;" + "Dbq=C:\MyPath\SpreadSheet.xls;" + "DefaultDir=C:\MyPath;"
The point I am making is that each record may connect to different external databases (Excel, CSV, Access, SQL or MySQL) to lookup additional data to complement the record.
How do I create a DSN-Less connection in my Action step in the datamapper?
As an example I have:
var connectionURL =“jdbc:odbc:Driver={Microsoft Access Driver(*.txt, *.csv)};DBQ=D:\DB\Manifest\IR\”;
var conn = db.connect(connectionURL,“”,“”);
But I get this error:
Action : Error running script (Wrapped java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (#8)) (DME000019)
Many thanks,
Steve