Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


SignHard
2019-06-21T17:59:22Z
Hello,

New to VC, I am trying to load the data from sql to mysql. I have a SQL Job that i am trying to move to VC.

The commands are
EXEC('TRUNCATE TABLE details;') AT Linked_Server_Name
EXEC('LOAD DATA LOCAL INFILE ''' + @DataFile1 + ''' INTO TABLE details FIELDS TERMINATED BY ''\t'' ENCLOSED BY ''^'' LINES TERMINATED BY ''\r\n'';') AT Linked_Server_Name

I get error messages
Msg 102, Level 15, State 1, Procedure , Line 1
Incorrect syntax near 'TRUNCATE TABLE details;'.
Exception in Task: Incorrect syntax near 'TRUNCATE TABLE details;'.

How can i go about truncating the table in mysql and dumping the data from sql to mysql?

Thanks
SH
Sponsor
Forum information
Support
2019-06-25T14:46:43Z
You should not use EXEC - just the command itself like:

TRUNCATE TABLE details
Henrik
Support
http://www.visualcron.com 
Please like  VisualCron on facebook!
Scroll to Top