Click or drag to resize

SqlSetFactory Function (String)

X#
This function allows you to choose the Ado.Net provider that is used for the subsequent SqlConnect() or SqlStringConnect() calls.

Namespace:  XSharp.VFP
Assembly:  XSharp.VFP (in XSharp.VFP.dll) Version: 2.21
Syntax
 FUNCTION SqlSetFactory(
	cFactory AS STRING
) AS ISqlFactory
Request Example View Source

Parameters

cFactory
Type: String
This is the name of a built-in SQL Factory as a string. Valid values are at this moment: "ODBC", "OLEDB" and "SQLSERVER".

Return Value

Type: ISqlFactory
The currently installed SqlFactory class.
See Also