EAPUtilSQLString Method (Object, OleDbType, DBMSType) |
Generate a SQL representation of the value for the specified DataType and DBMS.
Namespace:
NetQuarry
Assembly:
EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax public static string SQLString(
Object val,
OleDbType dataType,
DBMSType dbmsType
)
Public Shared Function SQLString (
val As Object,
dataType As OleDbType,
dbmsType As DBMSType
) As String
Parameters
- val
- Type: SystemObject
The value to format. - dataType
- Type: System.Data.OleDbOleDbType
The data type of the value. - dbmsType
- Type: NetQuarryDBMSType
The DBMS for which to format.
Return Value
Type:
StringThe value formatted for use in a SQL statement against the specified DBMS.
Remarks
If DBMSType is zero the SQL will be rendered in a DBMS-independent manner
possibly including embedded expressions.
See Also