13.01.2013 Views

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

OpenEdge Data Management: DataServer for Microsoft SQL Server

SHOW MORE
SHOW LESS

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

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

Configuring the <strong>Data</strong><strong>Server</strong><br />

Maintaining a schema holder<br />

5–22<br />

The <strong>Data</strong> Administration provides a set of <strong>Data</strong><strong>Server</strong> utilities that you can use to maintain a<br />

schema holder. Chapter 7, “The <strong>Data</strong><strong>Server</strong> Tutorial,” describes these utilities.<br />

Note: Keep in mind that you must have SELECT privileges on certain data source objects to<br />

update a schema holder. See the “Permission requirements” section on page 5–15 <strong>for</strong><br />

details.<br />

If you make changes to a MS <strong>SQL</strong> <strong>Server</strong> database, make sure to update the associated schema<br />

holder to reflect those changes if you want them to be accessible to a <strong>Data</strong><strong>Server</strong> application.<br />

Note that you do not need to update the schema holder if the application will never access data<br />

objects affected by the change. For example, if you add a table object that a <strong>Data</strong><strong>Server</strong><br />

application will never access, you do not need to update the schema holder.<br />

Each time that you update the schema holder, you must recompile your <strong>Data</strong><strong>Server</strong> application<br />

(.p and .w files) to generate new r-code.<br />

Updating a deployed schema holder<br />

The guidelines and techniques that apply to deploying an <strong>OpenEdge</strong> database also apply to<br />

deploying a schema holder <strong>for</strong> a MS <strong>SQL</strong> <strong>Server</strong> database. However, if you make any changes<br />

to the data source schema, make sure to update its schema holder. There are two techniques <strong>for</strong><br />

updating a deployed schema holder:<br />

• Allow your users to use the <strong>Data</strong><strong>Server</strong> Update/Add Table Definitions utility.<br />

• Send a new data definition file <strong>for</strong> the schema holder. Your users can use the <strong>Data</strong><strong>Server</strong><br />

Delete Schema utility to empty the original schema holder. They can then load the new<br />

data-definition file into the schema holder.<br />

To update a deployed <strong>Data</strong><strong>Server</strong> application:<br />

1. Run an <strong>SQL</strong> script to make changes to the MS <strong>SQL</strong> <strong>Server</strong> database.<br />

2. Run the Update/Add Table Definitions utility on one schema holder.<br />

3. Recompile code against the updated schema holder to build new r-code.<br />

4. Send out copies of the new .r files to your users.<br />

5. Distribute copies of the new schema holder .db and .bi files to your users. You must use<br />

the PROCOPY utility to distribute them.

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

Saved successfully!

Ooh no, something went wrong!