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

9 lines
302 B
JavaScript
Raw Normal View History

2020-04-12 10:24:40 +00:00
module.exports = `
select s.name as pureName, u.name as schemaName, c.text AS codeText
from sys.objects s
inner join sys.syscomments c on s.object_id = c.id
inner join sys.schemas u on u.schema_id = s.schema_id
where (s.object_id =[OBJECT_ID_CONDITION])
order by u.name, s.name, c.colid
`;