Capturing session_id scheduler assignment using SQLCMD Mode Yesterday I was working on a SSMS SQLCMD-mode script and I noticed that periodically my session_id changed across test executions. I was tracking wait statistics Explore