How can I specify a userid and/or password for a database?
You can specify a userid and password when configuring the DSN (check out section E of “How Do I Create A System DSN”). You can also specify a userid/password when connecting to the DSN. This allows you to create the DSN with no userid/password specified but instead specify it during runtime. All you need to do is connect to the DSN the way you normally would but specify a usid and pwd attributes: $db = new Win32::ODBC(“DSN=My DSN;UID=Joel;PWD=Joel’s Password;”); Notice that you must use a semicolon (;) between attributes.