I'm working on a system that increments has an auto incrementing index used as an identifier. But this gives me a problem as I would like to have the identifiers after doing the insert.
What I have in C# is:
string commandtxt = "INSERT INTO DATA(POINT) VALUES(@DP)";
SqlConnection conn = new SqlConnection(WebConfigurationManager.AppSettings["ConnectionInfo"].ToString());
SqlCommand sqlCommand = new SqlCommand(commandtxt, conn);
sqlCommand.Parameters.AddWithValue("@DP", point);
conn.Open();
sqlCommand.ExecuteNonQuery();
int record id = ????