Hi there,
If the examples are in Access, all you need to do is replace OleDb with SQL. So, for example:
Dim MyConnection As New OleDbConnection
becomes
Dim MyConnection As New SqlConnection
Obviously, you'll also need to change the connection string so it points to a SQL Server, not to an Access database file.
To search for the user in the database, you can use a SqlCommand that holds the SQL statement (something like SELECT FirstName, LastName FROM Users). Take a look
here for details about this object.
To pass the username and password, you can use Parameter objects which you attach to the Command object, as described
here.
If you search Google for SqlConnection, SqlCommand, SqlAdapter etc, you'll find loads of examples. Also, the examples in the ASP.NET SDK contain quite a lot of SQL examples.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.