Hi,
I'm trying to establish a connection to a JDBC database
The following code:
cfscript
factory = CreateObject(java, coldfusion.server.ServiceFactory);
ds_service = factory.datasourceservice;
datasources = ds_service.getDataSources();
ds = datasources[cfartgallery];
driverManager = CreateObject(java, java.sql.DriverManager);
con = driverManager.getConnection(ds.url, System, );
/cfscript
CFDUMP var=#ds#
CFDUMP var=#con#
/body
/html
works if the datasource uses the Microsoft Access driver which comes
with CFMX 7.
But not with the Microsoft Access with Unicode .
The cfartgallery datasource was installed during the CFMX
installation, and CFQUERTing the datasorce works,
but the code above does not work and produces a File not found error.
However, I created another datasource cfartgallery2 on the same Access
file, but using the Microsoft Access driver,
and just change ds = datasources[cfartgallery]; for ds =
datasources[cfartgallery2];
and the code works.
So, whats wrong with the Microsoft Access with Unicode driver?
--
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:221172
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations Support: http://www.houseoffusion.com/tiny.cfm/54