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

SQL Anywhere 17 » SQL Anywhere Server - Spatial Data Support » Spatial data

Creating a spatial column (SQL Central)

Add spatial data to any table by adding a column that supports spatial data.


You must be the owner of the table, or have ALTER privilege on the table, or have the ALTER ANY TABLE or ALTER ANY OBJECT system privilege.

The table must have a primary key. Update and delete operations are not supported for tables that contain a spatial column unless a primary key is defined.


  1. Connect to the database.
  2. Create a new column:
    • In the left pane, expand the Tables list.

    • Right-click a table, then click Start of the navigation path New Next navigation step Column End of the navigation path.

  3. Set the spatial data type:
    1. Right-click the column name, then click Properties.
    2. Click the Data Type tab.
    3. Select Built-in type and choose a spatial data type from the dropdown list.
    4. Select Set spatial reference system and choose a spatial reference system from the dropdown list.
    5. Click OK.
  4. Click Start of the navigation path File Next navigation step Save End of the navigation path.


A spatial column is added to the existing table.

Next Steps

You can place SRID constraints on the column to place restrictions on the values that can be stored in a spatial column by using the ALTER TABLE statement. You can also add spatial data to the column.