| Author |
DSN-Less MSAccess connection issues
|
Willy Ray
Greenhorn
Joined: May 04, 2008
Posts: 11
|
|
Hey All, using the methods listed in this thread: http://www.coderanch.com/t/405966/java/java/Trying-access-Microsoft-Access-java I'm trying to create a dsn-less connection to an Access Database. I get down to "B", then I throw [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Any ideas? /w [ June 25, 2008: Message edited by: Willy Ray ]
|
 |
Willy Ray
Greenhorn
Joined: May 04, 2008
Posts: 11
|
|
Oh, and when I do it like this (per the JavaRanch FAQ): I get "java.sql.SQLException: General error" /w
|
 |
Willy Ray
Greenhorn
Joined: May 04, 2008
Posts: 11
|
|
Anybody? /w
|
 |
Wei Dai
Ranch Hand
Joined: Jun 22, 2005
Posts: 81
|
|
Maybe you type wrongly. >String name = "C:\\CompAnnotator\\data\notes.mdb"; Should be String name = "C:\\CompAnnotator\\data\\notes.mdb"; You can try A full dns-less url: "jdbc dbc RIVER=Microsoft Access Driver (*.mdb); " +"DBQ="+name+"; " +"ImplicitCommitSync=Yes; " +"UserCommitSync=Yes; " +"Threads=3; " +"SafeTransactions=0; " +"PageTimeout=5; " +"MaxScanRows=8; " +"MaxBufferSize=2048; " +"DriverId=281; " +"DefaultDir=C:/Program Files/Common Files/ODBC/Data Sources"
|
 |
 |
|
|
subject: DSN-Less MSAccess connection issues
|
|
|