473,396 Members | 2,098 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,396 software developers and data experts.

Problem using Access linked table in Visual Studio.Net

Using Access 2000, I have a linked table using specification named
"Test Link Specification"

When attempting to create data adapter in VS.Net, it first complains
that it cannot retrieve the schema for the table, or when trying to
preview data, it says that "The text file specification 'Test Link
Specification' does not exist.

??

These tables work if imported and not linked. I like just linking as
the text file changes daily. Or, is there a way to automatically
import the file at a selected time every day?

Thanks,

Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."
Nov 13 '05 #1
4 4028
Larry Rekow <larry@netgeexdotcom> wrote in message news:<to********************************@4ax.com>. ..
Using Access 2000, I have a linked table using specification named
"Test Link Specification"

When attempting to create data adapter in VS.Net, it first complains
that it cannot retrieve the schema for the table, or when trying to
preview data, it says that "The text file specification 'Test Link
Specification' does not exist.

??

These tables work if imported and not linked. I like just linking as
the text file changes daily. Or, is there a way to automatically
import the file at a selected time every day?


If this were VB6 or Access, I would create a form with a timer on it
that checked the time every so often and then if the time were
(whatever), run the import. Check www.mvps.org/access for Scheduler
stuff... How to do it in .NET, not a clue.
Nov 13 '05 #2
That kind of specification is stored in the database, and
is not accessible to VS.NET. You need a schema.ini file
in the same folder as the text file. If you move the text
file, you need to move/copy the schema.ini file as well.

(david)

"Larry Rekow" <larry@netgeexdotcom> wrote in message
news:to********************************@4ax.com...
Using Access 2000, I have a linked table using specification named
"Test Link Specification"

When attempting to create data adapter in VS.Net, it first complains
that it cannot retrieve the schema for the table, or when trying to
preview data, it says that "The text file specification 'Test Link
Specification' does not exist.

??

These tables work if imported and not linked. I like just linking as
the text file changes daily. Or, is there a way to automatically
import the file at a selected time every day?

Thanks,

Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."

Nov 13 '05 #3
On 24 Aug 2004 16:55:41 -0700, pi********@hotmail.com (Pieter Linden)
wrote:
If this were VB6 or Access, I would create a form with a timer on it
that checked the time every so often and then if the time were
(whatever), run the import. Check www.mvps.org/access for Scheduler
stuff... How to do it in .NET, not a clue.

++++++++++++++++++++++++++++++++++++++++++++++++++ +++++++++
thanks to you and david for responses. I believe I've finally solved
the problem in a way similar to your suggestion.

I wrote a macro in the Access db to do 3 things:
1) delete the table
2) import the table again from the specified text file using the
required specification, and
3) quit access

then i created a batch file which opens access and opens the db with
the /x switch and the name of the macro

this will open the db, run the macro, and quit, as per the macro

then i put this batch file in the task scheduler to run shortly after
the daily text report is run.

I had never before realized the full potential of the macros in
Access; now thinking about using it to import to a temporary table and
then munge the data as needed with a query to create an even better
table...one I can use without having to use a query or view on top of
it.

Thanks again,

Larry Rekow
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."
Nov 13 '05 #4
> thanks to you and david for responses. I believe I've finally solved
the problem in a way similar to your suggestion.

I wrote a macro in the Access db to do 3 things:
1) delete the table
2) import the table again from the specified text file using the
required specification, and
3) quit access


if your imports are always going to have the same structure, why not
just leave the table intact and just delete the contents when you're
done and compact the DB on close? Better yet, import to a temporary
DB, call the macro to process the data and then import to the final
one.
Nov 13 '05 #5

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

Similar topics

20
by: Neil | last post by:
I have an Access 2000 MDB file with a SQL 7 back end. I have a main table with 50,000 records; and I have a selections table with 50,000 records for each machine that uses the database (about...
2
by: Robert McGregor | last post by:
Hi all, I've got a Front End / Back End database that was working just fine. One day i opened the FE to find that if I tried to open one of the linked tables from the database window, nothing...
1
by: kuhni | last post by:
Hi everybody! Writing this time, I'm really desperate. Basically, I have a conceptual problem of how to solve a certain "problem" in MS Access 97. General objective: In order to categorise...
1
by: nitin_dangare | last post by:
Hi Everybody, Firstly I opologies if this is not the exact group to fire this query. I am working in VC++ 6.0. I have a strange problem with the MS Jet Exchange Isam (MSEXCH40.DLL). Using...
5
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
6
by: Mikey G | last post by:
Hi, Here is a shorter code example since the last message I posted got truncated. So the problem is I created a simple VB.NET 2003 application through Visual Studio that connects to a MySQL...
7
by: sturlamolden | last post by:
This question has been asked many times, and last time I was accused of spreading FUD. So now I will rather propose a solution. The reason for the problem is as follows: The binary installer...
1
by: mchirouze | last post by:
Hi ! I'm trying build a tool that pre-processes an Access database and then exports the results to a SQL Server database. I find it easier to work with SQL queries than to do line-by-line...
0
by: mchirouze | last post by:
Hi ! I'm trying build a tool that pre-processes an Access database and then exports the results to a SQL Server database. I find it easier to work with SQL queries than to do line-by-line...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...

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.