copying tables between databases with constraints

  • I often have to copy the structure of a table between databases and I currently do so with a select into with an erroneous where clause (where 1=2 for example). This copies the structure well, but loses all of the default value constraints, which I would like to keep. Does anyone know of a way to copy the structure of a table, keeping the constraints associated with it?

  • SCRIPT OUT the TABLES with ALL dependent object Seleted!

    then Run the Script on the Destination! (don't select copy data)

    (DTS WIZARD)


    * Noel

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply