January 27, 2014 at 12:01 pm
I have a CSV & xls file and I'd like import the data from CSV into SQL server existing table efficiently.
This process should be done automatically on a daily basis (schedule task). I dont have rights to use SSIS/ Import Export Wizard.
Appreciate any automated stored procedure and support from you all.
January 27, 2014 at 12:22 pm
Deries (1/27/2014)
I have a CSV & xls file and I'd like import the data from CSV into SQL server existing table efficiently.This process should be done automatically on a daily basis (schedule task). I dont have rights to use SSIS/ Import Export Wizard.
Appreciate any automated stored procedure and support from you all.
BULK INSERT in T-SQL would be the way to go for the CSV file.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 27, 2014 at 12:44 pm
And there's a recently published article by Jeff on BULK INSERT that will help you as an introduction to your process.
http://www.sqlservercentral.com/articles/BCP+(Bulk+Copy+Program)/105867/
January 27, 2014 at 4:00 pm
Thank you Jeff, Could you or anyone give me a sample code to test it out.
January 27, 2014 at 4:09 pm
Deries (1/27/2014)
Thank you Jeff, Could you or anyone give me a sample code to test it out.
Read what I posted 😛
January 27, 2014 at 4:20 pm
Deries (1/27/2014)
Thank you Jeff, Could you or anyone give me a sample code to test it out.
The link that Luis posted has such sample code in the article.
--Jeff Moden
Change is inevitable... Change for the better is not.
January 28, 2014 at 7:14 am
Hi Luis,
I read your post and tried that for testing. I being a developer it didnt allow me to do insert bulk load because of the rights issue. Thats why i asked for some help to upload the csv file to the existing table.
i am trying to upload the csv file from my local drive to the server.
Msg 4834, Level 16, State 4, Line 12
You do not have permission to use the bulk load statement.
January 28, 2014 at 9:05 am
You have a problem here. You need to do something but you don't have the permissions to do it.
I'd say that you need to talk to your manager, DBA or sysadmin to get the permissions or define that you're not able to do it because you don't have enough permissions. Either you will get the permissions or you'll need to ask someone else to do it (an ETL developer).
Good luck with that, I feel your pain.
January 28, 2014 at 11:21 am
Deries (1/28/2014)
Hi Luis,I read your post and tried that for testing. I being a developer it didnt allow me to do insert bulk load because of the rights issue. Thats why i asked for some help to upload the csv file to the existing table.
i am trying to upload the csv file from my local drive to the server.
Msg 4834, Level 16, State 4, Line 12
You do not have permission to use the bulk load statement.
What privs do YOU have on the SQL Server itself?
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 9 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply