Ads Server settings not used in .net application using Advantage.Data.Provider

若如初见. 提交于 2019-12-24 12:02:57

问题


We're connecting to an Ads server with a .net application using the Advantage .NET Data Provider.

The ServerType = REMOTE. The max. connections on the server is set to 150.

When we connect from a client we get a "6303 Maximum Advantage Database Server connections exceeded" error. Turns out it uses the default 50 max. connections for an application.

When we place an ads.ini file with MAX_CONNECTIONS set to 150 in the folder of the .net application (where also the Advantage.Data.Provider.dll sits), these settings are used.

It doesn't fall back to ServerType = LOCAL, because we tested this by removing the adsloc.dll and adslocal.cfg files.

Why doesn't the AdsConnection use the server settings (being 150)?


回答1:


The client and server have a different number of allowed connections. They have separate settings.

The client side setting limits the total number of connection the client application can open to one or more servers.

The server side setting limits the total number of connection the server can have open from all connected clients.

On newer servers (since 10.0?) the number of connections is a soft limit and may be raised when necessary.



来源:https://stackoverflow.com/questions/10582775/ads-server-settings-not-used-in-net-application-using-advantage-data-provider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!