dbsetmaxprocs

Sets the maximum number of simultaneously open DBPROCESS structures.

Syntax

RETCODE dbsetmaxprocs ( SHORT maxprocs );

where

maxprocs
Is the new limit on simultaneously open DBPROCESS structures for this particular application.

Returns

SUCCEED if the function call is successful, or else FAIL (that is, maxprocs <= 0).

Remarks

A DB-Library application has a maximum number of simultaneously open DBPROCESS structures. Although the default number is 25, the application can change it by calling dbsetmaxprocs.

Similarly, the program can find out what the current limit is by calling dbgetmaxprocs.

The following table shows platform-dependent connection limitations:

Operating
system
Maximum number of
connections per workstation
Windows 45 for all SQL Server running applications
MS-DOS 15

See Also

dbgetmaxprocs, dbopen