Sorry, I should have clarified. SET PARSEONLY ON|OFF will only actually
parse the statement; binding won't happen, so you won't get errors that
are
not related to syntax such as invalid table names.
If this is a select query, you can use SET FMTONLY ON, which will return
an
empty resultset instead of returning all the values. This also works for
trivial DML statements (they won't cause side-effects), but I don't
remember
off the top of my head whether there are potential problems with relying
on
SET FMTONLY ON for DML.
--
Pablo Castro
Program Manager - ADO.NET Team
Microsoft Corp.
This posting is provided "AS IS" with no warranties, and confers no
rights.