Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSSQL cannot reconnect after Network disconnection, ERRORCODE 90

Status
Not open for further replies.

Erdgz

Programmer
Apr 15, 2019
1
MX
Hi

I have the following issue. When the computer disconnects from the network long enough(around 30 seconds or so) and it gains again connection to the network, for some reason the program cannot reconnect to the database, only if I close the program and open it again.

When I try to do a Share(file) or Open(file, filemode), I get the following error

Errorcode = 90
ERROR = File System Error
ERRORFILE = Data source name not found and no default driver specified
FILEERRORCODE = IM002

Do you know if there is a way to regain connectivity to the database after losing connection for a while?

When I tried to do a Close(file) I get the error that the file is not open.
But if I then try to open the file, I get the following error:
"invalid connection string attribute"

But I check the string connection and it's the same as when the program starts, so it should reconnect. If I close and open the program it reconnects just fine, but I need to find a solution that does not involve closing and opening the app.

Thanks a lot for your help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top