cancel
Showing results for 
Search instead for 
Did you mean: 

JDBC connection string

Former Member
0 Kudos

I have to connect SQL Server 2008 R2 database from PO 7.4 system. I know regarding updation of jdbc adapter by driver files of database.

I have already downloaded sqljdbc4.jar file.

I would like to know is there any format in which connection string needs to be formed? Also, in ID while configuring the jdbc receiver adapter to send data to SQL Server 2008 R2 database from PO, what should be specified in Database connection in JDBC Driver and Connection?

Pls tell. thx.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

The connection string goes something like:

jdbc:JSQLConnect://[sql server hostname]:1433;databaseName=[database name]

You might also like to add parameter on the Advanced Tab / Advanced Mode to log the SQL statement:

logSQLStatement | true

Check the JDBC FAQ 831162 for more info.

Former Member
0 Kudos

My scenario is proxy sync to PI to JDBC sync

On Database, stored procedure is called with 3 input and 1 output parameter.

I defined request JDBC msg structure for stored procedure

How to define the response JDBC data type for getting back the stored procedure response from database in PI?

Any ideas, plz. Thx.

Former Member
0 Kudos

Your response message structure can be like:

MT_[your naming convention]_response

     row          (unbounded)

          [stored proc recordset field 1]

          [stored proc recordset field 2]

          etc..



Have you tried already, what part are you stuck, or what error message do you see?


Here is a thread which may help you...



http://scn.sap.com/thread/3348826

Answers (1)

Answers (1)

former_member184619
Active Contributor
0 Kudos

Hi Stewart,

It goes like this:

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

Connection:

jdbc:sqlserver://<IP of SQL Server>;user=<username of SQL Server>;password=<Password>;databaseName=<Database Name>

SAP note used to test FTPJDBC connection - 1085539

How to test JDBC scenario in SAP PI

Regards,

Sachin Dhingra