initial population of repo
This commit is contained in:
6
heap-4c4fa08a-025e-4fc1-b7a6-0eeec07eda83.json
Normal file
6
heap-4c4fa08a-025e-4fc1-b7a6-0eeec07eda83.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"id": "4c4fa08a-025e-4fc1-b7a6-0eeec07eda83",
|
||||
"prefix": "heap",
|
||||
"description": "list all heap table(s)",
|
||||
"body": "-- List all heap tables \r\nSELECT SCH.name + '.' + TBL.name AS TableName \r\nFROM sys.tables AS TBL \r\n INNER JOIN sys.schemas AS SCH \r\n ON TBL.schema_id = SCH.schema_id \r\n INNER JOIN sys.indexes AS IDX \r\n ON TBL.object_id = IDX.object_id \r\n AND IDX.type = 0 -- = Heap \r\nORDER BY TableName"
|
||||
}
|
||||
Reference in New Issue
Block a user