Pervasive
Sign in | Join | Help
in

Problem: VS 2008 Table Adapter Configuration Wizard

Last post 06-30-2008 11:15 PM by Mirtheil. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 06-27-2008 7:20 PM

    • Linton
    • Not Ranked
    • Joined on 03-30-2008
    • Posts 5

    Problem: VS 2008 Table Adapter Configuration Wizard

    When using the Table Configuation wizard in VS2008 and VS2005 Select and Insert commands are created but Update commands are not created. Anyone know if this is a bug or by design?

    TIA

  • 06-27-2008 7:53 PM In reply to

    Re: Problem: VS 2008 Table Adapter Configuration Wizard

     I believe it's by design.  I can't say that I've run across it but I don't use the wizard either.

     

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

    • Linton
    • Not Ranked
    • Joined on 03-30-2008
    • Posts 5

    Re: Problem: VS 2008 Table Adapter Configuration Wizard

    Thanks for the response Mirheil,

     It appears that the Providers are simply interfaces into ODBC? Not sure but I'm wondering if you can send a short snippet of what one of your Update statements look like...standard SQL update statements don't seem to work. One caveat is that parameters are specified with a '?' symbol rather than the standard '@' symbol. First time working with Pervasive Provider but they seem to have strayed for what has been normal for MSSQL/ORACLE/et. el. databases when it comes to implementing their Provider.

    Linton

  • 06-30-2008 12:24 PM In reply to

    • Linton
    • Not Ranked
    • Joined on 03-30-2008
    • Posts 5

    Re: Problem: VS 2008 Table Adapter Configuration Wizard

    Okay, after further reading, looks like this could be a bug:

    "PsqlCommandBuilder Object: Gets the automatically generated PsqlCommand object required to perform updates on the database when an application calls Update on the PsqlDataAdapter." -- Pervasive ADO.NET provider docs.

    Key words are "automatically generated" as I would expect from an ADO.NET Provider. Looks like any communication with support costs $250US. Anyone know if this fee is waived for bugs?

    TIA,

    Linton

  • 06-30-2008 7:33 PM In reply to

    Re: Problem: VS 2008 Table Adapter Configuration Wizard

    Actually the provider follows the standards for ADO.NET.  PSQL does use the ? instead of @ but it has always done that.

    A typical update statement with parametes would be :

    UPDATE table SET field = ? WHERE field2 = somevalue

     

    You can open a ticket. It'll cost $250 USD but will be refunded if it's a defect.  

     

    Mirtheil
    I do not answer question via email. Please post questions in the forum.
  • 06-30-2008 9:36 PM In reply to

    • Linton
    • Not Ranked
    • Joined on 03-30-2008
    • Posts 5

    Re: Problem: VS 2008 Table Adapter Configuration Wizard

    Thanks for you quick response. I've opened a support ticket because I'm still having trouble getting the Insert and Update commands to be generated by the provider when used with the Pervasive Provider: I've tested MSSQL, Oracle, ODBC providers and they work as expected, only the Pervasive provider (when used with the wizard) does not create these...hopefully I will not be charged :-)

     I'll post any information I find out from support here...stay tuned...

    Linton

  • 06-30-2008 11:15 PM In reply to

    Re: Problem: VS 2008 Table Adapter Configuration Wizard

    I'm curious.  I'm going to try it too.  What error do you get?  Also, does it happen with all tables? 

     

    Mirtheil
    I do not answer question via email. Please post questions in the forum.
Page 1 of 1 (7 items)
© 2008 Pervasive Software Inc. All Rights Reserved.