Solved

Connection Failure ADP to SQL Server

Posted on 2006-11-07
2
320 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
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
grouping logic 6 47
MS SQL Inner Join - Multiple Join Parameters 2 19
ms sql last 8 weeks as columns 5 26
How do I Start SQL Management Studio 2012 17 18
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 shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
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 the fundamental information of how to create a table.

911 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now