Deprecated. Don't use for new development and try to migrate existing uses.

Type: Stored procedure

Scripts indexes, primary key, and unique constraints for a given table.


@ObjectIdTable optional int
Object id of table to script. Overrides @TableName when present.
@TableName optional sysname
Name of the table to script. May be quoted (with []). Schema is optional.