13.07.2015 Views

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SAS/ACCESS 9.2 for Relational Databases: Reference, Fourth Edition

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

The <strong>ACCESS</strong> Procedure <strong>for</strong> <strong>Relational</strong> <strong>Databases</strong> 4 Access Descriptors 907Altering a DBMS table might invalidate descriptor files that are based on the DBMStable, or it might cause these files to be out of date. If you re-create a table, add a newcolumn to a table, or delete an existing column from a table, use the UPDATEstatement to modify your descriptors so that they use the new in<strong>for</strong>mation.Rules that apply to the CREATE statement also apply to the UPDATE statement.For example, the SUBSET statement is valid only <strong>for</strong> updating view descriptors.The following statements are not supported when you use the UPDATE statement:ASSIGN, RESET, SELECT, and UNIQUE.See Table A1.1 on page 894 <strong>for</strong> the appropriate sequence of statements <strong>for</strong> updatingdescriptors.Using Descriptors with the <strong>ACCESS</strong> ProcedureWhat Are Descriptors?Descriptors work with the <strong>ACCESS</strong> procedure by providing in<strong>for</strong>mation about DBMSobjects to <strong>SAS</strong>, enabling you to access and update DBMS data from within a <strong>SAS</strong>session or program.There are two types of descriptors, access descriptors and view descriptors. Accessdescriptors provide <strong>SAS</strong> with in<strong>for</strong>mation about the structure and attributes of a DBMStable or view. An access descriptor, in turn, is used to create one or more viewdescriptors, or <strong>SAS</strong> data views, of the DBMS data.Access DescriptorsTypically, each DBMS table or view has a single access descriptor that providesconnection in<strong>for</strong>mation, data type in<strong>for</strong>mation, and names <strong>for</strong> databases, tables, andcolumns.You use an access descriptor to create one or more view descriptors. When creating aview descriptor, you select the columns and specify criteria <strong>for</strong> the rows you want toretrieve. The figure below illustrates the descriptor creation process. Note that anaccess descriptor, which contains the metadata of the DBMS table, must be createdbe<strong>for</strong>e view descriptors can be created.

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

Saved successfully!

Ooh no, something went wrong!