Xbasic

SQL_ConnectString Function

Syntax

ConnectionString as C = SQL_ConnectString(P sqlconn ,C API )

Arguments

sqlconn

A SQL::Connection pointer.

API

The name of a supported API.

Returns

ConnectionStringCharacter

A formatted connection string that can be used by SQL::Connection::Open().

Description

The SQL_ConnectString() method invokes an API specific dialog to create a connection string.

Example 

? SQL_ConnectionStringDialog(.t.)
= "{A5API='Access',A5Syntax='Access',FileName='C:\Databases\Northwind\northwind.mdb',UserName='Admin'}"

Limitations

Desktop applications only.

See Also