29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

differently than DB2 and Oracle, the Online Catalog sample application pages<br />

will not work on a SQL <strong>Server</strong> database created in the same manner. However,<br />

for illustration purposes, here is the command to create a SALESAPP database<br />

on a SQL <strong>Server</strong>.<br />

CREATE DATABASE [salesapp] ON (NAME = N'salesapp_Data', FILENAME =<br />

N'C:\Program Files\Microsoft SQL <strong>Server</strong>\MSSQL\data\salesapp_Data.MDF' ,<br />

SIZE = 1, FILEGROWTH = 10%) LOG ON (NAME = N'salesapp_Log', FILENAME =<br />

N'C:\Program Files\Microsoft SQL <strong>Server</strong>\MSSQL\data\salesapp_Log.LDF' , SIZE<br />

= 1, FILEGROWTH = 10%)<br />

6.2.3 Connecting Studio Site Developer to the database<br />

Now that we have a database to work with we need to show Studio Site<br />

Developer where it is. To do this, we create a connection to the database.<br />

1. Open the Data perspective by selecting Window -> Open Perspective -><br />

Data.<br />

2. Right-click anywhere in the DB <strong>Server</strong>s view and select New Connection.<br />

Figure 6-3 New connection<br />

Chapter 6. Accessing databases 159

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

Saved successfully!

Ooh no, something went wrong!