public string DatabaseSize() { SqlDataControls sdc = new SqlDataControls(); SqlCommand comm = CreateCommand(); comm.CommandText = "sp_spaceused"; comm.CommandType = CommandType.StoredProcedure; QueryCounter qc = new QueryCounter(comm.CommandText); string values; try { values = ExecuteScalar(comm).ToString(); } catch(SqlException ex) { throw ex; } return values; }