1 Replies - 2088 Views - Last Post: 24 April 2012 - 02:41 PM Rate Topic: -----

#1 kikk  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 24-April 12

C# and Mysql - LOAD DATA INFILE

Posted 24 April 2012 - 02:31 PM

Hi,

I am having problem making below Load Data Infile working in C#, but cannot find the answer on the web. If somebody know what is wrong.

// Execute the request
string szCmd = @"LOAD DATA INFILE 'C:/stockdownload/indikator.csv'  REPLACE INTO TABLE indikator FIELDS TERMINATED BY ';'";
mySqlDataAdapter.UpdateCommand = new MySql.Data.MySqlClient.MySqlCommand(szCmd, mySqlConnection);



Best regards
Kikk

This post has been edited by tlhIn`toq: 24 April 2012 - 02:41 PM
Reason for edit:: code tags


Is This A Good Question/Topic? 0
  • +

Replies To: C# and Mysql - LOAD DATA INFILE

#2 tlhIn`toq  Icon User is online

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5316
  • View blog
  • Posts: 11,365
  • Joined: 02-June 10

Re: C# and Mysql - LOAD DATA INFILE

Posted 24 April 2012 - 02:41 PM

See FAQ # 22. (Click the SHOW button below)


TOP most asked:
What does this error message mean?
FAQ 2: How do I debug
FAQ 3: How do I make Class1/Form1 talk to Class2/Form2


FAQ (Frequently Asked Questions - Updated Apr 2012
Spoiler



Was This Post Helpful? 0
  • +
  • -

Page 1 of 1