How to connect with dbf file driver in C#.

Hi
I am using the following command in powerbuilder application to connect dbf file and to select the record from dbf file.
DBemp.dbparm="ConnectString='Driver={Microsoft dBase Driver (*.dbf)};Dbq="+ls_path+";Uid=;Pwd='". It is working fine in powerbuilder . I am looking for the same command to apply in C#. Please any help would be very appreciate.
I had used  the following command in C# before but it is not working in every machine
OdbcConnection dBaseConnection = new OdbcConnection("Driver={Microsoft dBASE Driver (*.dbf)};DriverID=277;Dbq=" + filePath +";");
The above command in C# is working fine in some machine but some machine it is not working especially 64 bit operating system.
If I can get the same command as in powerbuilder , I think would be working in every machine. Please can u help
DBemp.dbparm="ConnectString='Driver={Microsoft dBase Driver (*.dbf)};Dbq="+ls_path+";Uid=;Pwd='".
With Many Thanks
Pol
polachan

Does it work if you go to Project Properties and force 32-bit or 64-bit modes? (For example, uncheck the ‘Prefer 32-bit’ option, then select ‘x86’ in Platform Target for Debug and Release configurations. Then try the ‘x64’ Platform Target
too).

Similar Messages

  • How to connect to dbf file using odbc

    I build a DSN 'dbf' of ms dbase driver(*.DBF)
    version 5.0
    but when I type
    'conn a/a@odbc:dbf'
    errors showed like that
    'ORA-03121:...'
    what's the matter?
    thanks in advance

    Does it work if you go to Project Properties and force 32-bit or 64-bit modes? (For example, uncheck the ‘Prefer 32-bit’ option, then select ‘x86’ in Platform Target for Debug and Release configurations. Then try the ‘x64’ Platform Target
    too).

  • How to update a dbf file with gui_upload???

    hi friends,
    i would like to know how to update a dbf file with gui_upload???
    as i hve already know that it's easy to convert dbf to tab formatted text fle and thn upload it.but i want the direct uploading way.i don't let my user's bsy with converting existing dbf to txt.so pls help me asap!!!!!i will be thankful to you!!!!!

    its very easy you can search other forum!!!

  • NVIDIA OpenGL driver lost connection with the display driver

    Alienware M14x Laptop
    Windows 7-pre 64-bit
    8gb ram
    3gb Video: NVIDIA GeForce GT 555M
    Intel i7 2760QM
    AE CS4
    AE keeps crashing. I get the following message while doing something as simple as scrubbing through the timeline, or changing opacity of a layer. in 1080p, I have a picture layer, a solid, some color corrections, and that's it. i just got this new computer and i have never had this problem on my old computer.
    this message appears after AE crashes."The NVIDIA OpenGL driver lost connection with the display driver and is unable to continue. The application must close."
    this message appears in the taskbar: "Display driver stopped responding and has recovered. Display driver NVIDIA Windows kernel Mode Driver, Version 267.21 stopped responding and has successfully recovered"
    any ideas on how to stop AE from causing my display driver to stop working?
    Thanks, Ramzi Rebeiz

    For anyone picking up this thread (it's probably too late for rrebeiz40 by now!) I have come across a simple but apparently very effective tip that has solved the 'OpenGL driver lost connection' issue for many people using various NVIDIA with various Adobe progs (incidentally a lot of these seem to crop up on Dell machines, especially Notebooks).
    (It fixed my issue with Premiere Pro CS4 - GeForce GT 555M on Win 7 Ultimate 64-bit, Dell XPSL702X).
    It's posted on http://forum-archive.developer.nvidia.com/index.php?showtopic=5331&st=40 (look for the last post, No 50) as follows:
    THIS FIX APPEARS TO WORK...found on an Adobe forum
    "This issue led me to this fix: go to NVIDIA Control Panel --> Manage 3D Settings --> Global Settings, and switch "Power Management Mode" to "Prefer Maximum Performance" (the default "Adaptive" setting seemed to be the culprit). And that's it! The key here is changing the "Global" setting, as my individual programs were already set to "Prefer Maximum Performance." I can cause the error to reoccur by changing back to "Adaptive."
    Otherwise lots more ideas on this site: http://www.instructables.com/id/How-to-Fix...Nvlddmkm-Error/
    My PC has been running for 2 days now. I only put the top fix in for now. Feel happier I have more options if need be though.
    Inserted from <http://forum-archive.developer.nvidia.com/index.php?showtopic=5331&st=40>
    It worked for me

  • How to connect an external hard drive and monitor a single port thuderbolt

    how to connect an external hard drive and monitor a single port thuderbolt

    Yu connect the HDD to your Mac and then the monitor to the HDD.
    The HDD  should have TWO T-Bird ports on the enclosure.
    Its called daisy chaining and up to five devices can be connected in this fashion.

  • JDBC receiver error Cannot establish connection with the registered driver

    Hi Expert,
    I am constructing a proxy to JDBC scenario. And I am getting error saying "
    Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error when attempting to get processing resources: com.sap.aii.af.lib.util.concurrent.ResourcePoolException: Unable to create new pooled resource: DriverManagerException: Cannot establish connection with the registered driver. oracle.jdbc.driver.OracleDriver returns: The Network Adapter could not establish the connection. : SQLException: The Network Adapter could not establish the connection"
    I can get into my Oracle database using TOAD with same IP address, user name and password. Could anybody tell me what should I do? Thanks a lot!
    Charles

    Hi,
    Check with your network team, network conenction between PI and Data base not working , Network team have to open Data base system ports inorder connect PI System.
    check with Basis team about network connectivty,like they are bale to ping Data base server ip or not.
    please go through below thread,
    SQLException: Io exception: The Network Adapter could not establish the con
    regards,
    ganesh.

  • In Aperture 3.4.1, I am not able to connect with referenced files on a network

    I am running OS X 10.8.2 and Aperture 3.4.1, and am unable to connect with referenced files on a network.  Specifically, the referenced files reside on my iMac and I am attempting to connect to them from my MBP.  They appear in red in the dialogue box.  While I know this has been a long standing issue in other versions, I was hoping it had been solved by now.  Any assistance will be appreciated.
    Thanks -
    Dudley

    http://support.apple.com/kb/HT5922
    If you want to mirror your desktop, see:
    http://support.apple.com/kb/HT5404
    Regards.

  • I need to know how to connect with my Black Berry

    Hi good morning, A few days ago I bought a 3rd generation ipad with wifi and I need to know how to connect with my Black Berry, as if this were the modem. Regards and thanks

    The BB has to be set up as a wifi hotspot. After you do that just connect the iPad to the wifi network created on the BB the same way you connect to any other wifi network.

  • How to import a dbf file to oracle

    Hi,
    Please anybody can help me how to imprt an dbf file to oracle.
    Thanks

    Hi,
    I have Created or Added a .DBF file in an Database.
    Not imported a .DBF file, Yes i have exported, imported to and from .dmp file.
    Regards.

  • How to connect to Azure Files (preview) share?

    I enabled Azure Files preview. 
    I follow this article: http://blogs.msdn.com/b/windowsazurestorage/archive/2014/05/12/introducing-microsoft-azure-file-service.aspx
    I created new storage account called loremipsum. Using powershell, I created new storage share called loremipsum-01. Called
    New-AzureStorageDirectory command to test create directory. It succeeded.
    I went to command prompt and called this command:
    net use z: \\loremipsum.file.core.windows.net\loremipsum-01 /u:loremipsum blablablablablablamyaccesskey==
    Result:
    System error 64.
    Network name is undefined.
    How should I connect to this share, so I can use it as mapped folder in explorer?

    Answer here:
    http://stackoverflow.com/questions/26820246/how-to-connect-to-azure-files-preview-share :)

  • Does anyone know how to connect with an external modem and AOL service?

    i just got the macbook yesterday and the modem came today, and i cannot figure out how to connect with an AOL account using the external modem. does anyone know how, or have the same problem??
    Macbook 1.83Ghz White   Mac OS X (10.4.7)  

    Hi MacMan2006! And Welcome To Discussions!
    Do you have the AOL software installed?
    When you open System Preferences > Network > Location: Automatic & at Show: is there an option to select External Modem?
    If so, is your Modem Model listed?
    ali b

  • Connect to dbf file from jsp with servletexec??

    I am trying to connect to a dbf file from a jsp page on an win2003Server with ServletExec. But i get the exception "no suitable driver".
    It works fine with the exact same code and file on my winxp machine. This is the connectionstring: url = "jdbc:odbc:;DRIVER=Microsoft dBase VFP Driver (*.dbf);Sourcedb=E:\\Data\\der\\Solutions;Sourcetype=dbf";
    I can create a "Microsoft dBase VFP Driver" odbcConnection from the controlPanel and than use the connection from MicrosoftAccess and it works as it should. But I can't use it from the jsp code like this: url="jdbc:odbc:testdriver" .
    It feels like I am missing something in servletexec. Like a classpath to the odbcdriver. But in all my other installations I have not done anything more than installed the servletexc correctly and added the classpath for parser.jar and jaxp.jar.
    Am I missing something here???
    Zoktrax

    Try putting a Class.forName( "my.jdbc.DriverClass" ) before DriverManager.getConnection( url, user, password ), where "my.jdbc.DriverClass" is the fully-qualified class name of the JDBC driver class. I think that JDBC driver classes have static initializers that register the driver class with the DriverManager. I had a similar problem and the Class.forName( ) fixed it.
    If that doesn't work, double-check your URL.
    - Jesse

  • Heterogeneous Services & Oracle Generic Connectivity For DBF file?

    Dear All,
    Can We Create dbf file directly means without using CSV file?
    Can we use Heterogeneous Services & Oracle Generic Connectivity for creating dbase DBF file or Writing in dbase DBF file?
    I have used it for Excel and Access for connectivity with Oracle 9i
    but I dont have any idea about dbase DBF file?
    Any help in this reagards will be highly appriciatalble.
    Thanks
    Rana

    HSODBC/DG4ODBC is generic connectivity and you find the generic setup in:
    Note.109730.1 How to setup generic connectivity (HSODBC) for 32 bit Windows (Windows NT, Windows 2000, Windows XP, Windows 2003)
    There is nothing sepcial for DBF's. Just define a system ODBC DSN using a DBASE ODBC driver pointing to the DBF file.
    The rest is absolute similar to the note.
    If you have already a running HSODBC/DG4ODBC the quickest test is to just define a new system dsn for the DBF file, then change in the init>hsodbc/dg4odbc>.ora file the HS_FDS_CONNECT_INFO parameter pointing to the newly created system DSN. Last step is within the Oracle db to define a database link.

  • How to connect to a hard drive on a internet box (afp ?)

    hello everyone
    I have a problem since I am on Lion with my internet box. I pluged a hard drive on it. On my others computers (on Windows, icluding my mac with bootcamp)
    The Lion is unable to connect the HD. I can see it on my finder (but not everytime), but it can't connect with it.
    I thaught I found the solution here (in french):
    http://support.apple.com/kb/HT4700?viewlocale=fr_FR
    But it didn't work!
    I think my probleme is a the step 3 where I have to make a AFP connection. What is it exactly?
    Is it the right solution?
    Thanks for help.

    That would depend on how your internet box shares out the hard drive. If it doesn't support AFP, then using AFP to connect to it won't work at all. If it does support afp, then go to the Finder and select Connect to Server from the Go menu. For the address, use afp://ip.address.of.router.
    You Also might want to check your router help files for how to connect to shared drives.
    Apple had to drop Samba, the old SMB/CIFS implementation of Windows File sharing. They wrote their own implementation, but it might not be completely compatible with how your router is sharing out the hard drive.

  • Connectivity with DBF of Foxpro

    Can anyone guide me how to connect dbf of Foxpro through Heterogeneous Connectivity.
    regards,
    Irfan

    oracle db running on Windows? Use HSOLESQL. The Foxpro OLEDB driver works well with HSOLEDB whereas the MS Foxpro ODBC driver lacks ODBC conformance level/functionality.
    On a Unix platform? You need to find an ODBC driver vendor for Visual Foxpro on Unix.

Maybe you are looking for

  • Should I buy Ipod Touch 2 G. 16 gb...

    I have a question. Do you guys think it would be a good idea to buy a Ipod Touch, when I already have a Ipod Classic 80gb. I'm mostly thinking about buying it for all the great apps and games.

  • Error Message RunDLL (djhweold.dll not found)

    I have a HP Pavilion g6-1d78nr Notebook PC with windows 7 Home Premium. A few months ago I got an Internet browser redirecting virus. I had alot of difficulty removing it with my norton so I used other software such as spybot found online. One of the

  • Reprice at time of billing - only certain condition types not all of them

    Hi, My client has a requirement to reprice certain condition types at time of billing. Is there a way to reprice certain conditions at time of billing document creation and leave other conditions as they are copeid over from the sales document? It do

  • How do you show usernames greater than 8 characters in   /usr/ucb/ps ?

    Help! I am trying to write a process kill script, or rather, modify our linux ones for solaris. The problem is a catch-22 : a) the string I need to grep for is hidden way up the command string hence I cannot use 'ps', I need to use /usr/ucb/ps -auxww

  • Movement Types for Vendor Consignment Stock

    Hi I have the following scenario I have 2 company codes R000 and R100 In R000 I have a store at which all my stock is held - Plant S000 I have a Plant in CoCode R000 that requests stock W000 I also have a plant in CoCode R100 A000.  This plant alsot