Pervasive
Sign in | Join | Help
in

Select query returns null or blank for Xp$Misc in Version 9 but not v8.

Last post 05-29-2008 3:46 AM by BazE30. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 05-28-2008 11:37 AM

    • BazE30
    • Not Ranked
    • Joined on 03-14-2006
    • Posts 4

    Select query returns null or blank for Xp$Misc in Version 9 but not v8.

    Hi,

    I've written a program for Pervasive Version 8 which had been working for the last 2 years, upgraded to Version 9.5 yesterday and the below code returns null or just blank depending on the ADO connection properties and will not return the procedure details.  If I copy this select statement into the control centre and run it, it does returns the procedure content.  I'm at a loss as to what has changed for ODBC interactions now and has anyone else come across this???  I've changed all connection properties and cannot make any change to the result.  See below.

    Pervasive V9.5

    Visual Basic 6 Service PAck 6.

    Windows XP Professional 

    Any help would be appreciated!

    Barry
     


        Dim ors As ADODB.Recordset
        Set ors = New ADODB.Recordset
        ors.Open "SELECT Xp$Name, Xp$Flags, Xp$Misc FROM X$Proc WHERE Xp$Name = 'del_ST_QtyBreak' ",    pConn, adOpenDynamic, adLockReadOnly
        Debug.Print ors.Fields("Xp$Name").Value
        Debug.Print ors.Fields("Xp$Flags").Value
        Debug.Print ors.Fields("Xp$Misc").Value
        Set ors = Nothing

  • 05-28-2008 3:48 PM In reply to

    Re: Select query returns null or blank for Xp$Misc in Version 9 but not v8.

    What is your connection string used for pConn?

     

    Mirtheil
    I do not answer question via email. Please post questions in the forum.
  • 05-29-2008 3:46 AM In reply to

    • BazE30
    • Not Ranked
    • Joined on 03-14-2006
    • Posts 4

    Re: Select query returns null or blank for Xp$Misc in Version 9 but not v8.

    Hi,

    Its

     pConn.Open "Driver={Pervasive ODBC Client Interface};ServerName=dbserv;dbq=AA"

    I've tried clientside and serverside cursors. 

    Thanks

    Barry


     

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