Click or drag to resize
CGUIiImportDatabaseADO Method (CGXNETCore, String, String, String)
Create template to import an external database table (ADO Version).

Available since Oasis montaj version: 5.0
License: Available to anyone with an Oasis Montaj license.  
Limitations: May not be available if running outside of a Oasis Montaj or from a command line program.  

Namespace: Geosoft.Desktop.GXNetX
Assembly: geosoft.desktop.gxnetx (in geosoft.desktop.gxnetx.dll)
Notes
1. This is used to select a single database table, and selected fields from that table. 2. This function DOES NOT import the table itself, but creates an import template which may be used to import the table (see ImportADO_DU). 3. If connection string is of type "FILENAME=..." the connection will attempt to resolve it as a file database. (see also ODBCFileConnect_GUI)
Syntax
public static int iImportDatabaseADO(
	CGXNETCore gxNetShared,
	string connect,
	string temp,
	ref string table
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
connect
Type: SystemString
External database connection string (Blank for OLEDB Wizard)
temp
Type: SystemString
Template to make
table
Type: SystemString
Name of table imported (returned)

Return Value

Type: Int32
0 - OK -1 - Cancel
See Also