超时时间已到

一:

public DataSet GetDataSet(String SqlString)
        {
            DataSet dataset = new DataSet();
            Open();
            try
            {
                SqlDataAdapter adapter = new SqlDataAdapter(SqlString, Connection);
                adapter.SelectCommand.CommandTimeout = 60000;
                adapter.Fill(dataset);

            }
            catch (Exception e)
            {
                log.WriteLog(EventLogEntryType.Warning, "GetDataSet失败,SqlString=" + SqlString + ",系统异常信息:" + e.Message);

            }
            finally
            {
                Close();

            }
            return dataset;

                }

 

 

 

posted on 2012-10-25 08:36  MyBeN  阅读(196)  评论(0编辑  收藏  举报

导航