Click here to Skip to main content
15,923,120 members
Home / Discussions / Database
   

Database

 
Generalsaving and retrieving image data Pin
Rashid_Mehmood27-Jan-05 20:01
Rashid_Mehmood27-Jan-05 20:01 
GeneralRe: saving and retrieving image data Pin
Colin Angus Mackay28-Jan-05 0:39
Colin Angus Mackay28-Jan-05 0:39 
GeneralRe: saving and retrieving image data Pin
Mike Dimmick28-Jan-05 2:38
Mike Dimmick28-Jan-05 2:38 
GeneralRe: saving and retrieving image data Pin
Mr.Cooper9-Feb-05 1:01
Mr.Cooper9-Feb-05 1:01 
Generaldatatable only working occasionally Pin
lxhan27-Jan-05 18:49
lxhan27-Jan-05 18:49 
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 
Hi there,

I'm trying to access a CSV file using jet from my C++ app using ADO. Here is my connection string:

"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<my db="" directory="">;Extended Properties=text;"

I have also tried:

"Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=<my db="" directory="">;Extensions=asc,csv,tab,txt;"

(where <my db="" directory=""> is the path and name of the directory where the csv file is stored)

The query is, eg, "select * from MyTable" where MyTable.txt exists in the directory given in the control string.

The error message I get is: The Microsoft Jet database engine cannot open the file ''. It is already opened exclusively by another user, or you need permission to view its data.

This seems odd to me because it seems like the name of the file it is trying to open is empty. But I know it's going to MyTable.txt because if I rename MyTable.txt I get the error message:

"The Microsoft Jet database engine could not find the object 'MyTable.txt'. Make sure the object exists and that you spell its name and the path name correctly."

More information:
-I am logged in as Administrator and have full access rights to MyTable.txt.
-This is the very first query I do
-The error occurs in the call to RecordSet::Open, ie when I query the file, not when I open the connection
-If I change the connection string and nothing else, I can connect and query an MSDE DB without any problems, so I think my ADO is OK.

Does anyone know what's going on?
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 
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 

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.