I just moved an asp/mysql site over to a new windows server and converted to an mssql database. I have changed the paths in my files and reuploaded all necessary database info and all appears to be working fine, except for when I try to execute a few certain SQL statements. Below is the error I get:
Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near 'DATA'.
/ap2336519589/admin/report_upload_action.asp, line 144
Now I know this means something is wrong with my MSSQL statement in my asp so here is my asp (I would like to point out this was in perfect working order on the previous server)
Code:
SQL="LOAD DATA INFILE 'd:/inetpub/virtual/ap2336519589/WWWROOT/data/other/031990.TXT' INTO TABLE weekly_report FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '""' LINES TERMINATED BY '\r\n'"
Set RSSQL = MyConn.Execute(SQL)
That .TXT file exists as far as I can because I type in the http address of the file and it works just fine.
Any help is appreciated.