Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Xbase Fox > Re: SQL Errors:...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 11 Topic 821 of 861
Post > Topic >>

Re: SQL Errors: Where is the error?

by "Dan Freeman" <spam@[EMAIL PROTECTED] > Dec 24, 2007 at 08:14 AM

That's been a bugbear in using SQL from day one since VFP sees the query as

one command. There's not a lot you can do about it.

Careful and consistent formatting can help you spot places where there's a

missing comma or semicolon because they just won't look right. Sometimes. 
<g>

I've been known to set a breakpoint on the line immediately preceding the 
errant query so the environment is set up for it, and while suspended I
copy 
the query to the command window and start pruning until I get something
that 
runs. Often, just the act of looking at the query outside the program 
environment makes the error jump out at me.

I share your pain.

Dan

Gene Wirchenko wrote:
>     I have just finished -- I hope I have finished -- some changes to
> one program of mine that has some hairy SQL.  One of the SQL statments
> is 40 lines long.  Granted it could be shorter vertically, but it is
> still 852 characters long.
>
>     Occasionally -- read "All too often" -- while wrestling with this
> program, there would be an error in my SQL syntax.  VFP is not
> terribly helpful with such error messages as
>          Syntax error.
>          Command is missing required clause.
> These are not terribly useful.  Sometimes, I have hunted for minutes
> before realising that, say, a comma was missing.
>
>     What do you do to quickly find errors in long SQL statements?
>
> Sincerely,
>
> Gene Wirchenko
>
> Computerese Irregular Verb Conjugation:
>     I have preferences.
>     You have biases.
>     He/She has prejudices.
 




 11 Posts in Topic:
SQL Errors: Where is the error?
Gene Wirchenko <genew@  2007-12-22 20:08:17 
Re: SQL Errors: Where is the error?
"Lew" <lew@[  2007-12-23 22:59:19 
Re: SQL Errors: Where is the error?
Gene Wirchenko <genew@  2007-12-31 10:17:37 
Re: SQL Errors: Where is the error?
"Dan Freeman" &  2007-12-24 08:14:17 
Re: SQL Errors: Where is the error?
Cy Welch <cywelch@[EMA  2007-12-24 13:55:15 
Re: SQL Errors: Where is the error?
"swdev2" <ws  2007-12-24 23:25:08 
Re: SQL Errors: Where is the error?
Gene Wirchenko <genew@  2007-12-31 10:18:28 
Re: SQL Errors: Where is the error?
"swdev2" <ws  2008-01-01 23:05:45 
Re: SQL Errors: Where is the error?
"swdev2" <ws  2008-01-01 23:08:46 
Re: SQL Errors: Where is the error?
"Cathy Pountney"  2007-12-26 08:35:27 
Re: SQL Errors: Where is the error?
Gene Wirchenko <genew@  2007-12-31 10:21:35 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:24:42 CST 2008.