Tasks A-C
To add an alias for a user
- Open the property sheet for the login.
- Click the Users tab.
- Click Add Alias.
- In the Add Alias dialog box, select the user you want to alias to the login.
- Click OK to apply the changes and close the dialog box.
- In the property sheet, click OK or Apply.
See also Aliasing a login to a user.
Return to the list of tasks.
To add an ASE Replicator connection
- Select a primary Adaptive Server in the left pane.
- Open the ASE Replicator folder under the primary Adaptive Server.
- In the right pane, double-click the Add Connection icon.
- Select the connection type (primary or replicate) in the Connection Creation wizard dialog,
then follow the instructions of the wizard to define a database connection.
Return to the list of tasks.
To add an ASE Replicator primary article
- Select a primary Adaptive Server in the left pane.
- Open the ASE Replicator folder under the primary Adaptive Server.
- Select a primary connection under the ASE Replicator folder.
- Select a publication under the primary connection.
- In the right pane, double-click the Add Primary Article icon.
- Follow the instructions of the wizard to define a new primary article.
After a primary article is defined in a publication, it can be added to any number of
other publications.
Return to the list of tasks.
To add an ASE Replicator publication
- Select a primary Adaptive Server in the left pane.
- Open the ASE Replicator folder under the primary Adaptive Server.
- Select a primary connection under the ASE Replicator folder.
- In the right pane, double-click the Add Publication icon.
- Specify the name of the new publication in the Add Publication wizard dialog,
then follow the instructions of the wizard to define a publication.
Return to the list of tasks.
To add an ASE Replicator replicate article
- Select a primary Adaptive Server in the left pane.
- Open the ASE Replicator folder under the primary Adaptive Server.
- Select a replicate connection under the ASE Replicator folder.
- Select a subscription under the replicate connection.
- In the right pane, double-click the Add Replicate Article icon.
- Follow the instructions of the wizard to define a new replicate article.
Return to the list of tasks.
To add an ASE Replicator subscription
- Select a primary Adaptive Server in the left pane.
- Open the ASE Replicator folder under the primary Adaptive Server.
- Select a replicate connection under the ASE Replicator folder.
- In the right pane, double-click the Add Subscription icon.
- Specify the name of the new subscription in the Add Subscription wizard dialog,
then follow the instructions of the wizard to define a subscription.
Return to the list of tasks.
To add a buffer pool to a named cache
- Open the property sheet for the named cache.
- Click the Buffer Pool tab.
- Click Add.
- In the Add/Change Memory Pool dialog box, choose the I/O buffer size from the drop-down list.
- Specify a value for the Amount in pool.
- Specify whether the amount is in pages, KB, MB, or GB.
- Specify the wash size. This is the amount of space you want to keep in the wash area of this buffer pool. New pools automatically use the default wash size.
- Click OK to apply the changes and close the dialog box.
- In the property sheet, click OK or Apply.
Return to the list of tasks.
To add a cache
- Open the Caches folder for the server.
- In the right pane, double-click the Add Cache icon.
- Enter the cache name.
- Enter the cache size in pages, KB, MB, or GB. The minimum cache size is 512 KB.
- Choose whether the cache will store data and log pages or only log pages.
- Click Finish.
- Stop and restart Adaptive Server.
Adaptive Server creates the cache with a status of "Activation Pending". In this state, the cache is defined in Adaptive Server, but cannot be used for holding data and cannot be bound to a database, index, or table until you restart Adaptive Server. After you stop and restart Adaptive Server, the cache status becomes "Active", and the cache is ready for use.
Return to the list of tasks.
To add a check constraint
- Open the Check Constraints folder for the table.
- In the right pane, double-click the Add Check Constraint icon.
- Follow the instructions of the wizard.
Return to the list of tasks.
To add a column to a table
- Select the table to which you want to add a column.
- Select File | Edit Table. The table opens in the table editor
- Click the Add Column icon in the table editor toolbar.
- Enter the column name.
- Click in the datatype cell, then choose a datatype from the drop-down list.
- If necessary, enter values for Size/Precision and Scale.
- If you want the column to allow NULL values, click Allow Nulls.
- To add a check constraint to the column, click the Advanced Column Properties icon in the table editor toolbar.
Note: The check constraint for the table must be created before you can add it to a column. You can only add a check constraint to a column when you have created the new column, but have not saved the table.
- Select the Check Constraints tab.
- Select the Check Constraint from the list.
- Click OK.
- Continue adding columns or changing column properties as needed. When you are finished, click either the Save icon or the Save and Close icon in the table editor toolbar.
Return to the list of tasks.
To add a database
Before you add a database to a server, determine:
- The size of the database
- The physical location of the database
- Whether the location for the database has enough space
- Whether to store the transaction log on a separate device from the data
For more information about planning a database, see the System Administration Guide.
- Open the Databases folder for the server.
- In the right pane, double-click the Add Database icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add a database device
Before you add a database device:
- Confirm that the physical device has enough disk space.
- Confirm that the "sybase" operating system account has write access on the physical device.
- On UNIX hosts, back up the master database.
- Open the Database Devices folder for the server.
- In the right pane, double-click the Add Database Device icon.
- Follow the instructions of the wizard.
You can assign the new device to databases and segments.
Note: After you add the device, back up the master database again.
Return to the list of tasks.
To add a default
- Select the Defaults folder for the database.
- In the right pane, double-click the Add Defaults icon.
- Follow the instructions of the wizard.
Note: The default expression is the text that follows the as keyword in a create default statement.
After you add a default, you can bind it to table columns and user-defined datatypes in the database.
Return to the list of tasks.
To add a device to a segment
Before you can add a device to a segment, the device must exist in the server.
- Open the Segments folder for the database.
- Open the property sheet for the segment.
- Click the Devices tab.
- Click Add.
- In the list, select the device you want to add.
- Click OK.
Return to the list of tasks.
To add a dump device
- Open the Dump Devices folder for the server.
- In the right pane, double-click the Add Dump Devices icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add an engine group
- Open the Engine Groups folder for the server.
- Double-click the Add Engine Group icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add an execution class
- Open the Execution Classes folder for the server.
- Double-click the Add Execution Class icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add an extended stored procedure
- Open the Extended Stored Procedures folder for the database.
- Double-click the Add Extended Stored Procedure icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add a foreign key
- Open the Foreign Keys folder for the table.
- Double-click the Add Foreign Key icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add a group
- Open the Groups folder for the database.
- In the right pane, double-click the Add Group icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add an index
- Select the Indexes folder for the table.
- In the right pane, double-click the Add Index icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add a login
- Select the Logins folder for the server.
- In the right pane, double-click the Add Login icon.
- Follow the instructions of the wizard.
- Click Finish.
After you have created a login, you can alias users to it.
Return to the list of tasks.
To add a primary key
You cannot create a primary key on a column that allows nulls.
- Open the table in the table editor.
- Click the icon in the Key property of the column.
The primary key is visible as an index in the Indexes folder.
Return to the list of tasks.
To add a remote server
- Open the Remote Servers folder.
- In the right pane, double-click the Add Remote Server icon.
- Enter a local name for the remote server.
- Choose the network name of the remote server from the drop-down list.
- Select a server class from the drop-down list. The server class specifies the access method used to interact with the remote server when CIS is enabled.
- Click Finish.
Return to the list of tasks.
To add a role
- Open the Roles folder for the server.
- In the right pane, double-click the Add Role icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add a rule
- Select the Rules folder for the database.
- In the right pane, double-click the Add Rules icon.
- Follow the instructions of the wizard.
- Click Finish.
After you create a rule, you can bind it to table columns and user-defined datatypes in the database.
Return to the list of tasks.
To add a segment to a database
- Select the Segments folder for the database.
- In the right pane, double-click the Add Segment icon.
- Follow the instructions of the wizard.
- Click Finish.
After you have created a segment, you can assign tables and indexes to it.
Return to the list of tasks.
To add a stored procedure
- Open the Stored Procedures folder for the database.
- In the right pane, double-click the Add Stored Procedure icon.
- Follow the instructions of the wizard. When you click Finish in the wizard, the code editor opens with a procedure "skeleton" ready for you to edit.
- Complete the code of the procedure.
- Choose File | Execute Script.
Return to the list of tasks.
To add a table
This topic adapts "How to Design and Create a Table" in the Transact-SQL User's Guide for use with Sybase Central.
Before creating a table, complete the following tasks:
- Create a design sketch for the table.
- Decide which columns will accept null values.
- (Optional) Create user-defined datatypes.
For more information, see designing a table and related objects.
To create the table you designed:
- Open the User Tables folder for the database.
- In the right pane, double-click the Add Tables icon.
- In the table editor:
Note: The table must have at least one column. You can edit and delete columns until you save the new table definition. To change the definition of an unsaved column, edit the definition.
Return to the list of tasks.
To add a threshold
Before you add a threshold, decide which stored procedure you want to run if the threshold is reached. If necessary, create the stored procedure.
- Select the icon of the segment on which you want to create the threshold.
- Open the segment's property sheet.
- Select the Thresholds tab.
- Click the Add button. The Add New Threshold dialog box is displayed.
- Set the free space value in the When Free Space Falls Below box.
- Select a procedure from the list.
Return to the list of tasks.
To add a threshold to a segment
- Open the Segments folder in the database.
- Open the property sheet for the segment.
- Click the Thresholds tab.
- Click Add.
- Specify the amount of free space for the threshold.
- Choose the unit specifier (Pages, KB, MB, or GB).
- In the list, select the procedure to execute when the free space falls below the threshold value.
- Click OK to apply the changes and close the dialog box.
- In the property sheet, click OK or Apply.
Return to the list of tasks.
To add a trigger
Before you create a trigger, make sure you have permission to create triggers on the table. Only a System Security Officer can grant or revoke permisions to create triggers. Permission to issue the create trigger command is granted to users by default.
- Select the Triggers folder for the table.
- In the right pane, double-click the Add Trigger icon.
- Follow the instructions of the wizard. When you click Finish in the wizard, the code editor opens with a trigger "skeleton" ready for you to edit.
- Complete the code of the trigger.
- Choose File | Execute Script.
Return to the list of tasks.
To add a unique constraint
- Open the Unique Check Constraints folder for the table.
- In the right pane, double-click the Add Unique Constraint icon.
- Follow the instructions of the wizard.
- Click Finish.
Return to the list of tasks.
To add a user to a database
- In the database, select the Users folder.
- In the right pane, double-click the Add User icon.
- Enter the user name.
- Choose the login name to assign to the user.
- If you want to assign a group to the user, click Assign group, then choose a group name from the drop-down list.
- Click Finish.
Return to the list of tasks.
To add a user to a group
- In the database, select the Groups folder.
- Open the property sheet for the group.
- Select the Users tab.
- Click Add.
- Select the user you want to add to the group.
- Click OK to apply the changes and close the dialog box.
- In the property sheet, click OK or Apply.
You can also move a user to a different group.
Return to the list of tasks.
To add a user-defined datatype
- Select the User Defined Datatypes folder in the database.
- In the right pane, double-click the Add User-defined Data Type icon.
- Follow the instructions of the wizard.
- Click Finish.
To make a user-defined datatype available in all new databases, create it in the model database.
Return to the list of tasks.
To add a view
- Select the Views folder for the database.
- In the right pane, double-click the Add View icon.
- Follow the instructions of the wizard. When you click Finish in the wizard, the code editor opens with a view "skeleton" ready for you to edit.
- Complete the code of the view.
- When you finish editing the script, choose File | Execute Script to run the script and keep the code editor open. To run the script and close the code editor, choose Execute and Close.
Return to the list of tasks.
To edit ASE Replicator properties
- Select a primary Adaptive Server in the left pane.
- Right-click the ASE Replicator folder.
- Select Properties.
- Select the tab of the properties you want to edit:
- General
- Parameters
- Trace Flags
- Edit the properties.
Return to the list of tasks.
To resume replication with ASE Replicator
- Select a primary Adaptive Server in the left pane.
- Right-click the ASE Replicator folder.
- Select Resume.
- Click Yes in the Question dialog box.
Return to the list of tasks.
To shutdown the ASE Replicator process
- Select a primary Adaptive Server in the left pane.
- Right-click the ASE Replicator folder.
- Select Shutdown.
- Click one of the following buttons in the Question dialog box:
- Shutdown
- Shutdown immediately
- Cancel
Return to the list of tasks.
To suspend replication with ASE Replicator
- Select a primary Adaptive Server in the left pane.
- Right-click the ASE Replicator folder.
- Select Suspend.
- Click Yes in the Question dialog box.
Return to the list of tasks.
To alias a login to a user
- In the database, select the Users folder.
- Open the property sheet for the user.
- Click the Aliased Logins tab.
- Click Add Alias.
- In the list, select the login you want to alias to the user.
- Click OK to apply the changes and close the dialog box.
- In the property sheet, click OK or Apply.
You can alias a user to only one login.
See also Adding an alias for a user.
Return to the list of tasks.
To allocate more space to a database
- Open the property sheet for the database.
- Click the Devices tab.
- Select the device on which you want to allocate space.
- Click Edit.
- Enter the amount of additional space to allocate. This amount is added to the original amount of space allocated. The additional space added cannot be more than the size of the database device.
- Click OK to apply the changes and close the dialog box.
- In the property sheet, click OK or Apply.
If there is no space available on the assigned device, add another device to the database.
Return to the list of tasks.
To assign a device to a database or its log
- Open the property sheet for the database.
- Click the Devices tab.
- Click Add.
- Select the device you want to assign.
- Enter the amount of space to allocate.
- Choose whether the device will store data or the transaction log.
- Click OK to apply the changes and close the dialog box.
- In the property sheet, click OK or Apply.
To unassign devices that you have just assigned
- Select the device to unassign.
- Click Remove.
Return to the list of tasks.
To assign roles to a login
- Open the property sheet for the login to which you want to assign roles.
- Select the Roles tab.
- Click Add Role.
- Select the role you want to assign to the login. Some roles may be mutually exclusive.
- Click OK.
- In the property sheet, click OK or Apply.
Return to the list of tasks.
To back up (dump) databases or transaction logs
- Select the database you want to back up.
- Choose File | Backup.
- Follow the instructions of the wizard.
Note: To add a dump device to the list, click Add. Complete the options in the Select Dump Devices dialog box, then click OK. To remove a dump device from the list, select the dump device and click Remove.
The results of the backup are shown in the console window. You can restore a database or transaction log from a backup.
Return to the list of tasks.
To bind a default to a column
- Select the Columns folder for the table you are working with.
- Select a column.
- Open the column's property sheet.
- Select the Rules and Defaults tab.
- In the Default group box, do one of the following:
- Click the Named option and select a default from the drop-down list.
- Click the Clause option and enter the text of the clause in the text box.
Return to the list of tasks.
To bind a default to a user-defined datatype
- Open the property sheet for the user-defined datatype.
- Select the Advanced Options tab.
- Select a default from the Default drop-down list.
- Optionally, select In Future Only. If you select In Future Only, the default is applied only to columns of this type added to a table after you bind the default. It does not apply to columns of this type currently in a table. If you do not select In Future Only, the default is applied to columns of this type currently in tables and columns of this type added later.
Return to the list of tasks.
To bind an object to a cache
- Open the cache's property sheet.
- Click the Cache Bindings tab.
- Choose the type of object to show bindings for (databases, tables, or indexes).
- Click Bind.
- In the New Cache Binding dialog box, select the objects to bind to this cache.
You can also bind objects from their respective property sheets.
Return to the list of tasks.
To bind an object to an execution class
- Open the property sheet for the execution class.
- Select the Bindings tab.
- Select the type of object in the Show Object Bindings For drop-down list.
- Click the Bind button.
- In the New Execution Class Binding dialog box, select the objects you want to bind. For logins and applications, you can select a scope. For procedures, you must select a database before you select the procedures.
Return to the list of tasks.
To bind a rule to a column
- Select the Columns folder for the table you are working with.
- Select a column.
- Open the property sheet for the column.
- Select the Rules and Defaults tab.
- In the Rules drop-down list, select the rule you want to bind to the table column.
Note: A rule bound to a column takes precedence over a rule bound to the datatype for that column.
Return to the list of tasks.
To bind a rule to a user-defined datatype
- Open the property sheet for the user-defined datatype.
- Select the Advanced Options tab.
- Select a rule from the Rule drop-down list.
- Optionally, select In Future Only. If you select In Future Only, the rule is applied only to columns of this type added to a table after you bind the rule. It does not apply to columns of this type currently in a table. If you do not select In Future Only, the rule is applied to columns of this type currently in tables and columns of this type added later.
Return to the list of tasks.
To bind a table to a cache
- Open the property sheet for the table you want to bind to a cache.
- On the General tab, select a cache from the Bind To drop-down list.
Return to the list of tasks.
To change the buffer pool size
The default buffer pool size cannot be changed.
- Open the cache's property sheet.
- Click the Buffer Pool tab.
- In the list, select the buffer pool you want to change.
- Click Change.
- Change the Pool Size or the Wash Size of the pool or both.
- If you change the pool size, you must also choose a pool from which the required space will be taken.
Return to the list of tasks.
To change the database owner
- Open the property sheet for the database.
- On the General tab, click Change.
- Select a new owner from the list in the New Database Owner dialog box.
- Optionally, transfer the aliases and their permissions to the new owner.
Note: You cannot change the owner of the master database.
Return to the list of tasks.
To change the locking scheme
Locking schemes in Adaptive Server version 11.9.x and higher are allpages, datapages, and datarows. The datapages and datarows schemes are collectively called data-only locking.
Converting between datapages and datarows locking -- this conversion is usually quick and inexpensive. These conversions are implemented by updates to system tables.
Note: Changing to datarows locking can increase the number of locks required, since a lock is needed for each row. Check the server-wide number of locks configuration parameter.
- Open the table property sheet.
- Click the Locking tab.
- Click the desired locking scheme.
Converting from allpages to data-only, or from data-only to allpages locking -- this conversion can be expensive in time, I/O, and space. These conversions are implemented by table copies and index re-creation. They require planning and preparation.
- Perform a database dump.
- Update statistics on the table that you plan to alter. The conversion runs better with accurate statistics.
- Determine if there is enough space to perform the conversion.
- Open the table property sheet.
- Click the Locking tab.
- Set any space management properties that should be applied to the copy of the table or its rebuilt indexes.
- If the table is partitioned and requires a parallel sort, use sp_dboption to set select into/bulkcopy/pllsort to true and run checkpoint in the database. Also make sure configuration parameters are set for optimum parallel sort performance as described in the Performance and Tuning Guide.
- Click the new locking scheme. Note that the conversion from allpages to data-only locking or vice versa can take a long time and is I/O intensive.
- After conversion, check table and database consistency.
- Perform a database dump. After converting from allpages to data-only locking or vice versa, you must perform a full database dump before you can back up the transaction log with dump transaction.
Return to the list of tasks.
To change the password of a login
- Open the Logins folder.
- Open the property sheet for the login.
- Select the Paremeters tab.
- Click Change Password.
- Enter your password. This is the password you logged in with, not the old password of the login.
- Enter the login's new password.
- Enter the login's new password again for confirmation.
Return to the list of tasks.
To change role assignment for a login
- Open the property sheet for the login.
- Select the Roles tab.
- Add or remove roles for this login.
You can also set the default role to be active for a login.
Return to the list of tasks.
To change the transaction log buffer (I/O) size
- Open the property sheet for the database.
- Select the Transaction Log tab.
- Select a value (2, 4, 8, or 16) in the Log IO Size box.
Return to the list of tasks.
To change the transaction log device
When you create a database, you can specify the database device on which it is created. If you do not specify a device, Adaptive Server creates the database on a device that has been designated as a default device. If you have multiple default devices, Adaptive Server uses them in alphabetical order until each is full.
The master device created during an Adaptive Server installation holds the three system databases: master, model, and tempdb. This device is initially designated as a default device.
Note: Sybase strongly recommends that you remove the default designation from the master device to prevent it from getting cluttered and to make recovery easier in the case of a disk failure.
- Open the property sheet for the database.
- Click the Devices tab.
- In the list, select the device. You must leave at least one device for data.
- Click Move Log.
Return to the list of tasks.
To check database consistency
- Open the Databases folder.
- Select the database you want to check.
- Choose File | Check Consistency.
- Follow the instructions of the wizard. The results of the consistency check are shown in the console window.
Return to the list of tasks.
To connect to Adaptive Server
Select an Adaptive Server icon, then choose Tools | Connect.
If your copy of Sybase Central supports more than one database product, a dialog box prompts you for the type of connection. Select Sybase Adaptive Server. In the connection dialog box, select the Adaptive Server installation you want to connect to.
Note for Windows NT: If an Adaptive Server installation on the same machine as Sybase Central was started using the RUN_SERVER.bat command, you cannot connect to it from Sybase Central. To connect to Adaptive Server on the same machine as Sybase Central, either start Adaptive Server from Sybase Central or start it using the Windows NT Services dialog box.
Return to the list of tasks.
Continue to Tasks D-L