Net-informations.com
SiteMap  | About    

ASP.NET Command

The Command Object requires an instance of an ASP.NET Connection Object for executing the SQL statements . The Command Object in ADO.NET executes SQL statements and Stored Procedures against the data source specified in the ASP.NET Connection Object.

asp.net-command

The Command Object has a property called CommandText , which contains a String value that represents the command that will be executed against the Data Source. When the CommandType property is set to StoredProcedure, the CommandText property should be set to the name of the stored procedure.

Click the following links to see some important built in methods uses in the Command Object to execute the SQL statements.

ASP.NET ExecuteNonQuery

ASP.NET ExecuteReader

ASP.NET ExecuteScalar






net-informations.com (C) 2017    Founded by raps mk
All Rights Reserved. All other trademarks are property of their respective owners.