IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
Expand all | Collapse all

Execution of Maps connecting to SQL Server from Design Studio

  • 1.  Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/17/11 12:49 PM

    Originally posted by: rcmsf


    Hi, When executing WTX maps with cards connecting to SQL SERVER, I have the following message:

    <2364-2564>: **ERROR** Failed to create session
    <2364-2564>: Returned status: (-3) No error text found

    The card has a very simple functionality of inserting a job log record in the SQL Server database.
    I know that the user executing this has dbo privileges on the database.

    Any help will be really useful.

    Thanks,
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/17/11 12:52 PM

    Originally posted by: rcmsf


    Also to add to the above this is wtx 8.2 connecting to SQL Server 2005.

    Thanks,
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/18/11 12:23 PM

    Originally posted by: jvanboga


    can you give more information?

    Assume its an output card. What are you using to define your connection? Command line or mdq file?
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 4.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/18/11 12:46 PM

    Originally posted by: rcmsf


    This is an output card and command line is:

    -DBTYPE SQLSVR7 -SOURCE MBIXDEV1\\RCMglblstg -PROC rso_job_log_insert -USER tstusr -PASSWORD pwrd -TRACE dtO20SQLInsert.dbl

    Any help or hints will be definitely useful.

    Thanks,
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 5.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/18/11 02:11 PM

    Originally posted by: jvanboga


    Hmmm...

    are the other maps running, on the same machine, that point to the same server/table? if so do they use the same id/pw?
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 6.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/18/11 02:18 PM

    Originally posted by: rcmsf


    Hi jvanboga,

    Thanks for your quick responses. And I should have mentioned this before:

    All the current maps connect to Oracle and Sybase Databases and this is the first time we are trying to connect to the SQL Server 2005 database. I have tested the DB users ability to create temp tables on the database and ability to log into the database and these are working fine. These were tested through the SQL Server Management Studio.

    Are there any specific startup configurations on the DB side or the map that I should be checking?
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 7.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/18/11 02:40 PM

    Originally posted by: jvanboga


    Has someone logged on to the machine to see if the machine can locate the SQL Server? One of the problems in our environment is that people design/test on machine A deploy to machine B. If A and B have differing rights....

    I'm not familiar with SQL Sever but with Oracle there's a TNS file that must contain the SID information before the DB connection can be made. For SQL Server it might be a simple as updating the ODBC.

    You could try configuring the connection using the DBID. Then see if you can first connect to the DB then, if successful, write a select all from the table. If you can generate a tree it might be that you need to define a key when building the tree.

    I'm kind of a hack but let me know if you need more and I'll do my best for you.
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 8.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/18/11 02:55 PM

    Originally posted by: rcmsf


    I am still in the first step of development in this case. The connection from MDQ to generate the Type tree is fine. Type tree was created. However, when running the map the sessions creation failed and am at a loss in finding the reason. Will keep on looking....Thanks for your help.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 9.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/18/11 03:25 PM

    Originally posted by: jvanboga


    What happens if you just run the map as a stand alone?
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 10.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/18/11 03:26 PM


  • 11.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/21/11 08:35 AM

    Originally posted by: TarunB


    This sounds to me like a controlled error from the stored procedure call. Do you have access to the stored procedure code? I would be tempted to analyse the code and work out what is causing this error message to be generated.

    The Interfaces file must have already been updated because the connection is working.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 12.  Re: Execution of Maps connecting to SQL Server from Design Studio

    Posted 02/21/11 09:27 AM

    Originally posted by: jvanboga


    Granted I'm not the expert here but from my limited experience the stored procedure would return a piece of data with an error code. Of course that may depend on the procedure being called.

    That said, typically, though not always, DB adapter return codes are -1001 thru -1109. We'd really need to see more of the tace file to determine what's really going on here.

    I suggest running the executed map pointing to the defined MDQ file instead of using the cmd line. That will help identify if there is a problem with the connnection or the cmd line. I'd also confirm that when the type tree was defined there was a key identified. If a key has been defined and the map fails the same way then it could be a data format issue.

    Finally, it looks like a procedure is being called to perform a DB insert. Here we write to the tables directly using one of two methods. Let the map write to the table (no proc) or write the output to a file and call an SQL Loader script. We only use the later when writing larger files to tables. We have had little luck executing procedures as output cards. They are more often called as input. And then the dynamically defined type tree needs to be adjusted because the data is not returned in the expected format.
    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender