Click here to Skip to main content
15,915,509 members
Home / Discussions / Database
   

Database

 
GeneralRe: datatable only working occasionally Pin
Colin Angus Mackay27-Jan-05 23:08
Colin Angus Mackay27-Jan-05 23:08 
GeneralRe: datatable only working occasionally Pin
lxhan1-Feb-05 3:33
lxhan1-Feb-05 3:33 
GeneralQuerying CSV db with Jet and ADO Pin
wilsonian27-Jan-05 12:26
wilsonian27-Jan-05 12:26 
GeneralRe: Querying CSV db with Jet and ADO Pin
Rob Graham31-Jan-05 5:15
Rob Graham31-Jan-05 5:15 
GeneralRe: Querying CSV db with Jet and ADO Pin
wilsonian31-Jan-05 8:50
wilsonian31-Jan-05 8:50 
GeneralRe: Querying CSV db with Jet and ADO Pin
Rob Graham31-Jan-05 11:14
Rob Graham31-Jan-05 11:14 
GeneralRe: Querying CSV db with Jet and ADO Pin
wilsonian31-Jan-05 11:53
wilsonian31-Jan-05 11:53 
GeneralRe: Querying CSV db with Jet and ADO Pin
Rob Graham31-Jan-05 14:44
Rob Graham31-Jan-05 14:44 
if select * works, then the connection string is likely ok.
Possibly something in a 'data' row? an '@' or '?'character perhaps?
try adding IMEX=1 to the extended properties section to force all column datatypes to become strings (IMportEXport flag). Normally the provider scans the first 8 rows to determine 'numeric' columns, and could get tricked. Forcing all string datatypes gets around the 'too smart' provider. This is usually needed only for excel files, but may apply to csv as well...

One last possibility: for CSV fies, the provider normally expects an extension of .csv, or at least anything other than .txt. The reason for this is that it looks for an identically named .txt file for 'schema' definitions to use. Perhaps the filename is causing some confusion, select * works because the code takes a different path...


Looking back at code I have used in the past, your connection string looks fine (I have used 1 and YES interchangably as well).

The only thing I see different is that I always used .csv for the extension, and when writing, deleted any .txt files to avoid having the schema file overriding user changes on subsequent reads. If it exists, colum definitions in the .csv file must match those defined in the .txt file exactly or read and write fails...

At any rate it sounds like a bug.

Wish I could help more, but I am a bit mistified too.

Anger is the most impotent of passions. It effects nothing it goes about, and hurts the one who is possessed by it more than the one against whom it is directed.
Carl Sandburg

GeneralRe: Querying CSV db with Jet and ADO Pin
wilsonian31-Jan-05 16:34
wilsonian31-Jan-05 16:34 
GeneralRe: Querying CSV db with Jet and ADO Pin
Rob Graham1-Feb-05 2:42
Rob Graham1-Feb-05 2:42 
GeneralRe: Querying CSV db with Jet and ADO Pin
wilsonian1-Feb-05 8:52
wilsonian1-Feb-05 8:52 
GeneralSet RowCount issue in query containing function tables Pin
-Dr_X-27-Jan-05 4:52
-Dr_X-27-Jan-05 4:52 
GeneralRe: Set RowCount issue in query containing function tables Pin
-Dr_X-27-Jan-05 5:14
-Dr_X-27-Jan-05 5:14 
Generallock triggers while executing a transaction Pin
mhmoud rawas26-Jan-05 0:28
mhmoud rawas26-Jan-05 0:28 
GeneralRe: lock triggers while executing a transaction Pin
tojamismis27-Jan-05 7:35
tojamismis27-Jan-05 7:35 
GeneralMSDE Setup.Exe and Reinstall Pin
Blake V. Miller25-Jan-05 18:28
Blake V. Miller25-Jan-05 18:28 
QuestionCOMException--Why? Pin
mysorian25-Jan-05 18:02
professionalmysorian25-Jan-05 18:02 
AnswerRe: COMException--Why? Pin
tojamismis27-Jan-05 7:45
tojamismis27-Jan-05 7:45 
GeneralRe: COMException--Why? Pin
mysorian27-Jan-05 17:11
professionalmysorian27-Jan-05 17:11 
GeneralBitwise operators in a SELECT statement Pin
Luis Alonso Ramos25-Jan-05 10:31
Luis Alonso Ramos25-Jan-05 10:31 
GeneralRe: Bitwise operators in a SELECT statement Pin
Michael Potter27-Jan-05 4:12
Michael Potter27-Jan-05 4:12 
QuestionCan I use a generic schema.ini file? Pin
MongooseNX25-Jan-05 9:50
MongooseNX25-Jan-05 9:50 
Generalupdate with conversion Pin
Jesse Evans25-Jan-05 9:11
Jesse Evans25-Jan-05 9:11 
Generalmultivalued fields at ado recordset Pin
moses32125-Jan-05 8:25
moses32125-Jan-05 8:25 
GeneralDatabase Logging Pin
Aaron Schaefer24-Jan-05 11:33
Aaron Schaefer24-Jan-05 11:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.