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

SQL Server text file continuous import problem

Background: I am using a MS Access 2000 front end with SQL Server 8.0
back end.

I have the requirement to import all text files (regardless of
filename) from a given folder on the network into a table within SQL
Server. This import needs to run continuously, as more text files
will be saved in the folder by a separate system and they need to be
updated into the SQL Server table. I have a DTS which can import all
text files from the folder into the SQL Server table.

The problem is in triggering the DTS continuously. (The Schedule
Package only runs at a maximum of once a minute, which is not quick
enough.)

Can anyone answer any, or all, of the following:

1. Is there a way of executing the DTS every time a text file appears
in the given folder?

2. Can ANY DTS be run continuously through a loop (either via a
stored procedure or a 2nd DTS) without affecting any other processes
in the SQL Server? I.e., how can you trigger a DTS to run again as
soon as it has completed, regardless of success or failure?

3. Can you reference / execute a DTS within a stored procedure, and
if so, how is this done?
In addition, I need to have a button on the MS Access 2000 GUI that
runs the DTS in case of failure, as a kind of manual update.

4. Is it possible to run a DTS from the Access front end, and, if
yes, how is it done?
Jul 20 '05 #1
1 5875
Wow

Yes you can execute a package on creation of a text file by building a
FileSystemWatcher application in .Net and having that fire the package.
That way you could pass the name of the file as a variable to the package
and only import that file.

Alternatively you do not use DTS at all and simply have the
FileSystemWatcher application in .Net do the Import of the text file as
well.
Kepping looping on a DTS package? You could I suppose finish the package
with an ExecutePackage task for itself but this could/would get nasty.<g>

You can execute a package through TSQL yes

Execute a package from T-SQL
(http://www.sqldts.com/default.aspx?210)
Yep you can run DTS from Access. You need the DTS Dlls

Redistributing DTS with your program
(http://www.sqldts.com/default.aspx?225)

Execute a package from Visual Basic (VB)
(http://www.sqldts.com/default.aspx?208)
--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Chris" <ch***********@yahoo.co.uk> wrote in message
news:63**************************@posting.google.c om...
Background: I am using a MS Access 2000 front end with SQL Server 8.0
back end.

I have the requirement to import all text files (regardless of
filename) from a given folder on the network into a table within SQL
Server. This import needs to run continuously, as more text files
will be saved in the folder by a separate system and they need to be
updated into the SQL Server table. I have a DTS which can import all
text files from the folder into the SQL Server table.

The problem is in triggering the DTS continuously. (The Schedule
Package only runs at a maximum of once a minute, which is not quick
enough.)

Can anyone answer any, or all, of the following:

1. Is there a way of executing the DTS every time a text file appears
in the given folder?

2. Can ANY DTS be run continuously through a loop (either via a
stored procedure or a 2nd DTS) without affecting any other processes
in the SQL Server? I.e., how can you trigger a DTS to run again as
soon as it has completed, regardless of success or failure?

3. Can you reference / execute a DTS within a stored procedure, and
if so, how is this done?
In addition, I need to have a button on the MS Access 2000 GUI that
runs the DTS in case of failure, as a kind of manual update.

4. Is it possible to run a DTS from the Access front end, and, if
yes, how is it done?

Jul 20 '05 #2

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

Similar topics

1
by: Chris | last post by:
Background: I am using a MS Access 2000 front end with SQL Server 8.0 back end. I have the requirement to import all text files (regardless of filename) from a given folder on the network into a...
3
by: Karen | last post by:
I am attempting to upsize a 60MB database in Access 2000 to sequel server using the upsizing wizard. I go thru all the steps that it mentions in the book, but none of the tables are actually...
0
by: lknight643 | last post by:
I have an asp.net application that works with a SQL server database on server No. 1 but I want to upload files for storage to Server No. 2 that is accessible only from the Internet. If the file...
20
by: TC | last post by:
I need an automated procedure to copy data from an Access table to a SQL Server table. Speed is important. What is the recommended technique? I can export the data from Access, copy it via FTP,...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
4
by: AshishMishra16 | last post by:
HI friends, I am using the Flex to upload files to server. I m getting all the details about the file, but I m not able to upload it to Server. Here is the code i m using for both flex & for...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.