Shin-Ra
public text v1 · immutablepublic 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;
}