In code? I know nothing about OLE DB, but AFAIK you should set that name/password pair in the ODBC properties, no?

Or are you trying to set name and pass on the fly for a good reason?