f:\Inetpub\wwwroot\somedir;uid=LoginID;pwd=Password;DriverId=25;FIL=MSAccess;" set conn = server.createobject("adodb.connection") conn.open strconn
Type Four - using a System Data Source Name
The following uses a Data Source Name:
set conn = server.createobject("adodb.connection") conn.open "Example" 'This is created in the Control Panel using the 32 bit ODBC Driver. If you don't know how to setup here is a perfect example onActiveServerPages.com
Type Five - Not using a connection and just using a ODBC DSN. Note:You have to setup an odbc Entry in the Control Panel
set rs = server.createobject("adodb.recordset") rs.open "tblname", "DSNName", 3, 3