使用NetWeaver创建数据库连接
2006-12-27 21:55
483 查看
用途
You use this procedure to create a connection to the database you use for your persistent entities.步骤
创建新的数据库连接
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 you 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 is empty, the persistence container assumes you are you using the default datasource. Thus, you must supply the SAPDEMO user name and password to use the predefined database schema and access the predefined tables.
10. Choose Finish. The database connection appears in the Connections tree in the Database Explorer.
The New Connection Dialog
连接到已存在的数据库连接
1. To connect to an existing database connection, select the connection in the Database Explorer.2. Choose Connect from the context menu.
相关文章推荐
- 使用NetWeaver创建数据库连接
- 使用NetWeaver创建数据库连接
- 使用NetWeaver创建数据库连接
- 使用NetWeaver创建数据库连接
- 使用Visual Studio的动态连接库创建通用数据库连接对话框
- 使用VS的动态连接库创建通用数据库连接对话框
- ADO.NET编程(2)使用Visual Studio 2010连接向导创建数据库连接
- 【SQLite入门】使用SQLite、创建数据库、创建表、使用Jdbc连接SQLite
- BaseDao加强版,可连接sqlserver和mysql,使用时直接在main类调用即可,需在src目录下创建一个properties后缀的文件夹,用来存放数据库名称和地址,具体如下
- ADO.NET笔记——使用Connection连接数据库,使用Command对象的ExecuteReader()方法创建DataReader对象返回多行数据
- 创建Accress 数据库连接文件UDL/如何使用 ADO 的数据链接文件
- SQL2008 使用新创建的身份验证连接到数据库后无法访问具体数据库
- Linq to SQL如何使用Visual Studio 2012创建DBML文件并连接到数据库表
- Data Grip 使用--->创建数据库连接
- 使用Oracle创建数据库,SQL developer连接数据库简要步骤
- 一步步学习SPD2010--第七章节--使用BCS业务连接服务(2)--创建数据库外部数据源
- 数据库连接及简单模型的创建使用(模板引擎切换)
- 使用Oracle SQLDeveloper连接数据库并创建用户
- Eclipse使用(七)—— 使用Eclipse创建JavaWeb项目并使用JDBC连接数据库实现简单的登陆注册功能
- Adobe AIR中使用Flex连接Sqlite数据库(1)(创建数据库和表,以及同步和异步执行模式)