根據自己平時的經驗寫的針對SQLSERVER操作的通用類庫
using System;
using System.Data;
using System.Data.SqlClIEnt;
using System.Web;
namespace Whgw_lc
{
///
/// Data 的摘要說明。
/// ///
/// 數據庫相關操作類
/// 作者:DarkAngel
/// 時間:2004-9-24
/// public class Data
{
///
///連接數據庫字符串
/// protected static string con="data source=10.68.19.203;initial catalog=Whgw;persist security info=False;user id=sa;passWord=sc2000;workstation id=DARKANGEL;packet size=4096";
///
/// 數據庫連接對象
/// protected System.Data .SqlClIEnt.SqlConnection DataConnection;
///
/// SqlDataAdapter對象
/// protected System.Data.SqlClIEnt.SqlDataAdapter DataAdapter;
///
/// SqlCommand對象
/// protected System.Data.SqlClIEnt.SqlCommand DataCommand;
///
/// SqlCommandBuilder對象
/// protected System.Data.SqlClIEnt.SqlCommandBuilder DataComBuilder;
///
/// DataSet對象
/// protected System.Data.DataSet DataSet;
///
/// DataRow對象
/// protected System.Data.DataRow DataRow;
///
/// SqlDataReader對象
/// protected System.Data.SqlClIEnt.SqlDataReader DataReader;
//protected System.Web.UI.Page mypage;
///
///構造函數
/// public Data()
{
//
// TODO: 連接數據庫參數
//
//con=
DataConnection=DataConn();
}
///
/// 數據庫連接參數屬性
/// public str