Link to home
Start Free TrialLog in
Avatar of CameronFrasnelly
CameronFrasnelly

asked on

ADP disconnect / reconnect using code

Hi there,

We've written a utility (ADP - SQL backend / Access ADP on the front) that we need to disconnect from the SQL server via code each night and then reconnect early in the morning.  Does anyone know how to do this via code?  Thanks!
Avatar of Data-Man
Data-Man
Flag of United States of America image

Is the application closed every night.  shutting down the ADP will disconnect if from SQL Server.  May I ask why you want to do this via code?

Mike
Avatar of CameronFrasnelly
CameronFrasnelly

ASKER

No we don't want to ever shut the application down.  We shutdown our SQL servers each night prior to backing them up which causes our utility to error out so we need to shut it down at 11pm and re-connect at 2am.  And I can't get anyone to volunteer to come in! :)
ASKER CERTIFIED SOLUTION
Avatar of Data-Man
Data-Man
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks did some digging on google for CurrentProject.CloseConnection and found some sample code!