T-sql and ddl