日期:2014-05-18 浏览次数:20398 次
SqlConnection con = new SqlConnection(Maticsoft.DBUtility.DbHelperSQL.GetconnectionString()); SqlDataAdapter da = new SqlDataAdapter(); da.SelectCommand = new SqlCommand(); da.SelectCommand.Connection = con; da.SelectCommand.CommandText = "exec sp_spaceused"; da.SelectCommand.CommandType = CommandType.StoredProcedure; DataSet ds=new DataSet(); da.Fill(ds);