Editing Production.Document (table)

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 2: Line 2:
  
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
|- valign="top"
+
|-
 
| '''Table
 
| '''Table
 
| Production.Document
 
| Production.Document
|- valign="top"
+
|-
| '''Description
 
| Product maintenance documents.
 
 
|}
 
|}
  
=== Columns ===
+
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 17: Line 15:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description
+
| '''PK
 
+
| '''Index
|- valign="top"
+
 +
|-
 
| DocumentID
 
| DocumentID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key for Document records.
+
| PK_Document_DocumentID
|- valign="top"
+
|
 +
|-
 
| Title
 
| Title
 
| nvarchar(50)
 
| nvarchar(50)
 
| not null
 
| not null
 
|  
 
|  
| Title of the document.
+
|  
|- valign="top"
+
|
 +
|-
 
| FileName
 
| FileName
 
| nvarchar(400)
 
| nvarchar(400)
 
| not null
 
| not null
 
|  
 
|  
| Directory path and file name of the document
+
|  
|- valign="top"
+
| AK_Document_FileName_Revision
 +
|-
 
| FileExtension
 
| FileExtension
 
| nvarchar(8)
 
| nvarchar(8)
 
| not null
 
| not null
 
|  
 
|  
| File extension indicating the document type. For example, .doc or .txt.
+
|  
|- valign="top"
+
|
 +
|-
 
| Revision
 
| Revision
 
| nchar(5)
 
| nchar(5)
 
| not null
 
| not null
 
|  
 
|  
| Revision number of the document.
+
|  
|- valign="top"
+
| AK_Document_FileName_Revision
 +
|-
 
| ChangeNumber
 
| ChangeNumber
 
| int
 
| int
 
| not null
 
| not null
 
| ((0))
 
| ((0))
| Engineering change approval number.
+
|  
|- valign="top"
+
|
 +
|-
 
| Status
 
| Status
 
| tinyint
 
| tinyint
 
| not null
 
| not null
 
|  
 
|  
| 1 = Pending approval, 2 = Approved, 3 = Obsolete
+
|  
|- valign="top"
+
|
 +
|-
 
| DocumentSummary
 
| DocumentSummary
 
| nvarchar(max)
 
| nvarchar(max)
 
| null
 
| null
 
|  
 
|  
| Document abstract.
+
|  
|- valign="top"
+
|
 +
|-
 
| Document
 
| Document
 
| varbinary(max)
 
| varbinary(max)
 
| null
 
| null
 
|  
 
|  
| Complete document.
+
|  
|- valign="top"
+
|
 +
|-
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (getdate())
 
| (getdate())
| Date and time the record was last updated.
+
|  
|}
+
|  
 
 
=== Primary Key ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Primary Key
 
| '''Columns
 
|- valign="top"
 
| PK_Document_DocumentID
 
| DocumentID
 
|}
 
 
 
=== Indexes ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Index
 
| '''Type
 
| '''Columns
 
 
 
|- valign="top"
 
| AK_Document_FileName_Revision
 
| Unique
 
| FileName, Revision
 
 
|}
 
|}
  
=== Check Constraints ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Check Constraint
 
| '''Expression
 
| '''Description
 
  
|- valign="top"
 
| CK_Document_Status
 
| ([Status]>=(1) AND [Status]<=(3))
 
| Check constraint [Status] BETWEEN (1) AND (3)
 
|}
 
  
=== Detail Tables ===
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
|- style="background:silver"
Line 123: Line 97:
 
| '''Column
 
| '''Column
 
| '''Referencing Column
 
| '''Referencing Column
 
+
|- valign="top"
+
|-
 
| [[Production.ProductDocument_(table)|Production.ProductDocument]]
 
| [[Production.ProductDocument_(table)|Production.ProductDocument]]
 
| DocumentID
 
| DocumentID
 
| DocumentID
 
| DocumentID
 
|}
 
|}
 
=== References ===
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Dependency Type
 
| '''Object Type
 
| '''Referenced Object
 
 
|- valign="top"
 
| Schema
 
| Schema
 
| [[Production_(schema)|Production]]
 
 
|}
 
 
  
 
== automatically generated ==
 
== automatically generated ==
Line 151: Line 110:
 
| '''Table
 
| '''Table
 
| Production.Document
 
| Production.Document
|- valign="top"
+
|-
 +
 
 
| '''Description
 
| '''Description
 
| Product maintenance documents.
 
| Product maintenance documents.
 
|-
 
|-
 +
 
|}
 
|}
  
Line 164: Line 125:
 
| '''Nullable
 
| '''Nullable
 
| '''Default
 
| '''Default
| '''Description / PK / Index
+
| '''Description
 +
| '''PK / Index
 
 
|- valign="top"
+
|-
 
| DocumentID
 
| DocumentID
 
| int
 
| int
 
| not null
 
| not null
 
|  
 
|  
| Primary key for Document records.<br />PK_Document_DocumentID
+
| Primary key for Document records.
|- valign="top"
+
| PK_Document_DocumentID
 +
|-
 
| Title
 
| Title
 
| nvarchar(50)
 
| nvarchar(50)
 
| not null
 
| not null
 
|  
 
|  
| Title of the document.<br />
+
| Title of the document.
|- valign="top"
+
|
 +
|-
 
| FileName
 
| FileName
 
| nvarchar(400)
 
| nvarchar(400)
 
| not null
 
| not null
 
|  
 
|  
| Directory path and file name of the document<br />AK_Document_FileName_Revision
+
| Directory path and file name of the document
|- valign="top"
+
| AK_Document_FileName_Revision
 +
|-
 
| FileExtension
 
| FileExtension
 
| nvarchar(8)
 
| nvarchar(8)
 
| not null
 
| not null
 
|  
 
|  
| File extension indicating the document type. For example, .doc or .txt.<br />
+
| File extension indicating the document type. For example, .doc or .txt.
|- valign="top"
+
|
 +
|-
 
| Revision
 
| Revision
 
| nchar(5)
 
| nchar(5)
 
| not null
 
| not null
 
|  
 
|  
| Revision number of the document. <br />AK_Document_FileName_Revision
+
| Revision number of the document.  
|- valign="top"
+
| AK_Document_FileName_Revision
 +
|-
 
| ChangeNumber
 
| ChangeNumber
 
| int
 
| int
 
| not null
 
| not null
 
| (0)
 
| (0)
| Engineering change approval number.<br />
+
| Engineering change approval number.
|- valign="top"
+
|
 +
|-
 
| Status
 
| Status
 
| tinyint
 
| tinyint
 
| not null
 
| not null
 
|  
 
|  
| 1 = Pending approval, 2 = Approved, 3 = Obsolete<br />
+
| 1 = Pending approval, 2 = Approved, 3 = Obsolete
|- valign="top"
+
|
 +
|-
 
| DocumentSummary
 
| DocumentSummary
 
| nvarchar(max)
 
| nvarchar(max)
 
| null
 
| null
 
|  
 
|  
| Document abstract.<br />
+
| Document abstract.
|- valign="top"
+
|
 +
|-
 
| Document
 
| Document
 
| varbinary(max)
 
| varbinary(max)
 
| null
 
| null
 
|  
 
|  
| Complete document.<br />
+
| Complete document.
|- valign="top"
+
|
 +
|-
 
| ModifiedDate
 
| ModifiedDate
 
| datetime
 
| datetime
 
| not null
 
| not null
 
| (GETDATE())
 
| (GETDATE())
| Date and time the record was last updated.<br />
+
| Date and time the record was last updated.
 +
|
 
|}
 
|}
  
Line 240: Line 212:
 
| DocumentID
 
| DocumentID
 
| DocumentID
 
| DocumentID
|}
 
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Dependency Type
 
| '''Object Type
 
| '''Referenced Object
 
 
|-
 
| Schema
 
| Schema
 
| [[Production_(schema)|Production]]
 
 
 
|}
 
|}

Please note that all contributions to dbscript Online Help may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Project:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)