I haven't worked with Azure SQL. You could set some setting with SQLSETPROP() Function Look at ConnectTimeOut and DispLogin settings.
The SQLConnect function returns a -1 when the connection isn't created. HTH, Tracy -----Original Message----- From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Philip Borkholder Sent: Tuesday, June 18, 2024 9:34 AM To: profoxt...@leafe.com Subject: VFP 8, ODBC connection to Azure SQL Server Pausing Hello, I have been having issues with MS Azure SQL Server going to a "pause state" at night after no activity. Then when I try to connect with : lnConnection = SQLSTRINGCONNECT(lcConnString,.T.) Because the Azure SQL Server is paused, the SQLSTRINGCONNECT() times out and prompts with the ODBC failed to connect and SQL Server login prompt. This is annoying when I don't want that to pop up because the end user will not know what to do. All the help online just says an Azure SQL Server resumes once an attempt to connect is made... Does anyone have any experience with this? Is it a timeout issue that we can set in our connection string? Is there a setting on the Azure SQL server we need to set to not allow it to pause? Thanks for any guidance, Philip Borkholder Bison Tech Plus Vicksburg, MI [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: https://leafe.com/archives This message: https://leafe.com/archives/byMID/003f01dac18a$55ecf090$01c6d1b0$@powerchurch.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.