Results 1 to 7 of 7

Thread: [RESOLVED] c# cannot connect to dbase

Threaded View

  1. #1

    Thread Starter
    Fanatic Member popskie's Avatar
    Join Date
    Jul 2005
    Location
    In my chair
    Posts
    666

    Resolved [RESOLVED] c# cannot connect to dbase

    hi,
    I have a connection in vb6 and dbase works good.
    VB Code:
    1. DbPath = "Microsoft Dbase driver (*.dbf)"
    2. With Cn
    3. .ConnectionString = "driver={" + DbPath + "};dbq=D:\INS2002\DBF"
    4. .Open
    5. End With

    but what is wrong of my code when i transfer this code to c# it appears an error.
    VB Code:
    1. string DbPath = "Microsoft Dbase driver (*.dbf)";
    2. OleDbConnection dbcon = new OleDbConnection();
    3. dbcon.ConnectionString ="driver={" + DbPath + @"};dbq=D:\INS2002\DBF";
    4. dbcon.Open();
    Anyone about this.

    note : pls see picture attachment.

    Popskie
    Last edited by popskie; Mar 22nd, 2007 at 02:21 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width