Server Remove Workspace statement - MapBasic - 2023

MapInfo MapBasic Reference

Product type
Software
Portfolio
Locate
Product family
MapInfo
Product
MapInfo > MapBasic
Version
2023
Language
English
Product name
MapBasic
Title
MapInfo MapBasic Reference
First publish date
1985
Last updated
2023-09-12
Published on
2023-09-12T16:32:32.686312

Purpose

Discards all row versions associated with a workspace and deletes the workspace in the database (Oracle 9i or later). You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

Server ConnectionNumber Remove
	Workspace WorkspaceName 

ConnectionNumber is an integer value that identifies the specific connection.

WorkspaceName is the name of the workspace. The name is case sensitive.

Description

This statement only applies to Oracle9i or later. This operation can only be performed on leaf workspaces (the bottom-most workspaces in a branch in the hierarchy). There must be no other users in the workspace being removed.

Examples

The following example removes the MIUSER workspace in the database.

Dim hdbc As Integer
hdbc = Server_Connect("ORAINET", "SRVR=TROYNY;UID=MIUSER;PWD=MIUSER")
Server hdbc Remove Workspace "MIUSER" 

See Also:

Server Create Workspace statement