IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Insert into DB error

    Posted Wed July 23, 2003 07:02 PM

    I am trying to map some string values into a SQL 2000 DB. I am using the execSQL service to do the insert how it keeps erroring out with the following error message. There are two fields in the DB that are “money” datatypes. The $dbParameterTypes in the execSQL service is passing the values in as “varchar”. What other parameter types can I use so that these values go in properly?

    Disallowed implicit conversion from data type nvarchar to data type money, table ‘dbo.tblInvoice’, column ‘InvoiceTotal’. Use the CONVERT function to run this query.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 2.  RE: Insert into DB error

    Posted Wed July 23, 2003 07:11 PM

    Set integer instead of varchar in $dbParameterTypes,since you are trying to insert money relates numeric datatype.

    HTH.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: Insert into DB error

    Posted Wed July 23, 2003 07:19 PM

    Thanks for your quick response. When I tried ‘integer’ the values went in null. However, it worked with “numeric” set as the datatype. Thanks for your help.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Insert into DB error

    Posted Wed July 23, 2003 07:22 PM

    But according to documentation and my earlier work we successfully passed with ‘integer’ datatype.

    Any way good to know various types though.

    Thanks,


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Insert into DB error

    Posted Wed July 23, 2003 11:42 PM

    Hi Tony,
    I am having a similar problem, numeric insertions always inserts null. I gave the paramtypea as numeric…

    please help
    KS


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: Insert into DB error

    Posted Wed July 23, 2003 11:52 PM

    KS,

    Did you tried with “Integer” datatype as well?


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods