Solved

Connection Failure ADP to SQL Server

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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

734 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