Skip to content

Instantly share code, notes, and snippets.

@dgutman
Last active February 12, 2020 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgutman/3e9768ad44ba4ecd3cf94ac4fe4e5cb4 to your computer and use it in GitHub Desktop.
Save dgutman/3e9768ad44ba4ecd3cf94ac4fe4e5cb4 to your computer and use it in GitHub Desktop.
Find an index on a table in MSSQL
exec sp_helpindex 'dbo.MF_EMR_SPECIALTESTSPROCEDURES'
HealthFactorTypeSID
SELECT [DWViewSchema]
,[DWViewName]
,[DWPartitionKey]
,[DWPartitionKeyDataType]
FROM [CDWWork].[Meta].[DWView]
WHERE [DWViewName] = 'HealthFactor'
is another way
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment