 | CGUIiImportDatabaseADO Method (IWin32Window, String, String, String, Int32) |
Create template to import an external database table (ADO Version).
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static int iImportDatabaseADO(
IWin32Window owner,
string connect,
string temp,
ref string table,
int table_size
)
public static int iImportDatabaseADO(
IWin32Window owner,
string connect,
string temp,
ref string table,
int table_size
)
Public Shared Function iImportDatabaseADO (
owner As IWin32Window,
connect As String,
temp As String,
ByRef table As String,
table_size As Integer
) As Integer
Public Shared Function iImportDatabaseADO (
owner As IWin32Window,
connect As String,
temp As String,
ByRef table As String,
table_size As Integer
) As Integer
public:
static int iImportDatabaseADO(
IWin32Window^ owner,
String^ connect,
String^ temp,
String^% table,
int table_size
)
public:
static int iImportDatabaseADO(
IWin32Window^ owner,
String^ connect,
String^ temp,
String^% table,
int table_size
)
static member iImportDatabaseADO :
owner : IWin32Window *
connect : string *
temp : string *
table : string byref *
table_size : int -> int
static member iImportDatabaseADO :
owner : IWin32Window *
connect : string *
temp : string *
table : string byref *
table_size : int -> int
Parameters
- owner
- Type: System.Windows.FormsIWin32Window
The IWin32Window the message box will display in front of. - 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) - table_size
- Type: SystemInt32
Size of table string
Return Value
Type:
Int32
0 - OK
-1 - Cancel
Remarks
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)
See Also