Unix Technical Forum

Saving the username and password in the DSN

This is a discussion on Saving the username and password in the DSN within the MS SQL ODBC forums, part of the Microsoft SQL Server category; --> I am wrting a vb application that connects to an MSDE database. I am using ADO for the data ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > MS SQL ODBC

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008, 09:43 PM
Ryan Taylor
 
Posts: n/a
Default Saving the username and password in the DSN

I am wrting a vb application that connects to an MSDE database. I am using
ADO for the data objects and an OBDC DSN entry for connecting to the
database. Is there a way to store the username and password in the DSN entry
so that I do not need to supply this in code?

Alternatively, is there a simple, fast and efficient way to encrypt a
connection string if I cannot store this in the database. I do not want to
store the connection string in the code. It is too limiting.

Thanks.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-27-2008, 09:45 PM
Warren Read
 
Posts: n/a
Default RE: Saving the username and password in the DSN

For security reasons, the user name and password are not stored in DSN's.
Anyone can access this information via the registry (for example,
HKEY_CURRENT_USER\Software\ODBC\ODBC.INI\DSN_Test1 23)

Copying the user name and password to the DSN would allow anyone to see
this information.

I don't think drivers even try to read this information from the DSN's even
if you did store it there.

I'm pretty sure you need to enter this information every time you connect.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:07 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com