Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to write the Following Equevalant Query Expand / Collapse
Author
Message
Posted Thursday, October 3, 2013 4:38 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Monday, April 21, 2014 11:55 PM
Points: 64, Visits: 205
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);
Post #1501106
Posted Thursday, October 3, 2013 4:48 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, June 10, 2014 3:10 AM
Points: 1,151, Visits: 82
You can use BCP command for this.

Try searching use of BCP command.
Post #1501109
Posted Thursday, October 3, 2013 5:03 AM


SSC-Insane

SSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-InsaneSSC-Insane

Group: General Forum Members
Last Login: Today @ 12:03 AM
Points: 20,703, Visits: 32,344
You may want to look at BULK INSERT:

http://msdn.microsoft.com/en-us/library/ms188365(v=sql.110).aspx/html



Lynn Pettis

For better assistance in answering your questions, click here
For tips to get better help with Performance Problems, click here
For Running Totals and its variations, click here or when working with partitioned tables
For more about Tally Tables, click here
For more about Cross Tabs and Pivots, click here and here
Managing Transaction Logs

SQL Musings from the Desert Fountain Valley SQL (My Mirror Blog)
Post #1501116
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse