all groups > sql server programming > august 2005 >
You're in the

sql server programming

group:

BULK INSERT Query



BULK INSERT Query vineetbatta
8/31/2005 2:22:02 PM
sql server programming: Hey i am planning to use the BULK INSERT to copy the data into my Server. The
data is being written to the file by external application.


But i want the data that is being written should be deleted after the
insert. Can BULK INSERT statement support such option to be specified. other
wise my file will grow infintly over time.

Any suggestion or pointer will be helpful.

--
MCAD
Re: BULK INSERT Query vineetbatta
8/31/2005 2:55:36 PM
But does BULK Insert can keep track of what data has been pushed to server
from last time , so that when it runs the second time it just picks up delta
only.
--
MCAD
Vineet Batta


[quoted text, click to view]
Re: BULK INSERT Query Brian Lawton
8/31/2005 5:44:28 PM
BULK INSERT itself will not manage the files for you. You'll have to do
that yourself via another script. You might want to look into using a DTS
package to manage the BULK INSERT and if successful, execute a script task
to move/delete the file.

--
--Brian
(Please reply to the newsgroups only.)


[quoted text, click to view]

Re: BULK INSERT Query Dan Guzman
8/31/2005 8:43:26 PM
No, but you can insert into a staging table and then run queries to
unset/update data into the main table as desired.

--
Hope this helps.

Dan Guzman
SQL Server MVP

[quoted text, click to view]

AddThis Social Bookmark Button