|
-
Dec 8th, 2013, 09:30 AM
#8
Re: Failed to Enable Constraints (SQL/VB.NET issue)
 Originally Posted by NFSRacer
They're queries for the database. I want them to return an individual value from the table their table. However, as I understand it, it can only return a table, correct?
No, not correct. They can do either but if they currently do return DataTables then why are you comparing the results to Strings that will obviously never match? When you create the query you get to decide what it returns.
You only need one query though. Why do you need to query the database to get the user name that you already have? Just query to get the password. If there's no match then you know that the user name doesn't exist and if there is a match then you know it does. If you want to test the user name to see if it matches something then just test what the user entered.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|