Table of contents
Collapse the table of content
Expand the table of content

U-SQL Database Schemas

Michael Rys|Last Updated: 5/15/2018
4 Contributors

Similar to other database systems and ANSI SQL, U-SQL uses the concept of a schema to group related objects together in the context of a database.

U-SQL provides a built-in schema within each database called dbo that is used as the default schema context. Additionally, U-SQL provides the ability to create and delete additional schemas with schema DDL statements.

Schema DDL Statements

Schema_DDL_Statement :=                                                                                  
|    Drop_Schema_Statement.

A list of schema can be retrieved using the Windows PowerShell cmdlet Get-AzureRmDataLakeAnalyticsCatalogItem. Example command for retrieving schema from the TestReferenceDB database.

$DataLakeAnalyticsAccount = "<adla_account>";

Get-AzureRmDataLakeAnalyticsCatalogItem -Account $DataLakeAnalyticsAccount -Path "TestReferenceDB" -ItemType "Schema";
(Get-AzureRmDataLakeAnalyticsCatalogItem -Account $DataLakeAnalyticsAccount -Path "TestReferenceDB" -ItemType "Schema").Name;

See Also

© 2018 Microsoft