SqlSetFactory Function (String) | |
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.19
Syntax FUNCTION SqlSetFactory(
cFactory AS STRING
) AS ISqlFactory
public static ISqlFactory SqlSetFactory(
string cFactory
)
Request Example
View SourceParameters
- 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