dbgate/packages/engines/mssql/sql/modifications.js

7 lines
286 B
JavaScript
Raw Normal View History

2020-04-11 18:24:30 +00:00
module.exports = `
select o.object_id as objectId, o.modify_date as modifyDate, o.type, o.name as pureName, s.name as schemaName
from sys.objects o
inner join sys.schemas s on o.schema_id = s.schema_id
where o.type in ('U', 'V', 'P', 'IF', 'FN', 'TF') -- , 'TR' - triggers disabled
2020-04-11 18:24:30 +00:00
`;