473,419 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

Running Query Removes Linked Table Association?

Hello all,

I have an extremely simple query I'm running on a linked table.
However, when I run it (primarily, I'm exporting to a .txt file, but
the behavior persists even if I run the query), it returns zero
results. Then, when I view the table, it has zero records.

If I re-establish the link to the table, the table shows full of data
again. I run the query, it returns zero results, the table is empty
again.

Once, I ran the query and it returned ~10% of the results, and the
table had ~10% of its data remaining. As usual, when I re-established
the link to the table, it showed up with the normal data set.

Any ideas? As I say, it's an extremely simple query:
SELECT ProductData.ASIN
FROM ProductData
GROUP BY ProductData.ASIN;

The linked table is a .txt file in the same folder as the database; it
is too large to import into the database directly.

Cheers,
Chris Hafner

Aug 27 '07 #1
2 1791
On Mon, 27 Aug 2007 13:27:47 -0700, ha****@peoplepc.com wrote:

This query is equivalent to:
select distinct ASIN from ProductData
See if it gives you better results.

How big is your text file? Perhaps you could import it in SQL Server.
I think the text ISAM is a bit limited.

-Tom.
>Hello all,

I have an extremely simple query I'm running on a linked table.
However, when I run it (primarily, I'm exporting to a .txt file, but
the behavior persists even if I run the query), it returns zero
results. Then, when I view the table, it has zero records.

If I re-establish the link to the table, the table shows full of data
again. I run the query, it returns zero results, the table is empty
again.

Once, I ran the query and it returned ~10% of the results, and the
table had ~10% of its data remaining. As usual, when I re-established
the link to the table, it showed up with the normal data set.

Any ideas? As I say, it's an extremely simple query:
SELECT ProductData.ASIN
FROM ProductData
GROUP BY ProductData.ASIN;

The linked table is a .txt file in the same folder as the database; it
is too large to import into the database directly.

Cheers,
Chris Hafner
Aug 28 '07 #2
ARC
Could you write code to process the text file, line by line, and write the
results into an access table? That would seem to be a better way to go than
linking to a text file. If you need code samples for processing a flat file,
let me know.

Andy
Aug 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim Dandy | last post by:
I have a table with 3M rows that contains a varchar(2000) field with various keywords. Here is the table structure: PKColumn ImageID FullTextColumn There is an association table: ImageID...
5
by: deko | last post by:
How to run action query against linked table? I have an Access 2003 mdb with an Excel 2003 Workbook as a linked table. When I attempt to run an action query against the linked table I get this...
4
by: dp | last post by:
After looking and looking, it appears that Access ADPs graphic query designer won't display: update customer set = . from customer, where customer. = .; It comes up with the "Query...
8
by: Janelle.Dunlap | last post by:
My database is linked to external data from a single Excel spreadsheet. I currently have it so that the entire spreadsheet exports into one table, but really for the purpose of my database it will...
0
by: lesperancer | last post by:
I've got a sql server view that returns data, as a linked table to access97 (qryPlannedPurPT) this link table is used in an access query (qryPlannedPUR) that uses all of the linked table fields...
3
by: Simon | last post by:
Dear reader, One table in database A...mdb is linked to a table in database B..mdb. As A..mdb is open and in B...mdb starts an excel import procedure the progress bar shows that the import...
2
by: Mike | last post by:
Hi everyone, I found the Access reports too limited to do what i wanted so i created a module to export a crosstab query to an excel file, and then i modify it as i want. My problem is that i...
23
by: mlcampeau | last post by:
Hey guys, I have been mulling over this problem for a few days and have yet to come up with a query that will give me the expected results. I am working on a database that stores employee...
10
by: MeeMee | last post by:
Hi I have a problem appending data into an oracle table from access. I imported the new data from an excel sheet into a table in access and useed an append query to add the data into a linked...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.