In both queries 1 and 2, the text from the textbox is inserted into the database. What\'s the significance of the parameterized query here?
Passing tx
Parameterized queries do proper substitution of arguments prior to running the SQL query. It completely removes the possibility of "dirty" input changing the meaning of your query. That is, if the input contains SQL, it can't become part of what is executed becase the SQL is never injected into the resulting statement.