HighTechTalks DotNet Forums  

SQL syntax error

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss SQL syntax error in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Brad
 
Posts: n/a

Default SQL syntax error - 11-23-2004 , 12:10 PM






When using an OleDbCommand object to attempt to import a CSV text file,
I get a syntax error in the from clause.

I can access the same text file like yay:
__connection str__
Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\import;Extended
Properties=Text
__query__
SELECT * FROM [import.txt]

Here is the offending SQL:
SELECT * INTO [TempTable] FROM [Text;DATABASE=f:\import].[import.txt]

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.