473,472 Members | 2,139 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Sending data to a web database from Windows forms application

Hi All

I need to learn how to update a SQl server or Access database located on a
web server from my windows forms application, via the internet

I have a customer who wants to run several windows forms applications in
different shop locations but all have to update a Web based database with
products sold etc

Is Web services the way to go? or are there better options

Any links to code examples appreciated

Regards
Steve
Mar 4 '07 #1
2 3019
"steve" <ga*****@newsgroups.nospamwrote in news:ucByubiXHHA.4440
@TK2MSFTNGP03.phx.gbl:
Is Web services the way to go? or are there better options
Web services would be ideal for this sort of thing.

Remoting may work too ... if you need access to .NET data types/
Mar 4 '07 #2
Hello Steve,

As you mentioned that the application communcation is over internet, so the
database server should be be directly accessible via other remote
clients(due to security and network restriction). I also think that
webservice should be a reasonable approach as it is designed for loose
coupled distributed environment.

Using webservice, the most important thing is defining class types that
will be transfered over internet(over webservice http protocol). Normally,
for data accessing application, you need to define class types that
represent those database table, record and fields. The .net dataset is a
built-in data component class that can be transferred over XML
serialization based protocol. You can also define your custom class that
can be corretly serialized as XML and transfer over http.

For example, you can directly transfer the data base query/update command
to server-side for execution or transfer DataSet (or custom class
collection and command objects) to server-side and let the server-side
webmethod do the actucal data accessing to backend database:

#How To Update Server Data Through a Web Service by Using ADO.NET and
Visual C# .NET
http://support.microsoft.com/kb/310143/en-us

#Querying and Updating a Database Using Web Services in InfoPath and ASP.NET
http://msdn2.microsoft.com/en-us/lib...ffice.11).aspx

#Toward a Generic Data Access WebService
http://www.eggheadcafe.com/articles/20031106.asp

For more information about webservice, you can visit the MSDN websevice dev
center:

#Web Services and Other Distributed Technologies
http://msdn2.microsoft.com/en-us/web...s/default.aspx

Hope this helps.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


Mar 5 '07 #3

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

Similar topics

6
by: Hamed | last post by:
Hello I have employed as a developer in a software company that its team uses FoxPro / VB 6.0 / VC++ 6.0 as the developing tools and newly is going to migrate to VS.NET. There is a project...
5
by: rogsonl | last post by:
My computer was moved last week, and the company changed the network groups we work on. As a result, one of the main benefits from Whidbey (database connectivity) no longer works. Situation: 1....
10
by: Doug Bell | last post by:
Hi, I have an application that has a "Data Access Class" and "User Interface Class". It is for receiving Purchase Order data from one system and pushing processed transactions to another...
6
by: Wesley Peace | last post by:
I hate to cross post, but I've gotten no answer yet on a problem I'm having with visual studio 2008. I've created a series of forms with controls to access a Access database tables. The...
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...
1
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...
1
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...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.