Re: Embedded SQL and comments
- From: "Anders Altberg" <anders.altberg>
- Date: Sat, 5 Apr 2008 12:43:00 +0200
VFP doesn't support -- for comments anywhere. If you're sending off the sql
as a string to some other backend, I can't say; you'd better test it. VFP
does parse even this sort of string placed in a SQLEXEC() function and turns
embedded ?varable or ?vfpfunction(), and ¯o variables, into literal
values, before passing it on to the ODBC layer.
-Anders
"PSULionRP" <PSULionRP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4E5204F2-F59B-476B-AEB6-F6BE4AAA19FD@xxxxxxxxxxxxxxxx
Straight SQL. I just wasn't sure if Visual FoxPro would like the "--"
comment
parsers or not.
"swdev2" wrote:
I don't take that approach.
I'll copy the entire sql block to a new area/line, comment out the old
sql
block in it's entirety, also put date/time stamp in the comments, along
with
yer initials, cause -
USUALLY
a sql block code change occurs,
IN A PRODUCTION SYSTEM
because of BUSINESS RULE CHANGE.
You'll want to document that change, everwhere you are, in case the phb's
CHANGE THEIR MINDS AGAIN.
If you are thinking about using "--", then is this STRAIGHT SQL for VFP,
or SQL to be PASSED into a backend server using odbc ? (My thought is
SPT,
btw)
Regards [Bill]
--
===================
William Sanders / EFG VFP / mySql / MS-SQL
www.efgroup.net/vfpwebhosting
www.terrafox.net www.viasqlserver.net
"PSULionRP" <PSULionRP@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:10AC7648-6BDB-485A-B275-A16823985610@xxxxxxxxxxxxxxxx
I am enhancing a Visual FoxPro batch program with a .prg extension. Icomments,
am
specifically changing the SQL so I'd like to comment within the SQL.
That
being said, should my comment be prefaced with "--" designating SQL
or "*" designating FoxPro comments???
Thanks in advance for your help.
PSULionRP
.
- References:
- Embedded SQL and comments
- From: PSULionRP
- Re: Embedded SQL and comments
- From: swdev2
- Re: Embedded SQL and comments
- From: PSULionRP
- Embedded SQL and comments
- Prev by Date: Re: Using Native VFP Tables and Network Performance
- Next by Date: Playing .wav Files
- Previous by thread: Re: Embedded SQL and comments
- Next by thread: Playing .wav Files
- Index(es):
Relevant Pages
|