DataSource Object

A data source.

 

Properties

 

Application Application

Returns application. Read only.  

 

String ConnectionString

Sets or returns connection string. Read/write. 

 

String ConnectionType

Sets or returns connection type. Supported connection types are: "ADO.NET", "ADO.NET ODBC", "ADO.NET OLE DB", "ADO.NET Oracle", "ADO.NET SQL Server", "CSV", "DB", "DB2", "DBF", "DSN", "HTML", "MDB", "ODBC", "OLEDB", "Oracle", "PostgreSQL", "SQL Server", "UDL", "WK", "XLS". Some connection types are only available in Enterprise edition or higher edition. Read/write.

 

Any Parent

Returns parent object. Read only.  

 

Methods

 

ExportDrawing(Drawing drawing, String name, String type, Number srid, Boolean createIndex, Boolean createSequenceTriggers, DataSourceColumnSet columns)

Exports a drawing using the specified name and drawing type. If the SRID parameter is set to -1, the system uses the coordinate system that best matches the coordinate system of the exported component. All parameters except the first three are optional.

 

ExportImage(Image image, String name, String type, Number srid, Boolean createPyramids, String compression)

Exports an image using the specified name and image type. If the SRID parameter is set to -1, the system uses the coordinate system that best matches the coordinate system of the exported component. All parameters except the first three are optional.

 

ExportSurface(Surface surface, String name, String type, Number srid, Boolean createPyramids, String compression)

Exports a surface using the specified name and surface type. If the SRID parameter is set to -1, the system uses the coordinate system that best matches the coordinate system of the exported component. All parameters except the first three are optional.

 

ExportTable(Table table, String name, DataSourceColumnSet columns)

Exports a table using the specified name. The last parameter is optional. 

 

ImportDrawing(String drawing, DataSourceColumnSet columns)

Imports a native or Manifold drawing with specified name. The last parameter is optional.

 

ImportDrawingFromTableCoordinates(String table, String columnX, String columnY, Boolean latLon, String columnLineID, String columnCoordinateOrder, DataSourceColumnSet columns)

Imports a drawing from a table with coordinate columns. All parameters except the first three are optional.

 

ImportDrawingFromTableGeometry(String table, String columnGeometry, ColumnType geometryType, String columnVersion, DataSourceColumnSet columns)

Imports a drawing from a table with a geometry column. All parameters except the first three are optional.

 

ImportImage(String image)

Imports a native or Manifold image with specified name. 

 

ImportImageFromTableChannels(String table, Number channels, String columnX, String columnY, String columnRed, String columnGreen, String columnBlue, String columnAlpha)

Imports an image from a table with channel columns. The number of channels can be 1, 3 or 4. All parameters except the first five are optional.

 

ImportImageFromTableColor(String table, Number channels, String columnX, String columnY, String columnColor)

Imports an image from a table with a color column. The number of channels can be 1, 3 or 4.

 

ImportSurfaceFromImageChannel(String image, Number channel)

Imports a surface from a channel of a native or Manifold image with specified name. If the channel index is set to -1, imports the heights channel. The channel index parameter is optional.

 

ImportSurfaceFromTableValue(String table, ColumnType resultType, String columnX, String columnY, String columnValue)

Imports a surface from a table with a value column. 

 

ImportTable(String table, DataSourceColumnSet columns)

Imports a table with specified name. The last parameter is optional. 

 

LinkDrawing(String drawing, DataSourceColumnSet columns)

Links a native or Manifold drawing with specified name. The last parameter is optional.

 

LinkDrawingFromTableCoordinates(String table, String columnX, String columnY, Boolean latLon, String columnLineID, String columnCoordinateOrder, DataSourceColumnSet columns)

Links a drawing from a table with coordinate columns. All parameters except the first three are optional.

 

LinkDrawingFromTableGeometry(String table, String columnGeometry, ColumnType geometryType, String columnVersion, DataSourceColumnSet columns)

Links a drawing from a table with a geometry column. All parameters except the first three are optional.

 

LinkImage(String image)

Links a native or Manifold image with specified name. 

 

LinkImageFromTableChannels(String table, Number channels, String columnX, String columnY, String columnRed, String columnGreen, String columnBlue, String columnAlpha)

Links an image from a table with channel columns. The number of channels can be 1, 3 or 4. All parameters except the first five are optional.

 

LinkImageFromTableColor(String table, Number channels, String columnX, String columnY, String columnColor)

Links an image from a table with a color column. The number of channels can be 1, 3 or 4.

 

LinkSurfaceFromTableValue(String table, ColumnType resultType, String columnX, String columnY, String columnValue)

Links a surface from a table with a value column. 

 

LinkTable(String table, DataSourceColumnSet columns)

Links a table with specified name. The last parameter is optional. 

 

Boolean Probe()

Tries to connect to the data source. Returns True if the data source can be reached, and False otherwise.

 

Obtained From

 

Document (NewDataSource)

 

See Also

 

Scripting Reference