Created
June 1, 2016 02:00
-
-
Save CaptTofu/9ee798a1ed5cfdb5b8007b7ef9993271 to your computer and use it in GitHub Desktop.
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
SQL> SELECT name, type_desc, is_unique, is_primary_key FROM sys.indexes WHERE [object_id] = OBJECT_ID('dbo.reguser'); | |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+----------+---------------+ | |
| name | type_desc | is_unique| is_primary_key| | |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+----------+---------------+ | |
| | HEAP | 0 | 0 | | |
| PK_reguser | NONCLUSTERED | 1 | 1 | | |
| AK_reguser | NONCLUSTERED | 1 | 0 | | |
| ie_reguser_idx1 | NONCLUSTERED | 0 | 0 | | |
| ak_reguser_idx_1 | NONCLUSTERED | 1 | 0 | | |
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------+----------+---------------+ | |
SQLRowCount returns 5 | |
5 rows fetched | |
SQL> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment