Re: Dynamic SQL Statements
From: Cindy Winegarden (cindy.winegarden_at_mvps.org)
Date: 07/15/04
- Previous message: Elley Strachan: "Re: 4 Table Join"
- In reply to: Jerry: "Dynamic SQL Statements"
- Next in thread: Jerry: "Re: Dynamic SQL Statements"
- Reply: Jerry: "Re: Dynamic SQL Statements"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 15 Jul 2004 10:57:08 -0400
Hi Jerry,
No one here has specifically mentioned that VFP has a limit of 255
characters for a quoted string. As Rick said, you can break the string into
pieces (<= 255 chars) and then concatenate the pieces before you execute the
SQL.
-- Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP cindy.winegarden@mvps.org www.cindywinegarden.com "Jerry" <Jerry@discussions.microsoft.com> wrote in message news:646D747E-2A6D-4E63-82CE-C4879459707A@microsoft.com... > Hi, I'm trying to build & execute a SQL statement depending on the fields > selected by the user. > For example: > cSQL="SELECT Field1, Field2....." > &SQL > > But I get a "Command contains unrecognized phrase/keyword" error when the > cSQL variable is over 255 characters. > > Is there any way I can execute this command? Perhaps using a memo field? > > Thanks in advance, > > Jerry
- Previous message: Elley Strachan: "Re: 4 Table Join"
- In reply to: Jerry: "Dynamic SQL Statements"
- Next in thread: Jerry: "Re: Dynamic SQL Statements"
- Reply: Jerry: "Re: Dynamic SQL Statements"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|