Answered in .programming.
> how to determine how many milliseconds a segment of code takes to execute
> in TSQL on sql server 2005?
You have been asked not to do this before so Please don't post independently
in separate newsgroups. You can add multiple newsgroups to the header and
then all the answers appear as one. See my reply in the other newsgroup.

Signature
Andrew J. Kelly SQL MVP
Solid Quality Mentors
> how to determine how many milliseconds a segment of code takes to execute
> in TSQL on sql server 2005?