I have a stored procedure which has to get a password from my Users table.
I am using a Username as a parameter. What is the best way to get the row where the Username field's contents match the Username parameter, and then the password (as this is the Username/password pair for one user).
Cursors are one way to iterate over a rowset but these aren't desirable.
I am currently reading a few TSQL books, but haven't come across this sort of problem. Any good recommendations for TSQL books? I am on Sql Server 2005.