I agree with posting in a SQL group, preferably
microsoft.public.sqlserver.programming
You will want to look at cursors. Not exactly what you are looking for, as
objects are treated differently in SQL Server than code, but you can loop
through a cursor and check data items for matches.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************
Think Outside the Box!
************************************************