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 6 of 11 Topic 821 of 861
Post > Topic >>

Re: SQL Errors: Where is the error?

by "swdev2" <wsanders@[EMAIL PROTECTED] > Dec 24, 2007 at 11:25 PM

Gene -

I take a different approach.
I programmatically build SQL Select statements,
and run each piece of it (select, into, where, join, etc)
through a sql pre-processor util that i built some time ago.

i have different flavours of it now, for native vfp, ms-sql, mySql,
postGreSql and oracle.
i think the first iteration of it - i built it in about 2 months of spare
time fiddling.

you may want to take a hard look at making yer own sql pre-processor util.

Regards [Bill]
--
===================
William Sanders / EFG  VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net  www.viasqlserver.net

"Gene Wirchenko" <genew@[EMAIL PROTECTED]
> wrote in message
news:o1nrm3dfulbe7g56mj01d9j5uml3vd8mdp@[EMAIL PROTECTED]
>      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:30:36 CST 2008.