Problems setting up a DSN

From: Date: Tue, 25 Sep 2001 21:48:05 +0000
Subject: Problems setting up a DSN
Groups: php.windows 
Request: Send a blank email to php-windows+get-9526@lists.php.net to get a copy of this message
Hi, I'm running PHP 4.0 on WinNT 4 with IIS and attempting to use an Access 2000 database. When I use this is a script: $logdb = odbc_connect("uptime", "user", "password"); it gives the following error : Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in D:\Inetpub\wwwroot\daniel\showuptime.php on line 20 I have set up a System DSN with the name 'uptime' in the ODBC connections on the server and just can't figure out why it isn't finding it. I haven't rebooted the server since adding the DSN but it is running some other stuff that means rebooting is really a last resort thing. Can anyone enlighten me to the really small obvious thing that I have probably overlooked? Cheers, Daniel

« previous php.windows (#9526) next »