dsedit allows you to copy server entries within a session and between sessions. This includes copying entries from a sql.ini file to a directory service.
To copy server entries within the current session
Click on one or more server entries in the Server box.
Use the Shift key to select multiple entries.
Click the Copy button (below the menu bar), or choose Edit | Copy.
Click the Paste button (below the menu bar), or choose Edit | Paste.
dsedit appends the copied server entries with a version number of _n. You can rename the copied server entries using Server Object | Rename. See “To rename a server entry” for more information.
To copy server entries between sessions
Open a session with the directory service or sql.ini file that you want the entries copied to.
To open a session, choose File | Open Directory Service. See “To open additional sessions” for more information.
Click on one or more server entries in the Server box of the session that you want the entries copied from.
Use the Shift key to select multiple entries.
To copy the server entries, click the Copy button (below the menu bar), or choose Edit | Copy.
To cut the server entries, click the Cut button (below the menu bar), or choose Edit | Cut.
Activate the session where you want to paste the server entries.
See “To switch to another open session” for instructions for activating a session.
Click the Paste button (below the menu bar), or choose Edit | Paste.
You can rename the copied server entries using the Rename command in the Server Object menu. See “To rename a server entry” for more information.
To copy a server entry to another interfaces file
Use one of the following methods to select the entries to copy:
To copy a single entry – click it once.
To copy a range of consecutive entries – click the first entry in the range, press and hold down Shift, and click the last entry in the range. You can also select “backwards” by clicking the last entry, holding down Shift, and clicking the first entry.
To select multiple, nonconsecutive entries – press and hold down the Ctrl key while you click each entry.
Click Copy server entry.
Select the Sybase interfaces file from the list.
Edit the displayed file name.
Click OK.