To create a database connection using NetWeaver

Source: Internet
Author: User
Use

Use this procedure to create a connection to the database with your use for your persistent entities. Steps Create a new database connection

Choose ...

1. Choose window®show view®other.

2. Choose Data®database Explorer in the show View dialog.

3. Choose OK.

4. Select connections in the Database Explorer.

5. Choose New Connection from the context menu. The New Connection dialog opens.

6. Select a database vendor, for example, if you are using the System database server, select maxdb®7.6.

7. Complete the Connection URL details fields:

A. Enter your database name, for example, if you are using the system database, JP1.

B. Enter the JDBC driver class, for example, the system driver class Com.sap.dbtech.jdbc.DriverSapDB.

C. Enter the location of the JDBC driver class on the file system, for example, if your wish to use the system driver, <sap DB installation Location>/programs/runtime/jar/sapdbc.jar.

d. Enter the connection URL, for example, jdbc:sapdb://<db Host name>/jp1?timeout=0.

8. To use the predefined system datasource, enter Sapdemo as the user name for the database.

9. To use the predefined system datasource, enter Sapdemo as the password for the database.

If the Persistence.xml in your application are empty, the persistence container assumes you are your using the default Datas Ource. Thus, you must supply the Sapdemo user name and password to use the predefined database schema and access the predefined T Ables.

Choose Finish. The database connection appears in the Connections tree in the database Explorer.

The New Connection Dialog connected to an existing database connection

1. To connect to a existing database connection, select the connection in the database Explorer.

       2.      Choose Connect from the context menu.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.