in reply to Win32::ODBC undefined DSN

Did you go into Start|Settings|Control Panel|Data Sources(ODBC) and setup a DSN to your database? In my experience with ODBC, you have to create a system DSN. I've tried creating user DSNs with less luck, but I haven't pursued the matter in depth. Your DSN will need to have the database connection, username, password, etc, since you're relying completly on the DSN to supply that information (you can override it in the ODBC connection statement, if you like).

If this doesn't help, I can fish up an example of a working ODBC connection, along with a correctly specified DSN, if you like.

Two other points: Preceeding your code with <code> and </code> tags will make it more readable. Also, can you provide the line number the error occurred on? I'm not sure that your subject of the topic and the error you're reporting may necessarily correspond.

--Chris

e-mail jcwren