When an instance of SqlCeCommand is created, the read/write properties are set to their initial values. For a list of these values, see the SqlCeCommand constructor.
SqlCeCommand features the following methods that execute commands at a data source:
| Item | Description |
| ExecuteReader | Executes commands that return rows. |
| ExecuteNonQuery | Executes SQL commands such as INSERT, DELETE, and UPDATE statements. |
| ExecuteScalar | Retrieves a single value (for example, an aggregate value) from a database. |
| ExecuteResultSet | Executes commands and returns a result set. |
The Data Provider for SQL Server Mobile does not support batched queries. Commands must be in the following form:
Select * from Customers and not Select * from Customers; Select * from Orders;
If you are using code generated for System.Data.SqlClient, you may have to alter your queries to conform to this restriction.
SQL Server Mobile supports multiple simultaneous connections as well as multiple commands sharing the same connection. This means that it is possible to have multiple instances of SqlCeDataReader on the same connection. This behavior differs from that of System.Data.SqlClient.
If a fatal SqlCeException is generated by the method executing a SqlCeCommand, the SqlCeConnection may be closed. You can reopen the connection and continue.