dbgate/packages/engines/mssql/sql/tables.js
2020-03-14 10:38:10 +01:00

9 lines
241 B
JavaScript

module.exports = `
select
o.name as pureName, s.name as schemaName, o.object_id as objectId,
o.create_date, o.modify_date
from sys.tables o
inner join sys.schemas s on o.schema_id = s.schema_id
where o.object_id =[OBJECT_ID_CONDITION]
`;