webMethods

webMethods

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.  SQL Stored Procedure Call

    Posted Wed August 11, 2004 10:37 PM

    Hi all,

    We are STILL using IS 4.6 and we are trying to call a SQL 2000 Stored Procedure using CALL in pub.db. One of the input values to stored procedure is Datetime, when we call the sp with all the input values I am getting an error message
    “[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Error converting data type nvarchar to datetime.”

    Any body experienced this one, please help us figure this problem.

    Thanks,
    Muru.


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


  • 2.  RE: SQL Stored Procedure Call

    Posted Thu August 12, 2004 08:40 AM

    Sounds like SQL Server can’t parse the format of the datetime-parameter. If you pass a datetime-value as string, SQL Server will try to parse this based on regional settings. In my experience the safest way to pass a date-string to SQL Server is as “yyyy-mm-dd hh:nn:ss”.


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


  • 3.  RE: SQL Stored Procedure Call

    Posted Thu August 12, 2004 05:05 PM

    Martin,

    Thats exactly how we are passing the date string. Here is the date format yyyy-MM-dd HH:mm:ss

    Thanks,
    Muru.


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