Last active
February 12, 2020 16:41
-
-
Save dgutman/3e9768ad44ba4ecd3cf94ac4fe4e5cb4 to your computer and use it in GitHub Desktop.
Find an index on a table in MSSQL
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
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