DB Library for C
dbsetmaxprocs
Sets the maximum number of simultaneously open DBPROCESS structures.
Syntax
RETCODE dbsetmaxprocs ( SHORT maxprocs );
Arguments
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 |
---|---|
Microsoft® Windows NT® 4.0 | Limited by amount of memory available. |
Microsoft Windows® 95 or Windows 98 | Limited by amount of memory available. |
Windows | 45 for all Microsoft® SQL Server™ 2000-running applications. |
Microsoft MS-DOS® | 15. |