Skip to Content

Cant save in SQL SERVER.

Hi all.

i have a BMP that save data in a SQL Server Table from a XML document.

the BMP finish perfect but when i check in SQL there no any data.

I am using the next estructure:

<?xml version="1.0" encoding="UTF-8"?>

<sp_jdbc_MT>

<dbTableName action="INSERT">

<table>TEST</table>

<access>

<SALUDO>HI</SALUDO>

<NOMBRE>JAMES</NOMBRE>

</access>

</dbTableName>

</sp_jdbc_MT>

my JDBC Comunication channel has the next configuration:

JDBC DRIVER: com.microsoft.jdbc.sqlserver.SQLServerDriver

CONNECTION:jdbc:microsoft:sqlserver://srv-cap01-adm:1433;DatabaseName=TEST

any idea??

Thanks & Regards

Rodrigo

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 11, 2006 at 04:33 PM

    Hi,

    Go to RWB->Message Monitoring->Message Display tool and Audit log for error analysis

    Also check RWB->Adapter Monitoring->JDBC communication channel for errors..

    I think the error is in the document format,which goes into database i.e which calls JDBC adapter.

    This format should be like this-

    http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

    what is your table name ? Is it TEST ?

    if so structure should be

    <?xml version="1.0" encoding="UTF-8"?>

    <sp_jdbc_MT>

    <<b>TEST</b> action="INSERT">

    <table>TEST</table>

    <access>

    <SALUDO>HI</SALUDO>

    <NOMBRE>JAMES</NOMBRE>

    </access>

    </dbTableName>

    </sp_jdbc_MT>

    Hope this helps,

    Regards,

    Moorthy

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      Have you already deployed the drivers (msbase.jar, mssqlserver.jar, msutil.jar). If yes,

      Driver:

      com.microsoft.jdbc.sqlserver.SQLServerDriver

      Connection for MS SQL Server:

      jdbc:microsoft:sqlserver://<server>:1433;databaseName=<dbname>

      If you are using the new SQL Server 2005 jdbc driver (sqljdbc.jar). Setup is basically the same, except the driver is now:

      com.microsoft.sqlserver.jdbc.SQLServerDriver

      And the URL is slightly different as well:

      jdbc:sqlserver://host:1433;DatabaseName=name

      Regards,

      Bhavesh

  • Posted on Oct 12, 2006 at 03:06 AM

    Also,

    Check by executing the following query from your DB client and see if data insertion is succesful,

    insert into TEST(SALUDO,NOMBRE) values('HI','JAMES');

    Also, make sure that the ISOLATION LEVEL FOR TRANSACTION HANDLING is SERIABLIZABLE in the JDBC adapter.

    Regards,

    bhavesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.