This is my (rough) code (DAL):
int i; // Some other declarations SqlCommand myCmdObject = new SqlCommand(\"some query\"); conn.open(); i = myCmdObject.Exec
You use EXECUTENONQUERY() for INSERT,UPDATE and DELETE.
EXECUTENONQUERY()
INSERT
UPDATE
DELETE
But for SELECT you must use EXECUTEREADER().........
SELECT
EXECUTEREADER()