Editing Object Script - Columns - XML - MediaWiki Table (short)

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 5: Line 5:
 
Select Project, Project Version, Object, Command "Generate Script"
 
Select Project, Project Version, Object, Command "Generate Script"
  
Select "XML", and predefined XSL "MediaWiki Table (short)"
+
Select "XML", and predefined XSLT "MediaWiki Table (short)"
  
===Generated Code (AdventureWorks)===
+
===Generated Code===
  
''updated 31.Dec 08 to reflect latest changes''
+
{| border="1" cellpadding="5" cellspacing="0"
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|-
 
| '''Table
 
| Person.Contact
 
|-
 
|}
 
 
 
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
|- style="background:silver"
 
| '''Column
 
| '''Data Type
 
| '''Nullable
 
| '''Default
 
 
|-
 
| ContactID
 
| int
 
| not null
 
|
 
|-
 
| NameStyle
 
| dbo.NameStyle
 
| not null
 
| ((0))
 
|-
 
| Title
 
| nvarchar(8)
 
| null
 
|
 
|-
 
| FirstName
 
| dbo.Name
 
| not null
 
|
 
|-
 
| MiddleName
 
| dbo.Name
 
| null
 
|
 
|-
 
| LastName
 
| dbo.Name
 
| not null
 
|
 
|-
 
| Suffix
 
| nvarchar(10)
 
| null
 
|
 
|-
 
| EmailAddress
 
| nvarchar(50)
 
| null
 
|
 
|-
 
| EmailPromotion
 
| int
 
| not null
 
| ((0))
 
|-
 
| Phone
 
| dbo.Phone
 
| null
 
|
 
|-
 
| PasswordHash
 
| varchar(128)
 
| not null
 
|
 
|-
 
| PasswordSalt
 
| varchar(10)
 
| not null
 
|
 
|-
 
| AdditionalContactInfo
 
| xml
 
| null
 
|
 
|-
 
| rowguid
 
| uniqueidentifier
 
| not null
 
| (newid())
 
|-
 
| ModifiedDate
 
| datetime
 
| not null
 
| (getdate())
 
|}
 
 
 
 
 
 
 
===Generated Code (dbscript)===
 
 
 
''updated 31.Dec 08 to reflect latest changes''
 
 
 
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
 
 
|-
 
|-
 
| '''Table
 
| '''Table
Line 117: Line 17:
  
  
{| border="1" cellpadding="5" cellspacing="0" style="border-collapse:collapse"
+
{| border="1" cellpadding="5" cellspacing="0"
|- style="background:silver"
+
| Column
| '''Column
+
| Data Type
| '''Data Type
+
| Nullable
| '''Nullable
+
| Default
| '''Default
 
 
 
 
|-
 
|-
Line 151: Line 50:
 
|-
 
|-
 
| ID
 
| ID
| nvarchar(128)
+
| varchar(50)
 
| not null
 
| not null
|
 
|-
 
| DataTypeSchema
 
| nvarchar(128)
 
| null
 
 
|  
 
|  
 
|-
 
|-
 
| DataType
 
| DataType
| nvarchar(128)
+
| varchar(50)
| null
+
| not null
 
|  
 
|  
 
|-
 
|-
Line 186: Line 80:
 
|-
 
|-
 
| CollationName
 
| CollationName
| nvarchar(128)
+
| varchar(50)
 
| null
 
| null
 
|  
 
|  
Line 206: Line 100:
 
|-
 
|-
 
| Computed
 
| Computed
| ntext
+
| nvarchar(1000)
 
| null
 
| null
 
|  
 
|  
Line 220: Line 114:
 
| (0)
 
| (0)
 
|-
 
|-
| XmlSchema
+
| XmlAttributes
| nvarchar(128)
+
| nvarchar(1000)
 
| null
 
| null
 
|  
 
|  
|-
 
| XmlCollection
 
| nvarchar(128)
 
| null
 
|
 
|-
 
| IsXmlDoc
 
| bit
 
| not null
 
| (0)
 
 
|-
 
|-
 
| Description
 
| Description
| ntext
+
| nvarchar(1000)
 
| null
 
| null
 
|  
 
|  
Line 246: Line 130:
 
|-
 
|-
 
| DFName
 
| DFName
| nvarchar(128)
+
| varchar(128)
 
| null
 
| null
 
|  
 
|  
Line 254: Line 138:
 
| null
 
| null
 
|  
 
|  
|-
 
| DFIsSysNamed
 
| bit
 
| not null
 
| (0)
 
 
|-
 
|-
 
| Created
 
| Created
Line 267: Line 146:
  
 
===Screenshot===
 
===Screenshot===
 
[http://www.devio.at/images/dbs-screenshots/obj_script_wiki.png Generate MediaWiki source - screenshot]
 

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)