Is there a function in VB.NET or C# that returns me the ID of a record when i do an insertstatement?
something like:
dim id = cmd.ExecuteNonQuery(QUERY,connection)