Created
August 31, 2017 19:40
-
-
Save perfectly-panda/df20b0bf94ddb0a7e6941026b29839a0 to your computer and use it in GitHub Desktop.
Create External Table (Azure SQL)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//nothing special here, I just got tired of digging this up from MSDN | |
CREATE EXTERNAL TABLE [dbo].[all_dm_exec_requests]( | |
[session_id] smallint NOT NULL, | |
[request_id] int NOT NULL, | |
[start_time] datetime NOT NULL, | |
[status] nvarchar(30) NOT NULL, | |
[command] nvarchar(32) NOT NULL, | |
[sql_handle] varbinary(64), | |
[statement_start_offset] int, | |
[statement_end_offset] int, | |
[cpu_time] int NOT NULL) | |
WITH | |
( | |
DATA_SOURCE = MyExtSrc, | |
SCHEMA_NAME = 'sys', | |
OBJECT_NAME = 'dm_exec_requests' | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment