Home Cart [Log In] About Us Contact Us

Object Reference

xf_SchemaSQLConstructorSQL Constructor

Public Function SQLInsertFromSQL2 (
IntoTableName As String,
objTableSchema As xf_DbSchema_Table,
DefInsTable As String,
SQLFromSource As String,
DefaultInsertUnlisted As Boolean,
AllowAddlCols As Boolean,
IncludeIdentity As Boolean,
CoerceNullToEmptyString As Boolean,
ParamArray FieldValList() As Variant
) As String

See the description for SQLInsertFromSQL_VPA.
The same functionality except for
- the ParamArray is passed in in code, not as a Variant

IntoTableName as String

The table name for the INSERT statement

objTableSchema as xf_DbSchema_Table

The table schema to use for column generation and validation (may be for a different table to IntoTableName but should be similar at least)

DefInsTable as String

The table name to append to a column name in the SELECT value list

SQLFromSource as String

The FROM part of the SELECT statement.

DefaultInsertUnlisted as Boolean

Automatically generate column insertions for columns not defined in the passed name/value list

AllowAddlCols as Boolean

Allow column names in the passed name/value list that are not in the table schema

IncludeIdentity as Boolean

Generate column insertions for the identity column (otherwise it is omitted)

CoerceNullToEmptyString as Boolean

Automatically add nz() around inserted column names

ParamArray FieldValList() as Variant

The paired column names and values

Call Template:

Dim s As String
s = xf.DefaultSchema.SQLConstructor.SQLInsertFromSQL2(IntoTableName, objTableSchema, DefInsTable, SQLFromSource, DefaultInsertUnlisted, AllowAddlCols, IncludeIdentity, CoerceNullToEmptyString, FieldValList)

See Also:

Contact Us :: About Us :: Policies :: email: infspamo@arrospamw-of-tispamme.com    © 2012 Arrow Of Time Pty Ltd