Hem / Tips & tricks
Dim sql As String = "INSERT INTO jobs (job_desc,min_lvl,max_lvl) VALUES ('A new job', 25, 100);" & _ "SELECT job_id FROM jobs WHERE job_id = @@IDENTITY"Dim cmd As New SqlCommand(sql, con)