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

Re: SQL Errors: Where is the error?

by "swdev2" <wsanders@[EMAIL PROTECTED] > Jan 1, 2008 at 11:05 PM

Well Gene -
Just remember -
different pieces of a sql statement have some kind of delimitation.
if it's field list, you gots a comma until the last field
if it's line  continuances, you gots a semi-colon
for somethings, you might have a + sign, depending on how yer
concactenating
the sql statement

on top of that, I took advantage of the <<text>> <<endtext>> bits inside
of
the utility, at the end part,
and did a bunch of evals inside of it.

I can't say it's a pretty chunk of code , but it does check for proper
punctuation and ORDER of things, then rebuilds it into
whichever sql standard it's about to be processed on (VFP, Oracle, mySql,
ms-sql).

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:iicin31t2aic7isc7q62dsjds5vofa7agl@[EMAIL PROTECTED]
> "swdev2" <wsanders@[EMAIL PROTECTED]
> wrote:
>
> >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.
>
>      Details, please?
>
> 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:15:37 CST 2008.