M
Matthew Louden
I want to count the number of records in a table, and insert a new record
with ID increment the count by 1.
Heres the code:
sqlStmt = "SELECT COUNT(*) As numRecords FROM TimeSlot;"
cmd = New SqlCommand(sqlStmt, conn)
dr = cmd.ExecuteReader
But how to get the value of numRecords? since numRecords is not a field in
table TimeSlot
please help!
with ID increment the count by 1.
Heres the code:
sqlStmt = "SELECT COUNT(*) As numRecords FROM TimeSlot;"
cmd = New SqlCommand(sqlStmt, conn)
dr = cmd.ExecuteReader
But how to get the value of numRecords? since numRecords is not a field in
table TimeSlot
please help!