Results 1 to 3 of 3

Thread: how to set options ONCE?

  1. #1
    Join Date
    Mar 2003
    Posts
    383

    how to set options ONCE?

    Very often, when I generate SQL scripts for a table, I forget to go to Option tab to click the pk, default, index boxes. Is there a way to permernatly set the whole sql server generate sql scripts options ONCE?

    thanks
    David

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    If you are scripting from Query analyser you can save all the settings.

    Open object browser in Query analyser.

    right click on the object (eg: table) - scripting option.

  3. #3
    Join Date
    Mar 2003
    Posts
    383
    thanks MAK.
    I usually go through the E.M. interface to generate the script, where there is an options tab to click index, pk, default boxes, and default are blank.

    Interesting to see that in sqlQuery, the table script option does not have pk, index, default but with many formating options. And the sqlQuery side script generated with pk, constraint and default already, no options for them to be y/n.

    -D

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •