Author: kmoskalkmoskal Date: Aug 29, 2008 11:53
How to create a script with indexes and Primary Keys only using SQL Server
2000 Enterprise Manager
In short, using SQL Server 2000 EM, from a database select the Generate
Script option.
When the wizard starts,
1. From the General Tab - select the script all object box
2. From the Formatting Tab remove all the checkboxes under the srcipting
options...
3. From the Options Tab, select Script Indexes and/or Script Primary keys...
4. Then either press OK or return to the General Tab and press preview.
The resulting output is a script of only create index commands and/or Alter
Table commands (used to create the PK constraint).
A very useful feature that is no longer available in SSMS 2005 or SSMS 2008.
--
Kurt
"Erland Sommarskog" wrote:
> kmoskal@newsgroups.nospam (zork@newsgroups.nospam) writes:
>> I'm using SSMS with SQL 2005 SP2. I've been trying to create a script
>> using the "Generate Script" wizard that only has Drop Index and...
|