What, specifically, are you wanting to know? How to form the ODBC
connection string? How to make a connection using OdbcConnection?- Hide quoted text -
- Show quoted text -
Well I find really strange the fact that there is no standard default
way to connect using ODBC to handle all this by default and that each
one has to deal with it. leaving that aside
My problem is that when I create a user DSN using ODBCCP32.dll I
have to enter (for a sql server) a username and password
however, when i try to use it or open the conneciton then username and
password is lost and on Open it tries to use the default
authentication and fails
so, baiscally the question is:
How to get a prompt for user name and password only of necessary or is
there any way to create a DSN saying (save my username and password)
of course i cna also do this myself but I would only really be
catching the case for sql server because there may be other
requirements for differnet connecitons string
Thanks