All pastes #218881 Raw Edit

Shin-Ra

public text v1 · immutable
#218881 ·published 2006-10-24 12:02 UTC
rendered paste body
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;
        }