I am looking for C# code for the compact framework to determine the current size of a database table (within a SDF file). Table name "LogTable"
Does anyone have any code examples to determine how this can be achieved. I cannot use a stored procedure as the code throws an exception as this is not supported :-(
I have tried the code below::
using (SqlCeCommand cmd = sql_conn.Connection.CreateCommand()) {
cmd.CommandText = "exec sp_spaceused";
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandTimeout = 60;
cmd.ExecuteNonQuery();
}
Also tried cmd.CommandText = "sp_spaceused"; and got an exception that this is not supported.
Thanks :-)