Cor
Sat Jun 10 00:56:23 CDT 2006
Bob
I think that the easiest is to use an command.ExecuteScalar with a SQL
transact script string that contains a Where clause
ExecuteScalar (idb = for SQLSever SQLClient and for OledB OleDB)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdatasqlclientsqlcommandclassexecutescalartopic.asp
Where clause
http://msdn2.microsoft.com/en-us/library/ms188047(SQL.90).aspx
I hope this helps,
Cor
"BobRoyAce" <broy@omegasoftwareinc.com> schreef in bericht
news:1149917821.552008.50370@f6g2000cwb.googlegroups.com...
>I am new to VB.NET and am currently using Visual Studio 2005. Let's say
> that I have a Users table that has User information, including
> LoginName and Password. I have a login form where the user types in a
> login name and a password. Now, I want to go out to my SQL Server 2005
> DB and query the Users table to see if a record exists for the entered
> values. What's the best way to do something like this?
>