16.10.2015 Views

Getting Started with WebSphere Application Server

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

74 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>WebSphere</strong> <strong>Application</strong> <strong>Server</strong> Community Edition<br />

');<br />

Listing 4.1 - SQL statements to run in the new database pool deployed<br />

To execute the above statements, follow these steps:<br />

1. From the Console Navigation under the Services folder, click Database Pools. In<br />

the Run SQL portlet at the bottom of your screen (you may have to scroll down),<br />

input the created data source jdbc/demods in the Use DataSource drop down<br />

list. Then input the SQL statements in Listing 4.1 above and click the Run SQL<br />

button as shown in Figure 4.11.<br />

Figure 4.11 - Running SQL using the Run SQL portlet<br />

You should see the “SQL command(s) executed successfully” message. If you are<br />

using Internet Explorer there is a known issue where there is no response after<br />

clicking the Run SQL button. If that's the case, please try another browser.<br />

2. Verify the data was inserted by issuing a select * from employees<br />

statement. You should receive an output as shown in Figure 4.12.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!