Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. Reading .dbf files using .NET Compact Framework on Windows Mobile Devices

Reading .dbf files using .NET Compact Framework on Windows Mobile Devices

Scheduled Pinned Locked Moved Mobile
csharpdatabasesysadminannouncement
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    delphix5
    wrote on last edited by
    #1

    I want to read .dbf file on Network such as Data Source=//192.168.0.16/Ovnbol1000/test.dbf Windows Mobile 5.0 Windows CE using C# This my Code but it does not work

    SqlConnection con = new SqlConnection("Data Source=//192.168.0.16/Ovnbol1000/"); // give your path directly 
           
    
            con.Open();
            SqlDataAdapter da = new SqlDataAdapter("select \* from KUND.DBF", con); // update this query with your table name 
            DataSet ds = new DataSet();
            da.Fill(ds);
    
            con.Close();
            int i = ds.Tables\[0\].Rows.Count;
    

    Thanks

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups