Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Patrick C
  Where is Patrick C?
 St. Michael
 Barbados
 Patrick C
Subject: SQL error message - best practice
Thread ID: 433826 Message ID: 433826 # Views: 52 # Ratings: 0
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Friday, February 12, 2016 5:27:45 PM         
   



Hello Colleagues,

What would you say is the 'best practice' idea for displaying server errors in production? I have 2 scenarios:


AERROR(laError)
MessageBox('Database '+laError[1,2],'Server error')


or

MessageBox('File read/connection error. Server request has been denied',16,'Server error')



In the first option, if a client calls about an error I can see exactly what the problem is and what's causing it but in the second option its not so easy to tell. If I go with the first option, would this be displaying too much info. for the client?

Regards,

Patrick

ENTIRE THREAD

SQL error message - best practice Posted by Patrick C @ 2/12/2016 5:27:45 PM
RE: SQL error message - best practice Posted by Vilhelm-Ion Praisach @ 2/12/2016 8:35:40 PM
RE: SQL error message - best practice Posted by Patrick C @ 2/13/2016 3:18:53 AM