打印本文 打印本文 关闭窗口 关闭窗口
关于SQLSERVER数据操作的常用类库(原创)
作者:武汉SEO闵涛  文章来源:敏韬网  点击数2355  更新时间:2007/11/14 12:56:09  文章录入:mintao  责任编辑:mintao
nbsp;DataCommand.Connection=DataConnection;
   DataCommand.CommandType=System.Data.CommandType.StoredProcedure;
   try
   {
    DataCommand.ExecuteNonQuery();
    return true;
   }
   catch(Exception ex)
   { 
    System.Console.Write(ex.Message.ToString());
    return false;
   }
  }
  /// <summary>
  ///  关闭数据库连接
  /// </summary>
  public void CloseConnection()
  {
   DataConnection.Close();
  }
 
 }
}

上一页  [1] [2] 

打印本文 打印本文 关闭窗口 关闭窗口