I see lots of articles that use the term DML. What exactly does this mean and what are examples of it? Are all T-SQL statements DML?
asked Oct 19, 2009 at 11:44 AM in Default
Steve Jones - Editor ♦♦
DML stands for Data Manipulation Language so any statement that manipulates data would be DML, like SELECT, INSERT, UPDATE, DELETE, and MERGE.
Another type of T-SQL statements are DDL (Data Definition Language) and this is where you define the structures for your data like CREATE, ALTER, DROP.
A third type would be Access Control which would be things like GRANT, REVOKE, DENY. I don't think these fit in DML or DDL.
answered Oct 19, 2009 at 11:58 AM
DML stands for 'Data Manipulation Language' and covers all T-SQL statements that retrieve, store or modify data.
DDL is the other main category, and stands for 'Data Definition Language'. This covers T-SQL statements that modify objects in the schema.
Edit -> thought i should mention the other categories, as Jack did.
You have DCL - 'Data Control Language' - which as Jack says is to do with data security.
Then you have TCL - 'Transaction Control Language' - which are statements to do with opening and closing transactions.