Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DSN password
Message
 
To
28/01/2002 08:52:29
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00611477
Message ID:
00611507
Views:
27
Are you sure that you need a DSN? There are many ways of using DSN-less connections (specially if you are using ADO).

To my rememberance, the DSN cannot save the password, you need to give it each time you want to use it. Maybe I am wrong on that!

For things such as connection strings, I really like to use .INI file that I can synchronize between a server and the workstations through the use of a simple batch file.


>hi eric,
>as u said very right its always better to create dsn thru ur application rather doing it manually, i had already reffered to the article
>http://support.microsoft.com/support/kb/articles/q184/6/08.asp
>but the problem is in keeping the password, I can't keep the password while creating the dsn as it stores it in registry without encryption if done thru appl.
>while when we manually create the dsn ...and if u see the registry odbc\odbc.ini, u wont find any password ???? then where it stores the password ?
>
>i guess one way plz correct me if i'm wrong
>
>1. create the DSN thru appl but w/o password
>2. while installation make ur own registry key having user name and encrypted password.
>3. now my appl will read the registry and decrypt the password for making the connection.
>4. keep one administration option thru which u can change the login and password when needed.
>
>or shud i follow any other way....................
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform