Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL SERVER

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hi friends

i want to know ! i have to insert 1000 records at a time through ODBC


1.I CAN CREATE PROCEDURE IN SQL SERVER CALL THAT PROCEDURE IN FOXPRO

2.I CAN TAKE LOOP 1 TO 1000 IN FOXPRO USING INSERT INTO STATEMENT

WHICH IS BEST WAY.
THANKS & REGARDS
M.A.KHALEEL
mohaammed

 
IMO,

1 is better because stored procedures are faster and in general the server machine is faster than the client. However, 2 is more clearer in what your are trying to do, especially for other people following the code (this can be worked around by having good docs and remarks). 1 is better but i guess it depends on the task you are trying to achieve. Maybe a bit more details would help.
 
You could also set up a DTS package to connect to your FoxPro table directly and transfer all the dtat in the table at once. You can start the dts package using the DTS run command.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top