Concept Framework 2.0 documentation | Contents | Index |
Name | Type | Access | Version | Deprecated |
ExecuteNonQuery | function | public | version 1.0 | no |
function ExecuteNonQuery(); |
This function is similar to the ExecuteQuery function, but it returns no records. It executes the SQL query specified by the CommandText or PreparedQuery property, but it produces no results. This is suitable for "update", "insert" and "alter" queries. It's not recommended for using with "select" queries (because will produce no results). |
var Connection=new ADOConnection(); var DataSet=new ADODataSet(Connection); // Check the Open member of the ADOConnection for connection strings Connection.Open(CONNECTION_STRING); DataSet.CommandText="delete from my_table where id=5"; DataSet.ExecuteNonQuery(); |
Documented by Eduard Suica, generation time: Fri Jan 21 18:06:14 2011 GMT | (c)2011 RadGs Software |