Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending long SQL statements to VFP via OLEDB
Message
De
16/11/2001 10:53:04
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
15/11/2001 20:26:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00582403
Message ID:
00582714
Vues:
40
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform