SCOPE_IDENTITY()
myCommandForData.CommandText = "INSERT INTO [Country] (CName) VALUES (@CNameValue); SELECT SCOPE_IDENTITY()"; int newCountryID = (int)myCommandForData.ExecuteScalar();
Guid
scope_identity()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)