直接用System.Data.OleDB中的东东就可以呀,随便看一下帮助。
至于XML,就看System.Xml相关的帮助就行了

解决方案 »

  1.   

    用.net自带的数据库连接控件,拖进界面即可设置连接字符串;
    用xmlreader,xmlwrite
      

  2.   

    private void OpenDB(string strPath)
    {
       string strConn="Provider=Microsoft.OLEDB.Jet.4.0;Data Source=" + strPath;
       OleDbConnection oConn=new OleDbConnection();
       oCon.Open(strConn);
    }
      

  3.   

    string connStr = @"Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=sa;Data Source="+accessFilePath;
    OleDbConnection conn = conn = new OleDbConnection( connStr );
    conn.Open();
    datatable dt = new datatable("youtablename");
    OleDbCommand cmd = new OleDbCommand( "select * from northwind",conn );
    OleDbDataAdapter da = new OleDbDataAdapter( cmd );
    da.Fill( dt );
      

  4.   

    private void OpenDB(string strPath)
    {
       string strConn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + strPath;
       OleDbConnection oConn=new OleDbConnection(strConn);
       oCon.Open();}
      

  5.   

    OleDbConnection dbCon = new OleDbConnection ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("*.mdb")); 
    dbCon.Open();
    OleDbDataAdapter adapter = new OleDbDataAdapter("SELECT * FROM tablename", dbCon); 
    DataSet ds = new DataSet();
    adapter.Fill(ds);
      

  6.   

    DataSet dsAuthors = new DataSet("UserTable");
    //string filePath = "Complete path where you saved the XML file";
                filePath="D:\\test\\mysol\\mysol1\\UserTable.xml";
    dsAuthors.ReadXml(filePath);
    dataGrid1.DataSource = dsAuthors;
    dataGrid1.DataMember = "UserTable";
    dataGrid1.CaptionText = dataGrid1.DataMember;