All pastes #218900 Raw Edit

Shin-Ra

public text v1 · immutable
#218900 ·published 2006-10-24 12:24 UTC
rendered paste body
public string DatabaseSize()
        {
            SqlDataControls sdc = new SqlDataControls();
            SqlCommand comm = CreateCommand();
            comm.CommandText = "sp_spaceused";
            SqlDataReader dr = comm.ExecuteReader();
            string sDBSize;
            while(dr.Read())
            {
                if(dr.HasRows)
                {
                    sDBSize = S
                }
            }
        }