Solved

Connection Failure ADP to SQL Server

Posted on 2006-11-07
2
322 Views
Last Modified: 2008-02-01
All,
I have an SQL sever backend and ADP front end.  As I was working along I suddenly got a Message "Connecton failure" on the update of a form.  I re-ran the procedure and noticed that even though I had an error trap "On error got to" statement the error occurred on the EXIT SUB line and did not go through the error trap at the bottom of the procudure.  I would simply get the message titled "ADP" connection failure.  My database use an application role which is turned on when the uses opens the front end app.  I noticed after playing around that the ADP will simply try to reconnect on its own if it succeeds it continues or just gives the connection failure message at which point I have to log out and back in. PROBLEM:

1. How do I trap a run-time connection failure
2. If ADP is trying to re-connect on its own, I would imagine that it is not calling the TurnOnAppRole which I have when the users opens the dB. This would allow the user to cintinue in the dB not under the control of the app role I would think - this is bad.
IN SHORT:
3. How can I know the status of the ADP/SQL connection and App role status during runtime (From the ADP Front End), and if there is a failure try to reconnect and turnon the app role automatically or if that fails give the user a message and log them out.
0
Comment
Question by:pscholl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 30

Accepted Solution

by:
nmcdermaid earned 500 total points
ID: 17894653
The connection failure isn't actually caused by a line in your code so the error handler doesn't pick it up.

Therefore I don't think there is a way to trap it.


I can only suggest that you try and extend the connection and command timeouts in the connection properties, though how you actually do this I'm not too sure.

If the timeouts are extended, it might wait longer before deciding that the connection is broken.


Sorry I can't help too much more.
0
 
LVL 1

Author Comment

by:pscholl
ID: 17930894
Thank You nmcdermaid for your response and input.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question