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

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

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

unit testing - How to mock PreferenceManager in Android? -