Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create a string of values to be used to insert SQ
Message
From
20/10/2006 01:42:15
 
 
To
19/10/2006 23:29:38
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01163553
Message ID:
01163557
Views:
8
>I am trying to create a string depending on the cursor fields & its type to be used to pass it to insert command for SQL server.
>I am having 2 problems
>1> How to include character fields with quotes, square brackets & other special characters.
>2> How to send date fields.
>
>Rajesh

Rather than build a string and worry about data types, etc. is it possible to just pass in the values via parameters? For example something like
SQLEXEC(lnConnection,"INSERT INTO mysqltable 
                      (field1,field2,...fieldn)
                      VALUES (?mycursor.value1,?mycursor.value2,...?mycursor.valuen)")
Previous
Reply
Map
View

Click here to load this message in the networking platform