dbgate/packages/engines/mssql/sql/tables.js
2020-04-11 20:24:30 +02:00

9 lines
269 B
JavaScript

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