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 03, 2013 4:38 AM
Valued Member

Valued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued MemberValued Member

Group: General Forum Members
Last Login: Thursday, November 07, 2013 4:54 AM
Points: 64, Visits: 204
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 03, 2013 4:48 AM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, March 06, 2014 10:16 PM
Points: 1,110, Visits: 80
You can use BCP command for this.

Try searching use of BCP command.
Post #1501109
Posted Thursday, October 03, 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 @ 7:23 AM
Points: 22,495, Visits: 30,203
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