Exforsys.com
 
Home Tutorials WebSphere
 

WebSphere V5.0 : Deploying to the database

 

WebSphere V5.0 : Deploying to the database

In this tutorial you will learn about, WebSphere V5.0 : Deploying to the database and Generating an SQL DDL file.



Deploying to the database

You can define, generate, and apply SQL Data Definition Language (DDL) statements in the Data Definition view of the Data perspective.


Data Definition Language (DDL) is a subset of SQL. It is a language for describing data and its relationships in a database. Use the Generate SQL DDL diaog to generate SQL DDL statements used to recreate a database object.

You might want to generate SQL DDL statements for database objects for the following reasons:

* To keep a snapshot of what the database looks like.
* To set up a test system where the database acts like the production system but contains no data.


Generating an SQL DDL file

You can generate an SQL DLL file for an object. SQL DDL statements are used to change the structure of the database, such as define a new table, change the definition of a table, and remove a table.

Once you have created data definitions in your Data perspective, you can generate the SQL DDL file for the data object as follows:

1. If the file that you want to re-generate is currently open in an editor, you will be prompted to reload the changes. At this time, you need to decide whether or not you want to keep the changes.


2. From the pop-up menu of the database node, table, schema, or the view objects, click Generate DDL to open the Generate SQL DDL dialog:


Generate DDL

3. Provide the name and target location for the generated file. By default, it is named after the currently selected data object, and placed in the same project.


4. Select whether to use fully qualified names (including the target schemas for the statements).


5. Select whether to generate delimited identifiers. Place quotation marks around the identifiers.


6. Select whether to generate the associated DROP statement for each CREATE statement contained in the resulting script.


7. Select the Open SQL DDL file for editing when done check box to immediately start editing the file once it is generated:


Generate DDL dialog
 
8. Click Finish to generate the file.
 
DDL Editor

The SQL DDL script is now visible under the target project:
 

SQL DDL Script

_________________


Author: Mikalai Zaikin. Please Click Here to visit Authors site for any updates and changes to the study notes.



Read Next: WebSphere V5.0 : Applying DDL scripts to a remote database



 

 

Comments



Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape