G
Guest
What would be a more efficient way for me to determine if a record in an SQL
DB table exists? Right now, I have a try/catch like this:
try
{
if(checkcom.ExecuteScalar().ToString()==tbBillNumber.Text)
{
....
}
}
catch
{
...
}
Is there any way I can do this without using a try/catch?
All I need to do is determine if a record exists or not.
Thanks
DB table exists? Right now, I have a try/catch like this:
try
{
if(checkcom.ExecuteScalar().ToString()==tbBillNumber.Text)
{
....
}
}
catch
{
...
}
Is there any way I can do this without using a try/catch?
All I need to do is determine if a record exists or not.
Thanks