mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
sql server index analyser works
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
module.exports = `
|
||||
select c.object_id, c.index_id, c.column_id, c.is_descending_key, c.is_included_column from sys.index_columns c
|
||||
|
||||
select
|
||||
c.object_id, c.index_id, c.column_id,
|
||||
col.name as columnName,
|
||||
c.is_descending_key as isDescending, c.is_included_column as isIncludedColumn
|
||||
from sys.index_columns c
|
||||
inner join sys.columns col on c.object_id = col.object_id and c.column_id = col.column_id
|
||||
where c.object_id =OBJECT_ID_CONDITION
|
||||
order by c.key_ordinal
|
||||
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user