Server Create 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

Creates a new workspace in the database (Oracle 9i or later). You can issue this statement from the MapBasic window in MapInfo Pro.

Syntax

Server ConnectionNumber Create 
	Workspace WorkspaceName
	[ Description Description ]
	[ Parent ParentWorkspaceName ]

ConnectionNumber is an integer value that identifies the specific connection.

WorkspaceName is the name of the workspace. The name is case sensitive, and it must be unique. The length of a workspace name must not exceed 30 characters.

Description is a string to describe the workspace.

ParentWorkspaceName is the name of the workspace which will be the parent of the new workspace WorkspaceName. By default, when a workspace is created, it is created from the topmost, or LIVE, database workspace.

Description

This statement only applies to Oracle9i or later. The new workspace WorkspaceName is a child of the parent workspace ParentWorkspaceName or LIVE if the Parent is not specified.

Refer to the Oracle9i Application Developer's Guide - Workspace Manager for more information.

Examples

The following example creates a workspace named MIUSER in the database.

Dim hdbc As Integer
hdbc = Server_Connect("ORAINET", "SRVR=TROYNY;UID=MIUSER;PWD=MIUSER")
Server hdbc Create 
Workspace "MIUSER" 
Description "MIUser private workspace"

The following example creates a child workspace under MIUSER in the database.

Dim hdbc As Integer
hdbc = Server_Connect("ORAINET", "SRVR=TROYNY;UID=MIUSER;PWD=MIUSER")
Server hdbc Create Workspace "MBPROG" Description "MapBasic project" 
Parent "MIUSER"

See Also:

Server Remove Workspace statement, Server Versioning statement