With ExecuteNonQuery, you can run DDL as well as DML, so you are open to
running code that adds constraints, if you so desire. This is not wise,
however, unless you are making an application that makes databases, which
may be your goal.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
************************************************
Think Outside the Box!
************************************************