Hi, have you defined correct DSN name? Is "test" a name of your database file (e.g. test.mdb) or a name of the DSN source in ODBC? What kind of DSN are you using?
$conn = odbc_connect( 'test' , ' ', ' ' ); In this example - "test" should be a name of DSN source of ODBC driver. It is working - for sure :-) Let me know if it has helped you. Greetings Piotr Mihail Bota wrote: > Hello, > > I know this may be a stupid question, but I've looked everywhere for help > and since I could not resolve the problem myself, I am asking your help. > > The problem is simple: i have an Access 2000 database (Windows 2000, > IIS5.0) that > i want to query it using php4.06. > I've added the database at the ODBC driver, the path to it is okay, but > when I try to run the simple thing like: > > $conn = odbc_connect( 'test' , ' ', ' ' ); > > where test is the name of that database, then the output is smth. like > > Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not > found and no default driver specified, SQL state IM002 in SQLConnect in > c:\inetpub\wwwroot\test.php on line 11 > > Does anybody have any idea why this thing is happening and how I can solve > the problems? > > Thanks! > Mihai > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]