Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Database UserID and Password visible 1

Status
Not open for further replies.

DavidLogue

Programmer
Apr 17, 2003
4
IE
Hi,
I use dsn-less connections in my VB code to connect to SQL Server. Using

With AdoCon
.ConnectionString = ConStr
.Open
End With

But if I look at the compiled code through notepad then the connection string including the username and password are visible.
Any ideas on how to hide this??
 
Encrypt the Username and Password and store it in the registry and and runtime read and de-crypt the username and password in 2 seperate variables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top