SyntaxFix
Write A Post
Hire A Developer
Questions
If you're using executeScalar:
cmd.ExecuteScalar(); result_id=cmd.LastInsertedId.ToString();