Home Forums SQL Server 2005 SQL Server Newbies how to get the answer from "count(*) into a textbox RE: how to get the answer from "count(*) into a textbox
nigel.
SSChampion
Points: 11636
More actions
March 30, 2015 at 5:29 am
#1787282
You don't need to do both
cmd.ExecuteScalar())
and
cmd.ExecuteNonQuery()
You're executing the same query twice, the 'ExecuteNonQuery' is unnecessary
NigelHow to post questions