Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which is the best method?
Message
 
To
24/11/2002 10:28:28
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00726261
Message ID:
00726300
Views:
11
I would say using SQLExec. I've had intermittent problems when appending several records to a view and then trying to save changes.

In case you don't know this, you can simplify the creation of the SQL statement to submit by using TEXT / ENDTEXT command in VFP. For example:
text to cSQLInsert textmerge noshow
     insert into mytable( field1, field2, field3 )
     values( '<<MyCursor.fieldA>>', <<MyCursor.fieldB>>, '<<MyCursor.fieldC>>' )
endtext

nError = SQLExec( nConn, cSQLInsert )
>Hi everyone,
>
>I'd like to know your thoughts on which is the best approach for inserting data in SQL Server tables.
>
>Using SQLEXEC(...) and passing a long INSERT sql statement.
>or
>Using a remote view:
>USE RemoteView NODATA
>APPE BLANK
>.
>.
>.
>TABLEUPDATE()
>
>This is strictly from a VFP and performance points of view.
>
>Cheers!
Hector Correa
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform