Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- using System.Data.OleDb;
- namespace corrigécollefinale
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- OleDbConnection connec = new OleDbConnection();
- string chcon = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Cakess\Documents\G21\Voyages2010.mdb";
- DataSet dsLocal = new DataSet();
- private void Form1_Load(object sender, EventArgs e)
- {
- ChargementDslocal();
- }
- private void ChargementDslocal()
- {
- connec.ConnectionString = chcon;
- DataTable schema = connec.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, new Object[] (null,null,null));
- int n = schema.Rows.Count();
- OleDbDataAdapter da = new OleDbDataAdapter();
- for(int i = 0; i<n;i++)
- {
- DataRow ligne = schema.Rows.Count;
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment