Help! I need to make a login form that will do password authentication against a SQL Server database AND have a combo box that gets populated with all the database names in the System DSN. I have no clue how to do this. Can anyone please help??
Tell me and I forget. Show me and I remember. Involve me and I understand.
- Anonymous Chinese Proverb
-----------------------------------
If you can't explain it simply, you don't understand it well enough.
- A. Einstein
Hi Lori
1) To do a password authentication you can make your own table in which you can store user name & password and then connect to the databse you select from the combobox
2) To get names of database populated in combobox
use System SP
sp_databases
Once you have the User Name,Password and the databse name you want to connect then you can connect easily with the Connection object like
Dim objMainConnection As New OleDb.OleDbConnection()
objMainConnection.ConnectionString ="Your connection String"
.....
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.