Static Ip problem for sharepoint and database in MSD Axapta

case scenario,

In share point service administration site is working and default database is connecting with static IP of sql database if user removed static ip of database server then sharepoint stop working.  I tried to change ip with pc name in sharepoint administration then still problem exists. Now timeout error is not coming but sometimes error is coming like “ share point issued an error please contact to system administration” from user side.

This error is coming for only one ep page.
On sql event log error.

Unknown SQL Exception 10054 occured. Additional error information from SQL Server is included below.

A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.)


Please share your views for the same

Possible solution:

Remove static Ip of database from sharepoint administration after that is Site stop working then re-configure sharepoint site using share point wizard configuration.