October 3, 2013 at 4:38 am
Hi,
can anyone provide me the equivalent MS SQL server query for the following query:
LOAD DATA LOCAL INFILE '/tmp/ state_reg_photo.csv.csv'
INTO TABLE REGISTRAR_REPORTS.srdh_photodata
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY ''
(uid,imagedata);
October 3, 2013 at 4:48 am
You can use BCP command for this.
Try searching use of BCP command.
October 3, 2013 at 5:03 am
You may want to look at BULK INSERT:
http://msdn.microsoft.com/en-us/library/ms188365(v=sql.110).aspx/html
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy