Click or drag to resize
CGUIiImportTemplateSQL Method (CGXNETCore, IWin32Window, String, String, String, String)
Create template to import an external database table; provide query.

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
This is similar to iImportDatabaseSQL_GUI, but dispenses with the dialog offering a selection of queries. Instead, the user supplies the query as a string. This function DOES NOT import the table itself, but creates an import template which may be used to import the data (see ImportDAO_DU).
Syntax
public static int iImportTemplateSQL(
	CGXNETCore gxNetShared,
	IWin32Window owner,
	string name,
	string temp,
	string sql,
	string line
)

Parameters

gxNetShared
Type: GeoEngine.Core.GXNetXCGXNETCore
A shared CGXNETCore
owner
Type: System.Windows.FormsIWin32Window
The IWin32Window the message box will display in front of.
name
Type: SystemString
External database file name
temp
Type: SystemString
Import template to make
sql
Type: SystemString
SQL selection query to run on database
line
Type: SystemString
Name of Oasis table to create

Return Value

Type: Int32
0 - OK -1 Cancel terminates on error
See Also