Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Supressing SQL Server error Messages From FoxPro
Message
From
22/10/2000 16:51:21
 
 
To
22/10/2000 15:59:54
Christopher Pinnock
United General Insurance Company
Kingston, Jamaica
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00432649
Message ID:
00432660
Views:
17
>Is there a way to supress connection level windows that come up. eg. I'm trying to connect to a server that does not exist. A window will pop up after the SQLCONNECT() function is run stating the error, subsequently another window will appear which will allow me to login to the sql server directly. Is there a way to handle these errors myself and display my own errors ??

SQLSetProp(0,'DispLogin',3)
SQLSetProp(0,'DispWarnings',.f.)

You can specify these for the connection, using 0 sets the default for any new connections you create. If you are using connections, you can set these properties in the connection designer.

BOb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform