Hi all, I have a task at the minute which involves getting data from
csv files into a database and doing some nice auditing on the records
in there on a web front end. The csv files are going to be stored on a
file server and the web and database server will communicate no problem
with this. My question is this, what is the best way for the csv data
to be imported in database? Is it have a windows service, like a
listener that runs every say 30 mins or something and then will get the
data from the csv and update, insert as required based on keys, this
would be on the file server. Or should I use a web service on the web
server that checks the file on the file server and then does the
working of the csv data? What is the best way to do this, does either
method have a really big advantage. I have done plenty of .net work in
the last few years but have not really looked into windows services,
just web services, but maybe for the infrastructure of clients it might
be better to have the windows service? Any ideas appreciated?
Cheers
J 2 2289
Without shadow of doubt, you should use Windows Services.
Windows Services are active players, whereas a webservice is just sitting
around "servicing" clients connecting to it when appropriate.
You can not make a webservice take an initiating part in a system setup (or
at least that is not the intention). This is however the job of a windows
Service.
So in short: Create a windows service performting your import (CSV) job.
Indeed if you are talking about import into a sqlserver, consider DTS as well
(part of Sql server).
--
rgds.
/Claus Konrad
MCSD.NET (C#)
"Jenbo" wrote:
Hi all, I have a task at the minute which involves getting data from
csv files into a database and doing some nice auditing on the records
in there on a web front end. The csv files are going to be stored on a
file server and the web and database server will communicate no problem
with this. My question is this, what is the best way for the csv data
to be imported in database? Is it have a windows service, like a
listener that runs every say 30 mins or something and then will get the
data from the csv and update, insert as required based on keys, this
would be on the file server. Or should I use a web service on the web
server that checks the file on the file server and then does the
working of the csv data? What is the best way to do this, does either
method have a really big advantage. I have done plenty of .net work in
the last few years but have not really looked into windows services,
just web services, but maybe for the infrastructure of clients it might
be better to have the windows service? Any ideas appreciated?
Cheers
J
Cheers for the info, never thought of using a DTS to do this, would
take a away one level of complexity without the service and would be
nice and neat.
Thanks
J
Claus wrote:
Without shadow of doubt, you should use Windows Services.
Windows Services are active players, whereas a webservice is just sitting
around "servicing" clients connecting to it when appropriate.
You can not make a webservice take an initiating part in a system setup (or
at least that is not the intention). This is however the job of a windows
Service.
So in short: Create a windows service performting your import (CSV) job.
Indeed if you are talking about import into a sqlserver, consider DTS as well
(part of Sql server).
--
rgds.
/Claus Konrad
MCSD.NET (C#)
"Jenbo" wrote:
Hi all, I have a task at the minute which involves getting data from
csv files into a database and doing some nice auditing on the records
in there on a web front end. The csv files are going to be stored on a
file server and the web and database server will communicate no problem
with this. My question is this, what is the best way for the csv data
to be imported in database? Is it have a windows service, like a
listener that runs every say 30 mins or something and then will get the
data from the csv and update, insert as required based on keys, this
would be on the file server. Or should I use a web service on the web
server that checks the file on the file server and then does the
working of the csv data? What is the best way to do this, does either
method have a really big advantage. I have done plenty of .net work in
the last few years but have not really looked into windows services,
just web services, but maybe for the infrastructure of clients it might
be better to have the windows service? Any ideas appreciated?
Cheers
J This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Laszlo Zsolt Nagy |
last post by:
Sorry, I realized that the import zlib was not executed from my
(working) service.
So here is the question: why can't I use zlib from a win32 service? Is
there any way to make it working?
>-------------
>Python could not import the service's module
> File "T:\Python\Projects\NamedConnector\Service.py", line 17, in ?
> from Processor import *
> File "c:\Python\Projects\NamedConnector\Processor.py", line 35, in ?
|
by: Cantankerous Old Git |
last post by:
I am trying to write a program that I hope to get working as a
command-line app to start with, and then eventually use a windows
service wrapper to call it as a service. Its purpose is to attach
to an already running (not ours) service using an API DLL, where
it will do houskeeping and monitoring tasks.
This is where it all gets strange. Although I can make calls into
the API and do things proactively, when I register a callback for...
|
by: Charles Leonard |
last post by:
I am having yet another issue with Windows Server 2003. This time, the web
service (a file import web service) appears to run except for one odd
message: "ActiveX component can't create object". There are no other
statements to indicate what object cannot be created. Otherwise, everything
on the test Windows Server 2003 works fine—all import data updates correctly.
Unfortunately, my normal development environment is not Windows...
|
by: Trevor |
last post by:
Argh! This problem is driving me nuts! Can you help?
In November of 2003, I installed a web service on Windows Server 2003 built
in VB.NET for v1.1.4322 of the framework. It contains a timer
(System.Timers.Timer) which has an interval of 24 hours. Actually, it reads
a time like 2AM out of the config file, and calculates the time between the
start of the service to 2AM, and sets the timer. When the timer expires, it
re-reads the...
|
by: D |
last post by:
I have a simple file server utility that I wish to configure as a
Windows service - using the examples of the Python Win32 book, I
configured a class for the service, along with the main class functions
__init__, SvcStop, and SvcDoRun (which contains my server code). After
registering the service, I am able to start it with no problems.
However, it never stops correctly (net stop returns "service could not
be stopped") and service is left...
| |
by: rodmc |
last post by:
Hello,
I am trying to figure out how to write a windows service, I am totally
new to it. I have written a simple test case, however it doesn't appear
to do anything. Although it installs and appears to start, when I run a
query of its status (using another app) it says it is not running. As
a note I am running it as the administrator in a Win2k machine to avoid
any problems with permissions - although I would rather not do this for...
|
by: JDF |
last post by:
I am trying to create a Windows service using SimpleXMLRPCServer and
win32serviceutil. The service itself seems to be working properly
(starts, stops, etc) and I can connect using an XMLRPC client from the
localhost. However when I connect from a remote client, I either get a
socket error or an xmlrpclib.ProtocolError error. If I use
serve_forever() rather than handle_request(), the remote clients can
connect but it breaks the Windows...
|
by: Rudy Schockaert |
last post by:
After some Googling I found a post of someone who wanted to do exactly
as what I want to do now.
There is however a problem in his code that makes the service fails
after the first connection. I slightly modified his code and now I can
run the service longer before I run into trouble.
I then tried making the SimpleXMLRPCServer multi-threaded, hoping the
problem would disappear, but no avail.
The code is as follows:
The commented part in...
|
by: =?Utf-8?B?RGlvZ28gQWx2ZXMgLSBTb2Z0d2FyZSBEZXZlbG9w |
last post by:
Greetings,
I would like to create a windows service that would expect an event from my
software to import data from a device and/or to import data in scheduled times
My questions are:
- How can I tell the windows service to import data from another application?
- Is it possible to have a UI for the service, like a tray icon with the
status of the service?
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |