|
Use ExecteScalar. ExecuteScalar is used when you just want one single value from one single row, as in:
SELECT Name FROM Users WHERE UniqueId = 42
ExecuteNonQuery is used for SQL statements that don't return any data (For example, INSERT, UPDATE, DELETE)
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|