-- See if any row returned? SELECT * FROM MyTable WHERE ValueToCheck = @SeeIfThisValueExists
//id will contain the inserted value. int id = Convert.ToInt32(cmd.ExecuteScalar() );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)