Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending long SQL statements to VFP via OLEDB
Message
From
16/11/2001 10:53:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
15/11/2001 20:26:48
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00582403
Message ID:
00582714
Views:
39
>Funny to reply to myself, but in case anyone else is wondering about this issue, I found what appears to be part of the solution on the MS Knowledge base.
>
>According to the Knowledge Base, VFP can only accept SQL strings from a SQLEXEC statement if the statement contains no strings greater than 255 characters. The article says that to create a longer SQL statement, you should concatenate smaller strings together into a larger statement.
>
>However, that doesn't seem to help anyone sending SQL statements from ASP. I would still appreciate any thouhts. Thanks.
>
>The URL is: http://support.microsoft.com/support/kb/articles/Q163/8/00.asp?LN=EN-US&SD=gn&FR=0&qry=Visual%20FoxPro%20SQL%20Statement%20255%20characters&rnk=3&src=DHCS_MSPSS_gn_SRCH&SPR=MSALL

Josh,
I think you really found the answer yourself but overlooking it. From ASP it would work too. ie: With a VBScript :
Assuming str1,...str5 are strings no longer than 255.
"insert into myTable (nfield1,cLongInput) values (1,'"_
 & str1 & "'+'" & str2 & "'+'" & str3 & "'+'" & str4 & "'+'" & str5 + "')"
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform