SqlSetMaxProcs%

Sets the maximum number of simultaneously open sqlconn connections.

Syntax

SqlSetMaxProcs% ( maxprocs% )

where

maxprocs%
Is the new limit on simultaneously open sqlconn connections for this particular application.

Returns

SUCCEED if the call is successful; otherwise, FAIL (maxprocs% <= 0).

Remarks

An application can find out the current connection limit by calling SqlSetMaxProcs%. For Windows-based applications, DB-Library for Visual Basic concurrent Windows-based applications can have as many as 45 simultaneously open sqlconn% connections. Although the default number is 25, the application can change the default by calling SqlSetMaxProcs%.

See Also

SqlGetMaxProcs%, SqlOpen%