SyntaxFix
Write A Post
Hire A Developer
Questions
It'd be easier to do your UPDATE first and then run 'SELECT ID FROM INSERTED'.
Take a look at SQL Tips for more info and examples.