Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » Database administration » SQL Anywhere graphical administration tools » Interactive SQL » Source control integration in Interactive SQL

 

Checking out files using Interactive SQL

Check a file out by modifying its contents in the SQL Statements pane or by using the command on the File menu.

Prerequisites

There are no prerequisites for this task.

Context and remarks

When you configure the source control options for Interactive SQL, choose Automatically Check Out Files When Editor Contents Are Modified to have Interactive SQL attempt to check out a file when you modify its contents in the SQL Statements pane.

 Task
  1. In Interactive SQL, click File » Open, and then browse to the file you want to open.

    The file status appears on the status bar at the bottom of the Interactive SQL window. The status is one of Checked In, Checked Out, or Not Controlled. Files that are checked in are assumed to be read-only, and Read-Only appears in the Interactive SQL title bar. The file in the following example is checked in:

    Interactive SQL with a file open that is checked in to a source control system.
    Caution

    If you are using a Source Control Code API-compliant source control system, the status is always accurate. If you use the custom source control system, the status is based on whether the file is read-only or not. A read-only file is assumed to be checked in, but editable files could be either checked out or not controlled.

  2. Check out the file by clicking File » Source Control » Check Out.

Results

Depending on which source control product you are using, you may be prompted for a comment or other options as part of the check out procedure.

Next

When you are finished making edits to your file, you can check it back in from Interactive SQL. Click File » Source Control » Check In. Enter check-in comments if you are prompted.