DB connection without DSN?
I'm using a shared CF 8 environment, but the administrator has been very slow in setting up a DSN for my application. I've tested locally and need my app live yesterday. I know the 'C:' path for where the Access DB (MDB) has been stored; is there anyway to create a JDBC connection using CFSCRIPT or CFOBJECT in CF 8 so I can use the DB without a DSN?
I've got this, which works without throwing an error, but how do I use this in, for example, a cfquery statement to get data from the DB?
<cfobject type="COM"
name="ConnectionObject"
class="ADODB.Connection"
action="CREATE">
<cfscript>
Driver="Microsoft Access Driver (*.mdb)";
DataBasePath="C:\websites\...\eventcal.mdb";
Source="Driver=#Driver#;DBQ=#DataBasePath#";
ConnectionObject.Open("#Source#");
</cfscript>
<!--- Close Object--->
<cfset ConnectionObject.Close()>
