sql server - Execute an insert and then log in one SQL command -


i've been asked implement code update row in ms sql server database , use stored proc insert update in history table. can't add stored proc since don't control database. know in stored procs can update , call execute on stored proc. can set in code using 1 sql command?

either run them both in same statement (separate separate commands semi-colon) or use transaction can rollback first statement if 2nd fails.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -