Code Form Login using VB6.0 with SQL 2005


I'm learning VB6.0 with database sql server 2005.

I have the Form Login:
Username: (TxtUsername).
Password: (TxtPasswrd).
Login: (Command).

And database: Create table ADMIN (Username Nvarchar(20), Password NvarChar(50))
Insert into ADMIN values (admin, admin)

How to I can connect database and check values in table ADMIN?

Please help me!!!
Thank you much!

If you enjoyed this post, subscribe for updates (it's free)