Last active
December 20, 2015 23:28
-
-
Save bitsprint/6212187 to your computer and use it in GitHub Desktop.
Indexed Dictionary (User Defined Table Type)
This file contains 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
/****** Object: UserDefinedTableType [dbo].[IndexedDictionary] ******/ | |
IF EXISTS (SELECT * FROM sys.types st JOIN sys.schemas ss ON st.schema_id = ss.schema_id WHERE st.name = N'IndexedDictionary' AND ss.name = N'dbo') | |
DROP TYPE [dbo].[IndexedDictionary] | |
GO | |
/****** Object: UserDefinedTableType [dbo].[IndexedDictionary] ******/ | |
CREATE TYPE [dbo].[IndexedDictionary] AS TABLE( | |
[Index] [int] NULL, | |
[Key] [nvarchar](255) NULL, | |
[Value] [nvarchar](255) NULL | |
) | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment