Shin-Ra
public text v1 · immutablepublic string DBSize()
{
using(SqlCommand comm = CreateCommand())
{
comm.CommandText = "sp_spaceused";
comm.CommandType = CommandType.StoredProcedure;
string dbSize = "";
using(SqlDataReader dr = comm.ExecuteReader())
{
if(dr.HasRows)
{
dr.Read();
dbSize = dr[1].ToString();
}
}
return dbSize;
}
}}