How to upload a .csv file to SQL server using C++ -


i want upload .csv file sql server create table. working windows 7, visual studio 2012 express version. sql server sql server 2008 r2.

may know how can archieve this? better if can come sample code.

many thanks.

use

bulk  insert <<table name>> <<file name>> ( fieldterminator = ',' rowterminator = '\n' ) go 

see http://blog.sqlauthority.com/2012/06/20/sql-server-importing-csv-file-into-database-sql-in-sixty-seconds-018-video/

edit: need create table, link shows too.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -