Guest User

Untitled

a guest
Jun 17th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. PeopleOutfit (id int primary key, boots int, hat int)
  2.  
  3. UpdateOutfit @id int, @newBoots int = null, @newHat = null
  4.  
  5. exec UpdateOutfit @id=1, @newBoots=null, @newHat=5
  6.  
  7. exec UpdateOutfit @id=1, @newHat=5
  8.  
  9. SELECT
  10. st.text
  11. FROM
  12. sys.dm_exec_requests r
  13. CROSS APPLY
  14. sys.dm_exec_sql_text(sql_handle) AS st
  15. WHERE
  16. r.session_id = @@SPID
Add Comment
Please, Sign In to add comment