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 } } }