Files
doc-exports/docs/dws/tool/dws_07_0188.html
luhuayi a5e3903f6b DWS TG 910.211 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: luhuayi <luhuayi@huawei.com>
Co-committed-by: luhuayi <luhuayi@huawei.com>
2025-04-23 13:53:01 +00:00

221 lines
19 KiB
HTML

<a name="EN-US_TOPIC_0000002195544841"></a><a name="EN-US_TOPIC_0000002195544841"></a>
<h1 class="topictitle1">Migrating Tables</h1>
<div id="body0000002195544841"><div class="section" id="EN-US_TOPIC_0000002195544841__section185540391063"><h4 class="sectiontitle">Table Name</h4><p id="EN-US_TOPIC_0000002195544841__p11909184519612">GaussDB(DWS) does not support the <em id="EN-US_TOPIC_0000002195544841__i20202181233114">Database name</em><strong id="EN-US_TOPIC_0000002195544841__b8834117113111">.</strong><em id="EN-US_TOPIC_0000002195544841__i429419228314">Schema name</em><strong id="EN-US_TOPIC_0000002195544841__b23132613118">.</strong><em id="EN-US_TOPIC_0000002195544841__i463073318314">Table name</em> format. You need to convert it to the <em id="EN-US_TOPIC_0000002195544841__i1462354203114">Schema name</em><strong id="EN-US_TOPIC_0000002195544841__b10689115753117">.</strong><em id="EN-US_TOPIC_0000002195544841__i129272315324">Table name</em> format.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002195544841__table1580018371782" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002195544841__row148011337585"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.1"><p id="EN-US_TOPIC_0000002195544841__p138011637483"><strong id="EN-US_TOPIC_0000002195544841__b198866141326">SQL Server Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.1.3.1.3.1.2"><p id="EN-US_TOPIC_0000002195544841__p180117371281"><strong id="EN-US_TOPIC_0000002195544841__b5622201773215">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002195544841__row118011537584"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.1 "><p id="EN-US_TOPIC_0000002195544841__p753615815813">CREATE TABLE `analytics-di-dev.abase.buyer_location`</p>
<p id="EN-US_TOPIC_0000002195544841__p75364581188">(</p>
<p id="EN-US_TOPIC_0000002195544841__p17536175818819">id_buyer INT,</p>
<p id="EN-US_TOPIC_0000002195544841__p053612582812">id_location INT</p>
<p id="EN-US_TOPIC_0000002195544841__p35361958482">);</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.1.3.1.3.1.2 "><p id="EN-US_TOPIC_0000002195544841__p133311565108">CREATE TABLE "abase"."buyer_location"</p>
<p id="EN-US_TOPIC_0000002195544841__p178018371889">("id_buyer" INT, "id_location" INT) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("id_buyer");</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0000002195544841__section16286163651018"><h4 class="sectiontitle">Migration of Table-Level Parameters</h4><p id="EN-US_TOPIC_0000002195544841__p101161438101012">SQL Server supports the creation of row-compressed tables, while GaussDB(DWS) does not. The tables are deleted during migration.</p>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002195544841__table1073724710911" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002195544841__row1973734718919"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.1.3.1.1"><p id="EN-US_TOPIC_0000002195544841__p1473717477911"><strong id="EN-US_TOPIC_0000002195544841__b11322151193213">SQL Server Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.1.3.1.2"><p id="EN-US_TOPIC_0000002195544841__p14737144718916"><strong id="EN-US_TOPIC_0000002195544841__b1838719533326">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002195544841__row147371247096"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.1.3.1.1 "><p id="EN-US_TOPIC_0000002195544841__p101241038101219">CREATE TABLE dbo.T1</p>
<p id="EN-US_TOPIC_0000002195544841__p71246386127">(</p>
<p id="EN-US_TOPIC_0000002195544841__p171241389128">c1 INT,</p>
<p id="EN-US_TOPIC_0000002195544841__p141242038161218">c2 NVARCHAR(200)</p>
<p id="EN-US_TOPIC_0000002195544841__p61241438191219">)</p>
<p id="EN-US_TOPIC_0000002195544841__p13124438111214">WITH (DATA_COMPRESSION = ROW);</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.1.3.1.2 "><p id="EN-US_TOPIC_0000002195544841__p17568181214126">CREATE TABLE "dbo"."t1" ("c1" INT, "c2" VARCHAR(200)) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("c1");</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000002195544841__p037785411443">SQL Server supports the creation of compressed XML tables, while GaussDB(DWS) does not. The tables are deleted during migration.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002195544841__table2305134131311" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002195544841__row130584121314"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.1.3.1.1"><p id="EN-US_TOPIC_0000002195544841__p1030511401316"><strong id="EN-US_TOPIC_0000002195544841__b87153713317">SQL Server Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.5.1.3.1.2"><p id="EN-US_TOPIC_0000002195544841__p830524131311"><strong id="EN-US_TOPIC_0000002195544841__b1090279163310">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002195544841__row143051448133"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.1.3.1.1 "><p id="EN-US_TOPIC_0000002195544841__p9369155871318">CREATE TABLE dbo.T1</p>
<p id="EN-US_TOPIC_0000002195544841__p1636935810135">(</p>
<p id="EN-US_TOPIC_0000002195544841__p1036925831317">c1 INT,</p>
<p id="EN-US_TOPIC_0000002195544841__p13369758151319">c2 XML</p>
<p id="EN-US_TOPIC_0000002195544841__p7369105811131">)</p>
<p id="EN-US_TOPIC_0000002195544841__p4369858121320">WITH (XML_COMPRESSION = ON);</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.5.1.3.1.2 "><p id="EN-US_TOPIC_0000002195544841__p12617103431318">CREATE TABLE "dbo"."t1" ("c1" INT, "c2" TEXT) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("c1");</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000002195544841__p637717543442">SQL Server supports the <strong id="EN-US_TOPIC_0000002195544841__b13276217193318">TEXTIMAGE_ON</strong> parameter, which indicates that some types of data are stored in a specified file group. GaussDB(DWS) does not support this parameter and deletes it during migration.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002195544841__table125941034101414" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002195544841__row159463412141"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.7.1.3.1.1"><p id="EN-US_TOPIC_0000002195544841__p659453431415"><strong id="EN-US_TOPIC_0000002195544841__b3430182714337">SQL Server Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.7.1.3.1.2"><p id="EN-US_TOPIC_0000002195544841__p359483412148"><strong id="EN-US_TOPIC_0000002195544841__b1794142911337">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002195544841__row16594334201419"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.1.3.1.1 "><p id="EN-US_TOPIC_0000002195544841__p812663217154">CREATE TABLE dbo.T1</p>
<p id="EN-US_TOPIC_0000002195544841__p1812613213158">(</p>
<p id="EN-US_TOPIC_0000002195544841__p1912643271515">c1 INT,</p>
<p id="EN-US_TOPIC_0000002195544841__p161268328159">c2 text</p>
<p id="EN-US_TOPIC_0000002195544841__p8126132151514">) TEXTIMAGE_ON "default";</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.7.1.3.1.2 "><p id="EN-US_TOPIC_0000002195544841__p179621302154">CREATE TABLE "dbo"."t1" ("c1" INT, "c2" TEXT) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("c1");</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000002195544841__p6378135414415">SQL Server supports the <strong id="EN-US_TOPIC_0000002195544841__b20201536123316">SYSTEM_VERSIONING</strong> parameter, which is used to create a system versioning table. GaussDB(DWS) does not support this parameter and deletes it during migration.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002195544841__table17472548181510" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002195544841__row1047212486159"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.9.1.3.1.1"><p id="EN-US_TOPIC_0000002195544841__p047210485150"><strong id="EN-US_TOPIC_0000002195544841__b8240155511335">SQL Server Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.9.1.3.1.2"><p id="EN-US_TOPIC_0000002195544841__p2472154871510"><strong id="EN-US_TOPIC_0000002195544841__b18790195853311">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002195544841__row8472174861517"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.9.1.3.1.1 "><p id="EN-US_TOPIC_0000002195544841__p15924906177">CREATE TABLE Department</p>
<p id="EN-US_TOPIC_0000002195544841__p1092418021718">(</p>
<p id="EN-US_TOPIC_0000002195544841__p1592418081711">DepartmentNumber CHAR(10) NOT NULL PRIMARY KEY,</p>
<p id="EN-US_TOPIC_0000002195544841__p592410191720">DepartmentName VARCHAR(50) NOT NULL,</p>
<p id="EN-US_TOPIC_0000002195544841__p692420014174">ManagerID INT NULL</p>
<p id="EN-US_TOPIC_0000002195544841__p2924408170">)</p>
<p id="EN-US_TOPIC_0000002195544841__p392413018170">WITH (SYSTEM_VERSIONING = ON);</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.9.1.3.1.2 "><p id="EN-US_TOPIC_0000002195544841__p1341123911174">CREATE TABLE "department" (</p>
<p id="EN-US_TOPIC_0000002195544841__p24111939101710">"departmentnumber" CHAR(10) NOT NULL PRIMARY KEY,</p>
<p id="EN-US_TOPIC_0000002195544841__p741123901712">"departmentname" VARCHAR(50) NOT NULL,</p>
<p id="EN-US_TOPIC_0000002195544841__p541115394178">"managerid" INT</p>
<p id="EN-US_TOPIC_0000002195544841__p193221614171612">) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("departmentnumber");</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="section" id="EN-US_TOPIC_0000002195544841__section11293111814"><h4 class="sectiontitle">Migration of Column-Level Parameters</h4><p id="EN-US_TOPIC_0000002195544841__p7553177201813">SQL Server supports the creation of tables with sparse columns, but GaussDB(DWS) does not. The tables are deleted during migration.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002195544841__table93511036161815" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002195544841__row3351113612182"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.10.3.1.3.1.1"><p id="EN-US_TOPIC_0000002195544841__p16351113631819"><strong id="EN-US_TOPIC_0000002195544841__b2026133315345">SQL Server Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.10.3.1.3.1.2"><p id="EN-US_TOPIC_0000002195544841__p1535193610189"><strong id="EN-US_TOPIC_0000002195544841__b280410341347">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002195544841__row4351736111810"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.10.3.1.3.1.1 "><p id="EN-US_TOPIC_0000002195544841__p156871724113614">CREATE TABLE dbo.T1</p>
<p id="EN-US_TOPIC_0000002195544841__p568732417365">(</p>
<p id="EN-US_TOPIC_0000002195544841__p17687824143620">c1 INT PRIMARY KEY,</p>
<p id="EN-US_TOPIC_0000002195544841__p968718246366">c2 VARCHAR(50) SPARSE NULL</p>
<p id="EN-US_TOPIC_0000002195544841__p474316392194">);</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.10.3.1.3.1.2 "><p id="EN-US_TOPIC_0000002195544841__p79068244199">CREATE TABLE "dbo"."t1" ("c1" INT PRIMARY KEY, "c2" VARCHAR(50)) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("c1");</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p id="EN-US_TOPIC_0000002195544841__p4378195419440">SQL Server supports the <strong id="EN-US_TOPIC_0000002195544841__b16553742183413">FILESTREAM</strong> keyword, which is used to specify the <strong id="EN-US_TOPIC_0000002195544841__b13242144813345">FILESTREAM</strong> data location of a table. GaussDB(DWS) does not support this keyword and is deleted during migration.</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002195544841__table5195172219236" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002195544841__row1119511228234"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.12.1.3.1.1"><p id="EN-US_TOPIC_0000002195544841__p7195822112315"><strong id="EN-US_TOPIC_0000002195544841__b17384058143412">SQL Server Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.12.1.3.1.2"><p id="EN-US_TOPIC_0000002195544841__p17195422142320"><strong id="EN-US_TOPIC_0000002195544841__b928810112356">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002195544841__row16195152211235"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.12.1.3.1.1 "><p id="EN-US_TOPIC_0000002195544841__p5326158103617">CREATE TABLE dbo.EmployeePhoto</p>
<p id="EN-US_TOPIC_0000002195544841__p73263863618">(</p>
<p id="EN-US_TOPIC_0000002195544841__p2326108193612">EmployeeId INT NOT NULL PRIMARY KEY,</p>
<p id="EN-US_TOPIC_0000002195544841__p4326989364">Photo VARBINARY(MAX) FILESTREAM NULL,</p>
<p id="EN-US_TOPIC_0000002195544841__p9326983363">MyRowGuidColumn UNIQUEIDENTIFIER NOT NULL ROWGUIDCOL UNIQUE DEFAULT NEWID()</p>
<p id="EN-US_TOPIC_0000002195544841__p032618893617">);</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.12.1.3.1.2 "><p id="EN-US_TOPIC_0000002195544841__p842511441351">CREATE TABLE "dbo"."employeephoto" (</p>
<p id="EN-US_TOPIC_0000002195544841__p04254440357">"employeeid" INT NOT NULL PRIMARY KEY,</p>
<p id="EN-US_TOPIC_0000002195544841__p174251144143520">"photo" BYTEA,</p>
<p id="EN-US_TOPIC_0000002195544841__p2042594418351">"myrowguidcolumn" TEXT NOT NULL</p>
<p id="EN-US_TOPIC_0000002195544841__p11425844193514">) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("employeeid");</p>
<p id="EN-US_TOPIC_0000002195544841__p1968552412356">CREATE INDEX "idx_employeephoto_myrowguidcolumn" ON "dbo"."employeephoto"("myrowguidcolumn");</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000002195544841__p1237895484412">SQL Server supports clustered and nonclustered indexes, but GaussDB(DWS) does not. The indexes are deleted during migration.</p>
<p id="EN-US_TOPIC_0000002195544841__p16378175434415">Primary key clustered indexes</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002195544841__table78730439232" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002195544841__row178733436234"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.15.1.3.1.1"><p id="EN-US_TOPIC_0000002195544841__p287384310231"><strong id="EN-US_TOPIC_0000002195544841__b940035118355">SQL Server Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.15.1.3.1.2"><p id="EN-US_TOPIC_0000002195544841__p38731443142314"><strong id="EN-US_TOPIC_0000002195544841__b8385145417354">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002195544841__row1087420435235"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.15.1.3.1.1 "><p id="EN-US_TOPIC_0000002195544841__p337501673216">CREATE TABLE Department</p>
<p id="EN-US_TOPIC_0000002195544841__p15375141663219">(</p>
<p id="EN-US_TOPIC_0000002195544841__p837510162325">DepartmentNumber CHAR(10) NOT NULL PRIMARY KEY CLUSTERED,</p>
<p id="EN-US_TOPIC_0000002195544841__p113741016183215">DepartmentName VARCHAR(50) NOT NULL,</p>
<p id="EN-US_TOPIC_0000002195544841__p53744167324">ManagerID INT NULL</p>
<p id="EN-US_TOPIC_0000002195544841__p65032814320">);</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.15.1.3.1.2 "><p id="EN-US_TOPIC_0000002195544841__p65831319113416">CREATE TABLE "department" (</p>
<p id="EN-US_TOPIC_0000002195544841__p858317198349">"departmentnumber" CHAR(10) NOT NULL PRIMARY KEY,</p>
<p id="EN-US_TOPIC_0000002195544841__p358331918342">"departmentname" VARCHAR(50) NOT NULL,</p>
<p id="EN-US_TOPIC_0000002195544841__p185831719143416">"managerid" INT</p>
<p id="EN-US_TOPIC_0000002195544841__p15339201173415">) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("departmentnumber");</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000002195544841__p9379115420441">Unique index and nonclustered indexes</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000002195544841__table12662555248" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0000002195544841__row26621458249"><th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.17.1.3.1.1"><p id="EN-US_TOPIC_0000002195544841__p866210519245"><strong id="EN-US_TOPIC_0000002195544841__b7368181015368">SQL Server Syntax</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.17.1.3.1.2"><p id="EN-US_TOPIC_0000002195544841__p1366265142413"><strong id="EN-US_TOPIC_0000002195544841__b59251319363">Syntax After Migration</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000002195544841__row56621152249"><td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.17.1.3.1.1 "><p id="EN-US_TOPIC_0000002195544841__p119315274316">CREATE TABLE Department</p>
<p id="EN-US_TOPIC_0000002195544841__p9931427143120">(</p>
<p id="EN-US_TOPIC_0000002195544841__p17931202715311">DepartmentNumber CHAR(10) NOT NULL UNIQUE NONCLUSTERED,</p>
<p id="EN-US_TOPIC_0000002195544841__p18931152714315">DepartmentName VARCHAR(50) NOT NULL,</p>
<p id="EN-US_TOPIC_0000002195544841__p15931182719316">ManagerID INT NULL</p>
<p id="EN-US_TOPIC_0000002195544841__p1601151343118">);</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.17.1.3.1.2 "><p id="EN-US_TOPIC_0000002195544841__p10821037133114">CREATE TABLE "department" (</p>
<p id="EN-US_TOPIC_0000002195544841__p5821637143119">"departmentnumber" CHAR(10) NOT NULL UNIQUE,</p>
<p id="EN-US_TOPIC_0000002195544841__p482163711319">"departmentname" VARCHAR(50) NOT NULL,</p>
<p id="EN-US_TOPIC_0000002195544841__p16821337153115">"managerid" INT</p>
<p id="EN-US_TOPIC_0000002195544841__p121338132612">) WITH (ORIENTATION = ROW, COMPRESSION = NO) NOCOMPRESS DISTRIBUTE BY HASH ("departmentnumber");</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="EN-US_TOPIC_0000002195544841__p193794548443"></p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_07_0187.html">SQL-Server Syntax Migration</a></div>
</div>
</div>