Click here to Skip to main content
15,906,816 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

SQL
select * into csvtest1 as
BULK
INSERT CSVTest
FROM 'C:\csvtest.txt'
WITH
(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n'
)
GO



I am getting error can anyone please help me
Posted
Comments
André Kraak 14-Oct-11 4:32am    
Please specify the error message you are getting.

If you wish to change your question use the Improve Question button.
hitech_s 14-Oct-11 5:15am    
you want to insert one table data to another table directly?(means bulk)
K N R 14-Oct-11 7:16am    
hi Andre,
Incorrect syntax near the keyword 'as'. am getting these error.

1 solution

As you haven't really specified the error I would read this.

MSDN: Bulk Insert[^]


But as A guess I would remove

SQL
select * into csvtest1 as
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900