background preloader

Databases

Facebook Twitter

SQLServer

MySql. The Brehon Law. Using Stored Procedures with a Command. Command objects use parameters to pass values to SQL statements or stored procedures, providing type checking and validation.

Using Stored Procedures with a Command

Unlike command text, parameter input is treated as a literal value, not as executable code. This helps guard against "SQL injection" attacks, in which an attacker inserts a command that compromises security on the server into an SQL statement. Parameterized commands can also improve query execution performance, because they help the database server accurately match the incoming command with a proper cached query plan. For more information, see Execution Plan Caching and Reuse and Parameters and Execution Plan Reuse in SQL Server Books Online. In addition to the security and performance benefits, parameterized commands provide a convenient method for organizing values passed to a data source. Apache CouchDB: The Apache CouchDB Project. MongoDB.