Pervasive
Sign in | Join | Help
in

DTI - ODBC on Vista 64bit

Last post 06-11-2008 2:08 AM by Stefan Gartz. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 06-08-2008 2:46 PM

    DTI - ODBC on Vista 64bit

    Hi!
    I have DTI rutines in c++ to create database and DNS that works on win XP 
    both on workgroup and server

    I am trying to make them work on 64bit Vista with Pervasive 10.10 workgroup but fails on PvCreateDSN, P_E_ACCESS_RIGHT.

    I know that the 32-bit ODBC administrator has to be used when manually configure ODBC but how to use DTI.
    I have not tried on 32bit Vista.
    simplified code:
    *********
    PvConnectServer(serverName,userName,password, &hConnection);
    pvDropDatabase(hConnection, oldDBName,0);
    PvDeleteDSN(hConnection, oldDSNName));

    pvCreateDatabase(hConnection,newDBName,dictPath,dataPath, dbFlags);
    PvCreateDSN(hConnection,newDSNName), "Pervasive ODBC Engine
    Interface",newDBName,  openMode); <- gives P_E_ACCESS_RIGHT
    *********

    I am running as administrator.
    Is there someone who can tell me how to get it working

  • 06-08-2008 4:18 PM In reply to

    Re: DTI - ODBC on Vista 64bit

    Are you running the DSN code locally?  if not, does it work locally? 

    Are you linking to the 32 bit or 64 bit DTI libraries?   

    Is UAC turned on?   If so, turn it off.  Does the error still occur? 

     

    Mirtheil
    I do not answer question via email. Please post questions in the forum.
  • 06-11-2008 2:08 AM In reply to

    Re: DTI 32bit - ODBC on Vista 64bit

    I run locally on vista 64bit.
    I do not run any pervasive 64bit components.
    I have installed PSQL-Workgroup-10.10.056.000-win.x86 and things works better.
    and most of the DTI works.
    The remaining problems so far is:

    ::PvDeleteDSN does not find a existing DSN.

    CDatabase db;
    db.Open(OdbcConnectString); -> Prompt:
    "Pervasive ODBC Engine Interface
    Connection failed because you attempted a DSN less connection, Please...."

    In both cases there is a DSN when you look in C:\Windows\SysWOW64\odbcad32.exe

    **************
    After installing PSQL-Workgroup-10.10.057.000-win.x86 there is no more problems for  me with DTI
    Case closed !!!
     

     

Page 1 of 1 (3 items)
© 2008 Pervasive Software Inc. All Rights Reserved.