What are the different cases when we use these three? Where should I use one and where should I not?
ExecuteScalar
SELECT @@IDENTITY AS 'Identity'
ExecuteReader
SELECT col1, col2 from sometable
ExecuteNonQuery
2.1m questions
2.1m answers
60 comments
57.0k users