Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Element 4 of AERROR array with SQL Serv db
Message
 
 
To
12/07/2012 13:11:29
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01548319
Message ID:
01548389
Views:
55
>>Hi,
>>
>>When in my code the Tableupdate() fails (when updating a table in SQL Server database) I get the error using AERROR(aErrorInfo). The VFP 9 help on AERROR says that the element 4 of the array will have "Character. The current ODBC SQL State" What would be an example of such a value? I am trying to see if saving/capturing the value of this element 4 is useful. Also, element 3 says "Character. The text of the ODBC error message". Is this different from element 2 "The text of the error message"?
>
>To answer your second question first, yes, they're different, but not a lot. In my experience, element 2 gives you the same string as element 3, but preceded by "Connectivity error: " That's with SQL Server.
>
>As for element 4, http://msdn.microsoft.com/en-us/library/ms131387.aspx.
>
>Tamar

Thank you for your help. I was hoping that at least one of these elements would show me the actual values user entered that triggered the problem (in my case it is mostly the foreign key constraint violation).
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform