home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / vxcliser.zip / VRCS.1 / DBADMIN.HLP (.txt) < prev    next >
OS/2 Help File  |  1994-12-23  |  25KB  |  731 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. General help ΓòÉΓòÉΓòÉ
  3.  
  4. The database administrator's main menu contains the following items. 
  5. Double-click on any highlighted word for more information. 
  6.  
  7. Database  The Database menu contains items which let you perform operations on 
  8.           databases. 
  9.  
  10. Table     The Table menu contains items which let you perform operations on 
  11.           tables in a database. 
  12.  
  13. View      The View menu contains items which let you control the database 
  14.           administrator's windows. 
  15.  
  16. Options   The Options menu contains items which let you configure the database 
  17.           administrator. 
  18.  
  19. Help      The Help provides access to information about the database 
  20.           administrator. 
  21.  
  22. For indepth information about the database administrator, see the chapter 
  23. called Using the database administrator in the VX-REXX Database Object's Guide. 
  24.  
  25.  
  26. ΓòÉΓòÉΓòÉ 2. Keys help ΓòÉΓòÉΓòÉ
  27.  
  28. Ctrl+O    Opens a database 
  29.  
  30. Ctrl+C    Closes a database 
  31.  
  32. Ctrl+Shift+A Creates a database 
  33.  
  34. Ctrl+Shift+D Deletes a database 
  35.  
  36. Ctrl+B    Binds a database 
  37.  
  38. Ctrl+S    Opens the settings notebooks for tables 
  39.  
  40. Ctrl+A    Creates a table 
  41.  
  42. Ctrl+D    Deletes tables 
  43.  
  44. Ctrl+I    Switches to icon view 
  45.  
  46. Ctrl+E    Switches to detail view 
  47.  
  48. Ctrl+M    Toggles between small and normal sized icons 
  49.  
  50. Ctrl+N    Lets you set the include criteria 
  51.  
  52. Ctrl+G    Arranges icons in the main window 
  53.  
  54. Ctrl+R    Refreshes the list of tables 
  55.  
  56. Ctrl+F    Toggles whether tables are listed after a database is opened 
  57.  
  58. Ctrl+L    Sets the list box font 
  59.  
  60. Ctrl+T    Starts logging 
  61.  
  62. Ctrl+P    Stops logging 
  63.  
  64. Ctrl+Shift+Drag Creates foreign key between source and target tables 
  65.  
  66. Dragging onto shredder Deletes tables and views 
  67.  
  68.  
  69. ΓòÉΓòÉΓòÉ 3. The database administrator Main window ΓòÉΓòÉΓòÉ
  70.  
  71. The main window lists the tables in an open database. In Icon view, an icon 
  72. will be displayed for each table and its caption will show its fully qualified 
  73. name. In Detail view, a tabular format is used to display the names, owners, 
  74. types and comments for the tables. 
  75.  
  76. If a database is open, its name will be displayed in the caption of the main 
  77. window. 
  78.  
  79. See also: 
  80.  
  81. Working with databases 
  82. Operating on tables 
  83. Setting the display 
  84. Configuring the database administrator 
  85. The Help menu 
  86.  
  87.  
  88. ΓòÉΓòÉΓòÉ 4. Working with databases ΓòÉΓòÉΓòÉ
  89.  
  90. The Database menu contains items to open, close, create, delete and bind a 
  91. database. 
  92.  
  93. Opening a database 
  94.           Before you can work with a database you must open it using the Open 
  95.           menu item. You will be prompted for a database name, userid and 
  96.           password. If a database is already open, it will be closed 
  97.           automatically before you can open another one. 
  98.  
  99. Closing a database 
  100.           After you have finished working with a database, you can close it 
  101.           using the Close menu item. Open notebooks will be closed and changes 
  102.           will be saved before the database is closed. 
  103.  
  104.           Do not close a database if you are going to shut down the Database 
  105.           Administrator and will be working with the same database when it is 
  106.           restarted. The database will be closed automatically and reopened the 
  107.           next time you start the program. 
  108.  
  109. Creating a database 
  110.           Select the Create Another menu item to create a new database. You do 
  111.           not have to open it immediately after it has been created if you want 
  112.           to continue working with a database which is already open. 
  113.  
  114. Deleting a database 
  115.           Use the Delete menu item to delete a database. You do not need to 
  116.           close the database you have open if you want to delete it. It will be 
  117.           closed automatically. 
  118.  
  119. Binding a database 
  120.           Use the Bind menu item to bind IBM DB2/2 databases. This must be done 
  121.           before they can be accessed by the Database administrator. This does 
  122.           not have to be done for databases created with the Database 
  123.           administrator because they are bound automatically. Note that this 
  124.           menu item does not apply and will be disabled if the data source is 
  125.           Watcom SQL. 
  126.  
  127.  
  128. ΓòÉΓòÉΓòÉ 5. Operating on tables ΓòÉΓòÉΓòÉ
  129.  
  130. The Table menu allows you to open the settings notebook for one or more tables. 
  131. This notebook allows you modify column definitions, the primary key, foreign 
  132. keys, indexes and privileges for a table. You can also look at the data in the 
  133. table. Tables can also be deleted and created from this menu. 
  134.  
  135. Opening the Settings Notebook 
  136.           Select the Settings menu item after selecting one or more tables to 
  137.           open their notebooks. You can also double-click on a table to open 
  138.           its notebook. 
  139.  
  140. Creating a table 
  141.           Use the Create another menu item to create a table. After you enter 
  142.           its name, a settings notebook will pop up allowing you to create its 
  143.           columns, foreign keys and indexes. 
  144.  
  145. Deleting tables 
  146.           Select one or more tables and then choose the Delete menu item to 
  147.           delete them. You can also delete the tables by dragging them onto the 
  148.           shredder. 
  149.  
  150.  
  151. ΓòÉΓòÉΓòÉ 6. Setting the display ΓòÉΓòÉΓòÉ
  152.  
  153. The View menu is used to control the main window's display. You can switch 
  154. between Icon and Detail views, change the icon size and font and restrict the 
  155. tables which are listed. 
  156.  
  157. The icon menu item 
  158.           Select this menu item to display the list of tables in icon view. 
  159.           Each table will have an icon whose caption will show its fully 
  160.           qualified name. You will not be able to see the comments for a table 
  161.           in this view. 
  162.  
  163. The details menu item 
  164.           When this menu item is selected, the list of tables will be shown in 
  165.           detail view. You will see the names, owners, types and comments for 
  166.           the tables. 
  167.  
  168. Changing the icon size 
  169.           Use the Small icons menu item to toggle between normal and miniature 
  170.           sized icons for the tables on the main window. 
  171.  
  172. Sorting the list of tables 
  173.           Select the Sort menu item and then Ascending or Descending to sort 
  174.           the list of tables. In the icon view, the tables will be sorted by 
  175.           their captions. In the detail view, the current Sort field will be 
  176.           used. By default, they are sorted by name in this view. If you do not 
  177.           want any sorting, select None. 
  178.  
  179. Setting the sort field 
  180.           In the detail view, the Sort field menu item can be used to control 
  181.           which field is used to sort the list of tables. Selecting Name, 
  182.           Owner, Type or Comments will sort the list by the respective field 
  183.           according to the current setting of the Sort menu item. 
  184.  
  185. Restricting the list of tables 
  186.           By default, all user tables and views will be listed on the main 
  187.           window. Use the Include menu item to restrict this list. See Help for 
  188.           the Include dialog box for more information. 
  189.  
  190. Arranging icons 
  191.           In the icon view, the icons for tables can be repositioned. If they 
  192.           become scattered, they can be rearranged automatically using the 
  193.           Arrange menu item. 
  194.  
  195. Refreshing the table list 
  196.           Use the Refresh now menu item to regenerate the list of tables on the 
  197.           main window. The list will use the current settings on the Include 
  198.           dialog box. Tables whose notebooks are open will not be removed from 
  199.           the list even if they do not match the current include settings. 
  200.  
  201.  
  202. ΓòÉΓòÉΓòÉ 7. Configuring the database administrator ΓòÉΓòÉΓòÉ
  203.  
  204. The Options menu is used to set the data source and font, and also determine 
  205. when tables are listed on the main window. You can turn on the logging feature 
  206. from here as well. 
  207.  
  208. Setting the data source 
  209.           Select IBM DB2/2 or Watcom SQL after choosing the Data source menu 
  210.           item to set the data source. This will indicate which type of 
  211.           databases you will be working with. If a database is already open, it 
  212.           will be closed automatically. If you select IBM DB2/2, the database 
  213.           manager will be started if it is not already running. 
  214.  
  215. Fill table list on startup 
  216.           Set this menu item if you want the tables in a database to be 
  217.           automatically listed when a database is opened. If it is not set, you 
  218.           must list the tables yourself using the Include dialog box which will 
  219.           pop up when you open a database. 
  220.  
  221. Changing the font 
  222.           Selecting the List box font menu item will bring up a standard font 
  223.           dialog box allowing you to set the font used by all list objects in 
  224.           the program. 
  225.  
  226. Logging SQL statements 
  227.           The Database administrator will place all the SQL statements it 
  228.           executes into a file if logging is turned on. Use the Start logging 
  229.           menu item to do this. Note that only SQL statements which modify a 
  230.           database will be logged. Also, if there are any errors executing a 
  231.           statement, the error message returned by the database system will be 
  232.           logged. 
  233.  
  234. Stop logging 
  235.           Use this menu item when you want to turn off logging. Logging will be 
  236.           turned off automatically if you do not it off before shutting down 
  237.           the program. 
  238.  
  239.  
  240. ΓòÉΓòÉΓòÉ 8. The Help menu ΓòÉΓòÉΓòÉ
  241.  
  242. Use this menu to see the Database Administrator's Guide, general help about the 
  243. program, how to use the help facility and information about key sequences used 
  244. by the program. 
  245.  
  246.  
  247. ΓòÉΓòÉΓòÉ 9. The logon dialog box ΓòÉΓòÉΓòÉ
  248.  
  249. The logon dialog box appears when you select Open from the Database menu, after 
  250. you create a new database using the Create another menu item and also when you 
  251. start the Database administrator if a database was open when you last shut it 
  252. down. It prompts you for information needed to open a database. 
  253.  
  254. Database 
  255.           Enter the database name in this field. For Watcom SQL databases, the 
  256.           name is just an ordinary OS/2 file name and path. You can also use 
  257.           the Find button to search for available databases. 
  258.  
  259. Userid 
  260.           Enter your userid in this field. If you are opening an IBM DB2/2 
  261.           database then you do not need to enter a userid if you are already 
  262.           logged on. 
  263.  
  264. Password 
  265.           Type your password in this field. It will be masked. You do not need 
  266.           to type in a password if you are opening an IBM DB2/2 database and 
  267.           have already logged on. 
  268.  
  269. Connection parameters 
  270.           This field only applies when opening a Watcom SQL database. It is 
  271.           used to specify the command to start the database engine. It must 
  272.           have the form 
  273.  
  274.                     start=<command>
  275.  
  276.           where <command> is the command to use. For example, 
  277.  
  278.                     start=dbstart -q %d
  279.  
  280.           will start the database engine in quiet mode. Note that the command 
  281.           line must contain %d to indicate where the database name should be 
  282.           placed. For more information on starting the database engine see the 
  283.           Watcom SQL manual. 
  284.  
  285. Connect 
  286.           Press this button when you have finished entering the logon 
  287.           information. This will open the database. If a database is already 
  288.           open, it will be closed automatically. 
  289.  
  290.  
  291. ΓòÉΓòÉΓòÉ 10. Creating an IBM DB2/2 database ΓòÉΓòÉΓòÉ
  292.  
  293. The dialog box used to create an IBM DB2/2 database will appear if the data 
  294. source is IBM DB2/2 and you select Create another from the Database menu. 
  295.  
  296. Database 
  297.           Enter the database name in this field. 
  298.  
  299. Drive information 
  300.           Check the Use DB2/2 drive check box if you want the database to be 
  301.           created on the same drive as DB2/2. If you want to use a different 
  302.           drive, clear this check box and enter the drive in the Drive spin 
  303.           button. 
  304.  
  305. Code page information 
  306.           Set the Default code page check box if you want to use the default 
  307.           code page. To use some other code page, enter its number in the 
  308.           Codepage spin button. Note that code page information is used with 
  309.           the comment for the database and therefore, is not required if no 
  310.           comment is entered. 
  311.  
  312. Comments 
  313.           Enter a description of the database in this field. This information 
  314.           is not required. 
  315.  
  316. Collating sequence information 
  317.           Set System if you want to use the collating sequence of OS/2 based on 
  318.           the country code. This is the default. If you do not want to use a 
  319.           collating sequence, set None. To use your own sequence, set User. The 
  320.           sequence you want to use must be defined in an OS/2 environment 
  321.           variable and you must enter the variable name in the Variable name 
  322.           field. If a command file needs to be run in order to set this 
  323.           variable, enter its name in the Command file field. Use Find to 
  324.           search for this file if necessary. 
  325.  
  326. Create 
  327.           Press this button to create the database. This may take some time. 
  328.           After it has been created, it will be bound automatically so that you 
  329.           can open it immediately. The logon dialog box will come up allowing 
  330.           you to open it. The default userid and password will be userid and 
  331.           password. 
  332.  
  333.  
  334. ΓòÉΓòÉΓòÉ 11. Creating a Watcom SQL database ΓòÉΓòÉΓòÉ
  335.  
  336. The dialog box used to create a Watcom SQL database will appear if the data 
  337. source is Watcom SQL and you select Create another from the Database menu. 
  338.  
  339. Database 
  340.           Enter the database file name in this field. Use Find to select a file 
  341.           name if necessary. 
  342.  
  343. Transaction log file 
  344.           Enter the name of the log file in this field. You can use Find to 
  345.           select a name for the file. If you want the file to have the default 
  346.           name, select <default>. If you do not want to use a log file, select 
  347.           None. 
  348.  
  349. Collating sequence 
  350.           You can enter the name of a collating sequence or a file name 
  351.           defining a sequence in this field. To search for the file, use Find. 
  352.           To use the default collating sequence, select <default>. 
  353.  
  354. Options 
  355.           Set ANSI blank behaviour if you want string searches in the database 
  356.           to ignore trailing blanks. By default trailing blanks are not 
  357.           ignored. Set ANSI case behaviour if you want string searches in the 
  358.           database to be case sensitive. By default, string searches ignore 
  359.           case. For security, you can have the database file encrypted by 
  360.           setting Encryption. Adjust the page size using the Page size spin 
  361.           button. 
  362.  
  363. Create 
  364.           Press this button to create the database. This may take some time. 
  365.           After it has been created, the logon dialog box will come up allowing 
  366.           you to open it. The default userid and password will be dba and sql. 
  367.  
  368. Default 
  369.           Press this button to return to the default values for all the 
  370.           creation parameters. 
  371.  
  372.  
  373. ΓòÉΓòÉΓòÉ 12. Deleting a database ΓòÉΓòÉΓòÉ
  374.  
  375. Use this dialog box to delete a database. 
  376.  
  377. Database 
  378.           Enter the database name in this field. Use Find to find the database 
  379.           if necessary. 
  380.  
  381. Delete 
  382.           Press this to delete the database. You will be asked for confirmation 
  383.           before it is actually deleted. 
  384.  
  385.  
  386. ΓòÉΓòÉΓòÉ 13. Binding a database ΓòÉΓòÉΓòÉ
  387.  
  388. Use this dialog box to bind an IBM DB2/2 database. This must be done before it 
  389. can be accessed by the Database administrator. Databases created with the 
  390. administrator are bound automatically. Note that Watcom SQL databases do not 
  391. need to be bound. 
  392.  
  393. The options provided by BINDDBI and DB2/2 are the same as those provided by the 
  394. database administrator. There is more indepth information on binding in the 
  395. documentation for BINDDBI and DB2/2. 
  396.  
  397. Database 
  398.           Enter the database name in this field. Use Find to find the database 
  399.           if necessary. 
  400.  
  401. User name 
  402.           Enter the name of the user or group whose privileges are being 
  403.           granted or revoked. If you enter <default>, PUBLIC will be used. 
  404.  
  405. Grant 
  406.           Set this if privileges are to be granted to the specified user. 
  407.  
  408. Revoke 
  409.           Set this if privileges are to be revoked from the specified user. 
  410.  
  411. Date & time format 
  412.           Use this field to determine the data and time format used when 
  413.           datetime fields are assigned strings.  See the documentation for 
  414.           BINDDBI for more information. 
  415.  
  416. Record blocking 
  417.           Use this field to specify the type of blocking and how to treat 
  418.           cursors. See the documentation for BINDDBI for more information. 
  419.  
  420. Isolation level 
  421.           Use this field to specify how DB2/2 isolates data (from other 
  422.           processes) which is in use by VX-REXX.  See the documentation for 
  423.           BINDDBI for more information. 
  424.  
  425. Default 
  426.           Press this to return to the default bind values. 
  427.  
  428. Bind 
  429.           Press this when you are ready to perform the bind. 
  430.  
  431.  
  432. ΓòÉΓòÉΓòÉ 14. Finding an IBM DB2/2 database ΓòÉΓòÉΓòÉ
  433.  
  434. This dialog lists all the databases in the system catalogue. Select a database 
  435. from the list and press OK. You can also double-click on a database in the 
  436. list. 
  437.  
  438.  
  439. ΓòÉΓòÉΓòÉ 15. Deleting tables and views ΓòÉΓòÉΓòÉ
  440.  
  441. This dialog box appears when you select one or more tables and choose Delete 
  442. from the Database menu. It will also come up if you drag tables onto the 
  443. shredder. It will list all the tables you selected. Deselect any tables you do 
  444. not want to delete and then press Delete. You can press Cancel if you do not 
  445. want to delete any tables. Note that if any system tables or system views were 
  446. selected, they will not be listed because they cannot be deleted. 
  447.  
  448.  
  449. ΓòÉΓòÉΓòÉ 16. Restricting the list of tables ΓòÉΓòÉΓòÉ
  450.  
  451. Use this dialog box to restrict which tables are listed in the main window. 
  452. Enter a table mask in the Mask field. Then set the Tables, Views, System tables 
  453. and System views fields appropriately to control which types of tables are 
  454. listed. Press OK or close the dialog to apply the changes. 
  455.  
  456. If the notebook for a table is open, it will remain on the main window even if 
  457. it does not match the include criteria. When a database is closed, the criteria 
  458. will be reset to the default values which list all user tables and views but no 
  459. system tables or system views. 
  460.  
  461.  
  462. ΓòÉΓòÉΓòÉ 17. Columns page ΓòÉΓòÉΓòÉ
  463.  
  464. The Columns page displays the column definitions for a table in a list at the 
  465. top. Name, Type, Width, Scale and Comments show the name, data type information 
  466. and comments for the columns. Other can be one of Allow nulls, Not null or 
  467. Primary key. The detailed information for the currently selected column is 
  468. displayed in the group box below. 
  469.  
  470. To modify a column, select it from the list at the top and make changes to it 
  471. below. Then press Modify. You can use Undo to undo the changes you have made to 
  472. the column. To add a column, enter a new column name in the Name field and the 
  473. column information in the remaining fields. Then press Add. If you want to copy 
  474. a column definition from another table, open the notebook for that table and 
  475. drag the column you want into the list at the top of the page. 
  476.  
  477. To change the order of columns, drag and drop them within the list at the top. 
  478.  
  479. Name 
  480.           This field displays the name of the currently selected column. You 
  481.           can modify the name for an existing column or enter the name for a 
  482.           new column. 
  483.  
  484. Data type information 
  485.           The Type field displays the data type and also lists all the data 
  486.           types supported by the database system. The Width and Scale fields 
  487.           display the remaining type information if applicable. 
  488.  
  489. Comments 
  490.           Use this field to see and modify the comments for a column. 
  491.  
  492. Other column information 
  493.           One of Allow nulls, Not null or Primary key will be set to indicate 
  494.           if the column disallows null values and if so, if it is part of the 
  495.           primary key. 
  496.  
  497. Add 
  498.           Press this button to add a column to the table. It will be added at 
  499.           the end of the list. Note that this button only becomes enabled when 
  500.           a change has been made to the Name field. 
  501.  
  502. Modify 
  503.           Press this button to change the definition of the column which is 
  504.           selected in the list at the top of the page. Note that it will only 
  505.           be enabled when a change has been made to the column definition. 
  506.  
  507. Delete 
  508.           Press this button to delete the currently selected column. 
  509.  
  510. Undo 
  511.           Use this to undo changes to the current column. 
  512.  
  513. Apply 
  514.           The Add, Modify and Delete buttons do not actually apply the changes 
  515.           to the database itself. This button must be pressed to make the 
  516.           changes. Note that changes will also be applied automatically if you 
  517.           turn the page or close the notebook. Some changes may require the 
  518.           table to be deleted and rebuilt. You will be warned in such a case. 
  519.  
  520. Reset 
  521.           Press this button to reset the page to match the database. Any 
  522.           changes you have made which haven't been applied will be lost. 
  523.  
  524. See also: 
  525.  
  526. Primary key page 
  527.  
  528.  
  529. ΓòÉΓòÉΓòÉ 18. Table page ΓòÉΓòÉΓòÉ
  530.  
  531. The Table page displays the owner, type, name and comments for a table. The 
  532. name and comments can be changed from the Name and Comments fields. 
  533.  
  534. If the type is view or system view, the SQL statement used to create the view 
  535. will be displayed in the View definition field. Note that this field is read 
  536. only. 
  537.  
  538. Press Apply to apply any changes you make on this page. If you turn the page or 
  539. close the notebook without applying changes, they will be applied 
  540. automatically. Note that if your data source is IBM DB2/2 and you change the 
  541. table name, the table must be deleted and rebuilt. You will be asked for 
  542. confirmation before this is done. 
  543.  
  544. Press Reset to reset the page to match the database. Any changes which have not 
  545. been applied will be lost. 
  546.  
  547.  
  548. ΓòÉΓòÉΓòÉ 19. Primary key page ΓòÉΓòÉΓòÉ
  549.  
  550. The Primary key page is used to control which columns are part of the primary 
  551. key and also the order of these columns within the key. 
  552.  
  553. The Primary key list shows which columns are in the primary key. They are 
  554. listed by their order within the key. The Available columns list shows the 
  555. remaining columns in the table. Only columns which disallow null values will be 
  556. listed here. 
  557.  
  558. To add a column to the primary key, select it from the Available columns list 
  559. and press Add. To remove a column from the primary key, select it from the 
  560. Primary key list and press Remove. You can also drag and drop columns between 
  561. these lists. 
  562.  
  563. If your data source is IBM DB2/2, you can reorder the columns in the primary 
  564. key by dragging and dropping them within the Primary key list. If your data 
  565. source is Watcom SQL, the primary columns will always be listed by their order 
  566. within the table because this is their order within the primary key. 
  567.  
  568. Press Apply to apply changes. Changes are also applied when the notebook is 
  569. closed or the page is turned. You will be asked for confirmation before changes 
  570. are applied because making changes to the primary key deletes all foreign keys 
  571. referencing this table. 
  572.  
  573. Press Reset to reset the page to match the database. Any changes which have not 
  574. been applied will be lost. 
  575.  
  576.  
  577. ΓòÉΓòÉΓòÉ 20. Data page ΓòÉΓòÉΓòÉ
  578.  
  579. This page lists the data in the table. Initially the page will be empty. Press 
  580. Refresh to see the data. You must also press this button whenever you want to 
  581. refresh the list to match the database. 
  582.  
  583.  
  584. ΓòÉΓòÉΓòÉ 21. Foreign key page ΓòÉΓòÉΓòÉ
  585.  
  586. The foreign key page lets you create, modify and delete foreign keys. The role 
  587. name, parent table name and delete rule for the foreign keys are listed at the 
  588. top of the page. If a foreign key is selected from this list, its details are 
  589. displayed below in the group box. You will be able to see the columns from the 
  590. parent table and the columns from this table (called the child table) in the 
  591. list below. 
  592.  
  593. You can make changes to the role name in the Role field. Use the Parent field 
  594. to change the parent table. You can use the Find button to search for a table. 
  595. Also, tables in the main window can be dragged and dropped into Parent field. 
  596. Note that changing the parent table will remove all the columns from the 
  597. foreign key. 
  598.  
  599. Use Restrict, Cascade and Set null to set the delete rule. If your data source 
  600. is Watcom SQL, Cascade and Set null will be disabled because the restrict 
  601. delete rule is the only one supported. 
  602.  
  603. To remove columns from a foreign key, select an entry from the list of columns 
  604. and press Remove. You can also drag the entry onto the shredder. To add columns 
  605. to a foreign key, use the Insert button. Note that this button will be disabled 
  606. if there are no available columns in this table or the parent table. 
  607.  
  608. When you have finished making changes to the currently selected foreign key, 
  609. press Modify. You can use Undo to undo the changes in the group box. To create 
  610. a foreign key, enter a role name in the Role field and the remaining 
  611. information and then press Add. The Add button will be enabled only if the role 
  612. name has been changed. 
  613.  
  614. Note:  If your data source is IBM DB2/2 then the Add and Modify buttons will be 
  615. enabled only when all the columns in the primary key of the parent table have 
  616. been used. 
  617.  
  618. To delete the foreign key which is selected, press Delete. You can also drag 
  619. the foreign key from the list at the top onto the shredder. 
  620.  
  621. When you have finished making changes on this page, press Apply to apply the 
  622. changes to the database itself. Changes you make will also be applied to the 
  623. database if you close the notebook or turn the page. Press Reset to make the 
  624. page match the settings in the database. Any changes that have not been applied 
  625. will be lost. 
  626.  
  627.  
  628. ΓòÉΓòÉΓòÉ 22. Finding a table ΓòÉΓòÉΓòÉ
  629.  
  630. Enter a table name or mask in the Name field and press <Enter> or OK. Tables 
  631. which match the name you entered will be listed in the Tables list. Initially, 
  632. the Name field will be set to the mask used by the main window. If the Fill 
  633. table list on startup option is set, the tables matching this mask will be 
  634. listed immediately. 
  635.  
  636. If there is only one match, it will be chosen automatically as the parent 
  637. table. Otherwise, you can double-click on a table in the list or select it and 
  638. press OK to make it the parent table. 
  639.  
  640.  
  641. ΓòÉΓòÉΓòÉ 23. Inserting columns into a foreign key ΓòÉΓòÉΓòÉ
  642.  
  643. Use the Insert columns dialog box to insert columns into a foreign key. Select 
  644. a column from the child table using the Child columns list. Select a column 
  645. from the parent table using the Parent columns list. Press OK to match the two 
  646. columns you have chosen and insert them into the foreign key. 
  647.  
  648.  
  649. ΓòÉΓòÉΓòÉ 24. Index page ΓòÉΓòÉΓòÉ
  650.  
  651. The Index page displays the name, owner, unique setting and columns of each 
  652. index in the list at the top. The columns are placed one after another, in 
  653. their order within their index. Columns which are ascending are preceded by + 
  654. and those which are descending are preceded by -. 
  655.  
  656. Selecting an index from the list at the top will display its details in the 
  657. group box below. Changes can be made to the index name in the Name field. The 
  658. Owner field is read only. Use the Unique field to set the unique attribute for 
  659. the index. 
  660.  
  661. The columns in the index can be reordered by dragging and dropping them within 
  662. the Columns list. Double-click on a column to toggle its sort order. To add a 
  663. column to the index use the Insert button. To remove a column from the index, 
  664. select it and press Remove. You can also remove columns by dragging them from 
  665. this list onto the shredder. 
  666.  
  667. When you have finished making changes to an index, press Modify. You can use 
  668. Undo to undo the changes in the group box. To create a new index, enter its 
  669. name in the Name field and then the remaining information. Then press Add. The 
  670. owner for any index you create or modify will be set to your userid. 
  671.  
  672. To delete an index, select it from the list at the top and press Delete. You 
  673. can also drag the index from the list onto the shredder. 
  674.  
  675. When you have finished making changes on this page, press Apply to apply the 
  676. changes to the database itself. Changes you make will also be applied to the 
  677. database if you close the notebook or turn the page. Press Reset to make the 
  678. page match the settings in the database. Any changes that have not been applied 
  679. will be lost. 
  680.  
  681.  
  682. ΓòÉΓòÉΓòÉ 25. Insert a column ΓòÉΓòÉΓòÉ
  683.  
  684. Use this dialog to insert a column into an index. Columns which are available 
  685. are listed. Select the column you want to insert. Double-click on it if you 
  686. want to change its sort order. Press OK when you are done. 
  687.  
  688.  
  689. ΓòÉΓòÉΓòÉ 26. Privileges page ΓòÉΓòÉΓòÉ
  690.  
  691. The Privileges page displays all user ids who have access to the database in a 
  692. list at the top. It also displays the privileges they have on the table. If 
  693. your data source is IBM DB2/2 then the columns will contain Yes or No. If your 
  694. data source is Watcom SQL then the columns can also have the value Grant to 
  695. indicate that a privilege is held with the grant option. 
  696.  
  697. Note:  The user ids in the list can refer to groups as well as individual 
  698. users. The privileges shown are those given directly to the user ids in the 
  699. list. If a privilege has been granted to a group but not to a member of that 
  700. group, then the list will not contain the actual privilege information for the 
  701. group member. 
  702.  
  703. Selecting a user id from the list will display its privilege information in 
  704. detail below. The user name will be shown and the appropriate privilege fields 
  705. will be set. The with grant fields will be enabled only if your data source is 
  706. Watcom SQL. They are used to indicate if a privilege is held with the grant 
  707. option. The Index and Control fields will be enabled only if your data source 
  708. is IBM DB2/2. 
  709.  
  710. To modify privileges, select a user id from the list, set the appropriate 
  711. fields and press Modify. You can also press Undo to undo the changes to the 
  712. current user. When you have finished making changes press Apply to apply the 
  713. changes to the database. The changes will also be applied if you close the 
  714. notebook or turn the page. Press Reset to make the page match the database. Any 
  715. changes which have not been applied will be lost. 
  716.  
  717.  
  718. ΓòÉΓòÉΓòÉ 27. Packages page ΓòÉΓòÉΓòÉ
  719.  
  720. The Packages page appears in the settings notebook only if your data source is 
  721. IBM DB2/2. It lists the name, owner and binder of each package in the database 
  722. which depends on the table. You can use the Refresh button to refresh this list 
  723. to match the database. 
  724.  
  725.  
  726. ΓòÉΓòÉΓòÉ 28. Views page ΓòÉΓòÉΓòÉ
  727.  
  728. The Views page appears in the settings notebook only if your data source is IBM 
  729. DB2/2. It lists the name, qualifier, and creator of each view in the database 
  730. which depends on the table. You can use the Refresh button to refresh this list 
  731. to match the database.