Comments (3)

  1. Hi, Robert – interesting structure. Any ideas on a good way to delay without hogging resources, to make it more polite to the Security logs & DC.

    I’m trying to recall if it was you who demoed public role dangers – and if there were similar loops… 🙂

    1. Hi Karl. It wasn’t me that demoed that. What resources are you worried about hogging? If you don’t want to cause too many entries in a security log, you can make the delay longer or simply wait and check it manually at some later point rather than looping.

  2. […] Never an Infinite Loop Around When You Need One – An interesting piece of T-SQL wizardry from Robert L. Davis(Blog|Twitter). […]

Leave a Reply to SQLSoldierCancel reply