To create a PDM with support for features specific to the MS SQL Server DBMS family, select the appropriate version in the DBMS field of the New Model dialog. To view these extensions to the PowerDesigner metamodel in the Resource Editor, select Profile node. and expand the
User Schemas – Use the schema stereotype to specify that a user is actually a schema, belonging to another user (the "principal").
WithOption – Use the withoptions type to enable access to additional physical options when working with views.
Support for multiple databases during live database reverse engineering.
The following sections list the extensions provided for MS SQL Server.
The following extensions are available on the Microsoft tab:
Name |
Description |
---|---|
Assembly |
Specifies the assembly to bind with the abstract data type. Scripting name: Assembly |
The following extensions are available on the Microsoft tab:
Name |
Description |
---|---|
Nullable |
Specifies that the type column allows null value. Scripting name: Nullable |
Computed |
Specifies that the type column is computed. Scripting name: Specifies that the type column is computed. |
Identity |
Specifies that the new column is an identity column. Scripting name: Identity |
Expression |
Specifies an expression that defines the value of a computed column. Scripting name: Expression |
Persisted |
Specifies that the SQL Server Database Engine will physically store the computed values in the table, and update the values when any other columns on which the computed column depends are updated. Scripting name: Persisted |
Seed |
Specifies the value used for the very first row loaded into the table. Scripting name: Seed |
Increment |
Specifies the incremental value added to the identity value of the previous row loaded. Scripting name: Increment |
Default |
Specifies the value provided for the column when a value is not explicitly supplied during an insert. Scripting name: Default |
Row GUID |
Specifies that the new column is a row GUID column Scripting name: RowGuidCol |
Collation |
Specifies the collation for the column. Scripting name: Collate |
The following extensions are available on the Microsoft tab:
Name |
Description |
---|---|
Row global unique identifier |
[v2000 and higher] Indicates that the new column is a row global unique identifier column. Only one unique identifier column per table can be designated as the ROWGUIDCOL column. Scripting name: ExtRowGuidCol |
Sparse |
[v2008 and higher] Specifies that the column is a sparse column. The storage of sparse columns is optimized for null values. Sparse columns cannot be designated as NOT NULL. Scripting name: Sparse |
Filestream |
[v2008 and higher] Specifies that when the FILESTREAM storage attribute is specified for a column, all values for that column are stored in a FILESTREAM data container on the file system Scripting name: Filestream |
Do not validate check constraints during replication |
Specifies that "NOT FOR REPLICATION" keywords are used to prevent the CHECK constraint from being enforced during the distribution process used by replication. Scripting name: ExtCkcNotForReplication |
Default constraint name |
Contains the name of the constraint that is used to apply a default value to the column. If empty, the "constraint" keyword is not generated. Scripting name: ExtDeftConstName |
Not null constraint name |
Contains the name of the constraint that is used to apply a mandatory property of the column. If empty, the "constraint" keyword is not generated. Scripting name: ExtNullConstName |
Collation name |
[v2005 and higher] A single string that specifies the collation name for a SQL collation. Scripting name: ExtCollation |
Identity seed and increment |
Is a string composed of two integer values separated by a comma. First value is the seed value of the identity column, meaning the value to be assigned to the first row in the table. Second value is the increment to add to the seed value for successive rows in the table. Scripting name: ExtIdentitySeedInc |
Identity value not replicated |
Indicates that the IDENTITY property should not be enforced when a replication login inserts data into the table. Scripting name: ExtIdtNotForReplication |
XML schema collection |
[v2000 and higher] Applies only to the XML data type for associating an XML schema collection with the type. Scripting name: XMLSchemaCollection |
Content type |
[v2005 and higher] - CONTENT: Specifies that each instance of the XML data type in column_name can contain multiple top-level elements. CONTENT applies only to the XML data type and can be specified only if xml_schema_collection is also specified. If not specified, CONTENT is the default behavior. - DOCUMENT: Specifies that each instance of the XML data type in column_name can contain only one top-level element. DOCUMENT applies only to the XML data type and can be specified only if xml_schema_collection is also specified. Scripting name: ContentType |
The following extensions are available on the Microsoft tab:
The following extensions are available on the Microsoft tab:
The following extensions are available on the Microsoft tab:
The following extensions are available on the Microsoft tab:
For information about the extended attributes available on the Mirroring tab, see Database mirroring.
The following extensions are available on the OLE DB tab:
Name |
Description |
---|---|
Data provider |
Scripting name: DataProvider |
Connection string |
Specifies the connection string. Scripting name: ConnectionString |
The following extensions are available on the Configuration tab:
Name |
Description |
---|---|
Server name |
Specifies the server name. Scripting name: ServerName |
Authentication |
[only for SQL Server] Specifies the Windows Authentication and SQL Server Authentication types. Scripting name: AuthenticationType |
User name |
Specifies the User name. Scripting name: UserName |
Password |
Specifies the password. Scripting name: Password |
Initial catalog |
[only for SQL Server and OLE DB] Specifies the Initial catalog. Scripting name: InitialCatalog |
Database File |
[only for SQL Server] Specifies a Microsoft SQL Server database file if you select an MSSQL connection. Scripting name: MSSQLDatabaseFile |
Logical name |
[only for SQL Server] Specifies the logical name of the selected database file. Scripting name: LogicalName |
Data providers |
[only for OLE DB] Specifies the data provider. Scripting name: DataProvider |
Location |
[only for OLE DB] Specifies the location for OLEDB. Scripting name: Location |
Persist security info |
[only for OLE DB] Specifies that security information be persistent. Scripting name: PersistSecurityInfo |
Use Windows NT Integrated Security |
[only for OLE DB] Specifies whether to use windows NT Integrated Security or not. Scripting name: UseNTIntegratedSecurity |
The following extensions are available on the Microsoft tab:
Name |
Description |
---|---|
Hidden |
[v2000] Indicates whether the hierarchy is hidden from client applications. Scripting name: IsHidden |
AllMemberName |
[v2005 and higher] Contains the caption in the default language for the All member of a Hierarchy element. Scripting name: AllMemberName |
MemberNamesUnique |
[v2005 and higher] Determines whether member names under the parent element must be unique. Scripting name: MemberNamesUnique |
AllowDuplicateNames |
[v2005 and higher] Determines whether duplicate names are allowed in a Hierarchy element. Scripting name: AllowDuplicateNames |
The following extensions are available on the Microsoft tab:
Name |
Description |
---|---|
Format |
[v2000] Format used to display the values of the cube measure. Scripting name: Format |
Cube measure function type |
[v2000] A value corresponding to the type of aggregate function used by the cube measure. Scripting name: Function |
Hidden |
[v2000] Indicates whether the measure is visible to the client. Scripting name: IsHidden |
Member calculating order |
[v2000] Order in which the calculated member will be solved when calculated members intersect each other. Scripting name: SolveOrder |
Source column data type |
[v2000] Returns an OLE DB enumeration constant that identifies the SourceColumn (in the fact table) data type. Scripting name: Type |
AggregateFunction |
[v2005 and higher] Defines the common prefix to be used for aggregation names throughout the associated parent element. Scripting name: AggregateFunction |
BindingType |
[v2005 and higher] Defines the binding type for the measure. Scripting name: BindingType |
Visible |
[v2005 and higher] Determines the visibility of the Fact Measure. Scripting name: Visible |
FormatString |
[v2005 and higher] Describes the display format for a CalculationProperty or a Measure element. Scripting name: FormatString |
The following extensions are available on the Microsoft tab:
Name |
Description |
---|---|
Filegroup |
Specifies the name of the filegroup. Scripting name: FileGroup |
Partition scheme |
[v2005 and higher] Specifies the name of the partition scheme. Scripting name: PartitionScheme |
Column |
[v2005 and higher] Specifies the partitioned column. Scripting name: PartitionSchemeColumn |
Fill factor |
Specifies a percentage that indicates how full the Database Engine should make the leaf level of each index page during index creation or rebuild. Scripting name: FillFactor |
Max degree of parallelism |
[v2005 and higher] Overrides the max degree of parallelism configuration option for the duration of the index operation. Use MAXDOP to limit the number of processors used in a parallel plan execution. The maximum is 64 processors. Scripting name: MaxDop |
Pad index |
Specifies index padding. Scripting name: PadIndex |
Statistics no recompute |
Specifies whether distribution statistics are recomputed. Scripting name: StatisticsNoRecompute |
Drop existing |
Specifies that the named, preexisting clustered, nonclustered, or XML index is dropped and rebuilt. Scripting name: DropExisting |
Online |
[v2005 and higher] Specifies whether underlying tables and associated indexes are available for queries and data modification during the index operation. Scripting name: Online |
Sort in temporary database |
[v2005 and higher] Specifies whether to store temporary sort results in tempdb. Scripting name: SortInTempDB |
Allow row locks |
[v2005 and higher] Specifies whether row locks are allowed. Scripting name: AllowRowLocks |
Allow page locks |
[v2005 and higher] Specifies whether page locks are allowed. Scripting name: AllowPageLocks |
Ignore dup key |
Specifies the error response to duplicate key values in a multiple row insert operation on a unique clustered or unique nonclustered index. Scripting name: IgnoreDupKey |
If the index is not a cluster index, then the Include tab is displayed, allowing you to specify the columns with which it is associated.
The following extensions are available on the Microsoft tab:
Name |
Description |
---|---|
Contains filestream |
Specifies that the filegroup stores FILESTREAM binary large objects (BLOBs) in the file system. Scripting name: FileStream |
The following extensions are available on the Microsoft tab:
Name |
Description |
---|---|
Do not validate check constraints during replication |
Specifies that "NOT FOR REPLICATION" keywords are used to prevent the TABLE CHECK constraint from being enforced during the distribution process used by replication. Scripting name: ExtCktNotForReplication |
Table is partitioned |
Specifies that the table is partitioned. Scripting name: PartitionedTable |
Filegroup |
[unpartitioned tables] Specifies the name of the filegroup. Scripting name: FileGroup |
Text/Image |
[unpartitioned tables] Specifies the name of the filegroup where text and image are stored. Scripting name: TextImageOn |
Filestream |
[unpartitioned tables] Specifies the name of the filegroup used for filestream. Scripting name: FilestreamOnFilegroup |
Compression |
[unpartitioned tables] Specifies the compression type of the table (none, row or page). Scripting name: TableCompression |
Partition scheme |
[partitioned tables, v2005 and higher] Specifies the name of the partition scheme. You must also specify the name of the partitioned column Scripting name: PartitionScheme, PartitionSchemeColumn |
Filestream partition scheme |
[partitioned tables, v2005 and higher] Specifies the name of the partition scheme. Scripting name: FilestreamPartitionScheme, FilestreamPartitionSchemeColumn |
Compression |
[partitioned tables] Specifies the partitions that use the compression. Scripting name: DataCompression |
The following extensions are available on the Microsoft tab:
Name |
Description |
---|---|
Option |
Is a concatenation of the WITH ENCRYPTION (which is illegal for CLR triggers, and which prevents the trigger from being published) and EXECUTE AS (which specifies the security context under which the trigger is executed) options. Scripting name: Option |
An additional property is available for CLR triggers (see CLR Procedures, Functions, and Triggers (SQL Server)).
The following extensions are available on the General tab (v2005 and higher):
Name |
Description |
---|---|
Implicit schema |
Specifies that the stored procedure sp_grantdbaccess will be used instead of a create user statement during database generation. Scripting name: ImplicitSchema |
Default schema |
Specifies the first schema searched to resolve the names of objects for this user. If the Implicit schema option is selected, then the default schema is initialized to the name of the user. Scripting name: DefaultSchema |