This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_ extPart_001_01C2E8F1.EF7B082B Content-Type: text/plain; charset so-8859-1" Content-Transfer-Encoding: quoted-printable > -----Original Message----- > From: Rasmus Debitsch [mailto:Debitsch / T-Online.de] > Sent: Wednesday, March 12, 2003 15:16 > > When I try to connect to the database with DBI a error > message shows up. > > Code: > require 'dbi' > > dbq = "dbq=C:/Benutzer/Test.mdb" > dsn = "driver=Microsoft Access Driver(*.mdb);#{dbq}" > > DBI.connect("DBI:ODBC:#{dsn}","","") > > Error: > C:/PROGRAMME/RUBY/lib/ruby/site_ruby/1.7/DBD/ODBC/ODBC.rb:71:i > n `connect': > S1090 (0) [Microsoft][ODBC Driver Manager] Ungtige It looks like you can not use File DSN. You can set-up System DSN instead and use: DBI.connect("DBI:ODBC:Your_System_DSN","","") I've just tested and it works this way. Iouri. ------_ extPart_001_01C2E8F1.EF7B082B Content-Type: text/html; charset so-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2655.35"> <TITLE>RE: DBI and MSAccess</TITLE> </HEAD> <BODY> <P><FONT SIZE=2>> -----Original Message-----</FONT> <BR><FONT SIZE=2>> From: Rasmus Debitsch [mailto:Debitsch / T-Online.de]</FONT> <BR><FONT SIZE=2>> Sent: Wednesday, March 12, 2003 15:16</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> When I try to connect to the database with DBI a error </FONT> <BR><FONT SIZE=2>> message shows up.</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Code:</FONT> <BR><FONT SIZE=2>> require 'dbi'</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> dbq = "dbq=C:/Benutzer/Test.mdb"</FONT> <BR><FONT SIZE=2>> dsn = "driver=Microsoft Access Driver(*.mdb);#{dbq}"</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> DBI.connect("DBI:ODBC:#{dsn}","","")</FONT> <BR><FONT SIZE=2>> </FONT> <BR><FONT SIZE=2>> Error:</FONT> <BR><FONT SIZE=2>> C:/PROGRAMME/RUBY/lib/ruby/site_ruby/1.7/DBD/ODBC/ODBC.rb:71:i</FONT> <BR><FONT SIZE=2>> n `connect':</FONT> <BR><FONT SIZE=2>> S1090 (0) [Microsoft][ODBC Driver Manager] Ungtige </FONT> </P> <P><FONT SIZE=2>It looks like you can not use File DSN. You can set-up System DSN</FONT> <BR><FONT SIZE=2>instead and use:</FONT> </P> <P><FONT SIZE=2> DBI.connect("DBI:ODBC:Your_System_DSN","","")</FONT> </P> <P><FONT SIZE=2>I've just tested and it works this way.</FONT> </P> <P><FONT SIZE=2>Iouri.</FONT> </P> </BODY> </HTML> ------_ extPart_001_01C2E8F1.EF7B082B--