Windows Mobile 5 - C# - SQL

GeordieLife

Member
Jul 7, 2008
51
0
0
Hi

I'm a programmer of some 8 years now. Currently doing a lot of C# desktop style applications with SQL Server back end. Moving onto manufacturing systems (which I've previously developed in VB6/C#).

Right, been tasked with pulling together an application for a Windows Mobile 5 device (10 of them or so).

Needs to be able to communicate directly with SQL Server 2000/2005.

Is there any way of doing this?

What's the best way of doing this?

Many thanks in advance!
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Depends on the environment. Are the devices going to be used across public wifi networks, or just within the building? Techniques I have seen used in the past include store-and-forward, and webservices.
 

GeordieLife

Member
Jul 7, 2008
51
0
0
On site. Barcode scanning: booking in/out, moving stock etc. Needs to be able to interract with the ERP/MRP system real time to check for orders and stock.

Thinking of web services or maybe investigating WPF. Ideally i'd have just done a C# application and connected directly to SQL but having no luck.

 

Atheus

Diamond Member
Jun 7, 2005
7,313
2
0
Originally posted by: Markbnj
webservices.

This would be my first thought - SOAP web services. If you can't connect directly that is. What happens when you try?
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Originally posted by: GeordieLife
On site. Barcode scanning: booking in/out, moving stock etc. Needs to be able to interract with the ERP/MRP system real time to check for orders and stock.

Thinking of web services or maybe investigating WPF. Ideally i'd have just done a C# application and connected directly to SQL but having no luck.

WPF is just a presentation layer technology. You might have been thinking of WCF. In any case, you probably can't connect directly to the database due to port restrictions somewhere in the network link. Is this straight-up 802.11? I'd look at firewall settings on the device and access point.

But connecting right to the database probably isn't the best approach. Any mobile application needs to account for the times when connectivity is lost.
 

imported_Dhaval00

Senior member
Jul 23, 2004
573
0
0
In addition to what Mark said, also be wary that Web Services deal in XML - meaning, the traffic flowing back and forth is verbose. If you use WCF, stick to RPC calls unless interoperability is an issue.
 

KLin

Lifer
Feb 29, 2000
30,114
490
126
http://msdn.microsoft.com/en-u.../aa275613(SQL.80).aspx

You can have a c# app running on a mobile device connecting directly to a SQL server. The company I work for has done this for several clients.

It's just a c# app designed with the compact framework accessing a SQL server over wifi. It of course uses the data provider in the link above to make the connection.
 

JasonCoder

Golden Member
Feb 23, 2005
1,893
1
81
Couple things...

When you say "communicate directly" with the SQL Server, I'd assume you have wifi EVERYWHERE the device is going? Get ready for lots of support for users leaving the wifi range. If that's not EVER going to happen then party on the data directly like what KLin posted. However if that's not the case then you may want to look at smart client dev. One example is that the user works on local data caches and then syncs up with a SQL Server. The stuff that ms has put out (even in just the last 6 months) around sync is amazing.
 

GeordieLife

Member
Jul 7, 2008
51
0
0
Hi

Thanks for your responses. The guns will be used in an area with 100% wifi coverage.

It needs to check with SQL with every user interaction so syncing is out. It has to be real time unfortunately.

I'll have a look at that link when I get chance.

Stew
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |