473,499 Members | 1,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Database connection over wireless network

Hi there,

I've recently developed a VBA-program in Excel that fetches and presents
data from a distant Access database over a wireless peer-to-peer network
(both computers running Win XP Pro). It has worked relatively well for some
time, but recently I'm often encountering errors when trying to fetch the
data. I am pretty sure that this is because of a poor wireless connection
since I'm also having some problems e.g. copying files to/from the remote
computer. On the other side, when executing a PING-command to the remote
computer from the command prompt, "only" about 10-15% of the packets are
lost (or perhaps that is too much?). And it also tends to work fine to
connect e.g. through a Remote Desktop Connection to control the remote
computer. Unfortunately, the manufacturer of my wireless router and access
point (D-Link) don't offer any good software to measure the quality of the
connection.

To connect and retrieve data through VBA, I use the following syntax
(DSN-connection):

Dim dbConn As New ADODB.Connection
Dim db As New ADODB.Recordset
dbConn.Open "DSN=DatasourceName"
db.Open "SELECT * FROM Table1", dbConn

Now I'm basically hoping that any of you experts out there can provide me
with some helpful comments to reduce my confusion and maybe confirm that my
problems are because of a poor connection, or maybe because of some other
reason? And maybe also suggest for how I can query the database more
successfully without having to change the hardware?

Thank you very much in advance!

// Peter Larsson

PS. If this is not the most appropriate newsgroup to ask for help in, maybe
somebody could suggest a better one? DS.


Nov 12 '05 #1
8 12069
You can't really use a file share over ANY type of connection. That
connecting might be a VPN over the internet, or wireless connection like
yours. I would not risk it. You need to use either something like thin
client (the remote desktop you mentioned is great solution).

JET file share files don't take well to ANY type of break in the connection.
I would not even consider such a setup.

You can try a true client to server based system (ie: use the other database
engine that is include on the office cd).

You can read some of my thoughts about lans, wans and ms-access at:

http://www.attcanada.net/~kallal.msn/Wan/Wans.html

--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
ka****@msn.com
http://www.attcanada.net/~kallal.msn
Nov 12 '05 #2
The JET database engine, being a file server database engine does not
tolerate dropped packets without causing corruption. A Remote Desktop
Connection uses Terminal Services which works well in a wireless environment
because it doesn't transmit the actual data, it transmits an image of that
data. Your only other viable alternative is to use a thin-client (a browser)
which means a lot more work with a lot less functionality.
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access

"Peter Larsson" <pe********************@hotmail.com> wrote in message
news:8Dacb.3679$gi2.3649@fed1read01...
Hi there,

I've recently developed a VBA-program in Excel that fetches and presents
data from a distant Access database over a wireless peer-to-peer network
(both computers running Win XP Pro). It has worked relatively well for some time, but recently I'm often encountering errors when trying to fetch the
data. I am pretty sure that this is because of a poor wireless connection
since I'm also having some problems e.g. copying files to/from the remote
computer. On the other side, when executing a PING-command to the remote
computer from the command prompt, "only" about 10-15% of the packets are
lost (or perhaps that is too much?). And it also tends to work fine to
connect e.g. through a Remote Desktop Connection to control the remote
computer. Unfortunately, the manufacturer of my wireless router and access
point (D-Link) don't offer any good software to measure the quality of the
connection.

To connect and retrieve data through VBA, I use the following syntax
(DSN-connection):

Dim dbConn As New ADODB.Connection
Dim db As New ADODB.Recordset
dbConn.Open "DSN=DatasourceName"
db.Open "SELECT * FROM Table1", dbConn

Now I'm basically hoping that any of you experts out there can provide me
with some helpful comments to reduce my confusion and maybe confirm that my problems are because of a poor connection, or maybe because of some other
reason? And maybe also suggest for how I can query the database more
successfully without having to change the hardware?

Thank you very much in advance!

// Peter Larsson

PS. If this is not the most appropriate newsgroup to ask for help in, maybe somebody could suggest a better one? DS.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.520 / Virus Database: 318 - Release Date: 9/18/2003
Nov 12 '05 #3
"Peter Larsson" <pe********************@hotmail.com> wrote:
I've recently developed a VBA-program in Excel that fetches and presents
data from a distant Access database over a wireless peer-to-peer network
(both computers running Win XP Pro). It has worked relatively well for some
time, but recently I'm often encountering errors when trying to fetch the
data. I am pretty sure that this is because of a poor wireless connection
since I'm also having some problems e.g. copying files to/from the remote
computer. On the other side, when executing a PING-command to the remote
computer from the command prompt, "only" about 10-15% of the packets are
lost (or perhaps that is too much?).


To add to Albert's and Arvin's replies Access requires a very solid
network connection unlike most other software. Losing 1% of the
packets is way too high.

And if you're having problems copying files that's also a sign of
troubles.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #4
Do you think using the other database on the Office CD (some light version
of SQL Server?) would be a better alternative? Would that database be less
sensitive to a packet loss?

How much work would it be to convert a database from Access to the SQL
Server "light" version?

Peter

"Tony Toews" <tt****@telusplanet.net> wrote in message
news:tp********************************@4ax.com...
"Peter Larsson" <pe********************@hotmail.com> wrote:
I've recently developed a VBA-program in Excel that fetches and presents
data from a distant Access database over a wireless peer-to-peer network
(both computers running Win XP Pro). It has worked relatively well for sometime, but recently I'm often encountering errors when trying to fetch the
data. I am pretty sure that this is because of a poor wireless connection
since I'm also having some problems e.g. copying files to/from the remote
computer. On the other side, when executing a PING-command to the remote
computer from the command prompt, "only" about 10-15% of the packets are
lost (or perhaps that is too much?).


To add to Albert's and Arvin's replies Access requires a very solid
network connection unlike most other software. Losing 1% of the
packets is way too high.

And if you're having problems copying files that's also a sign of
troubles.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm

Nov 12 '05 #5
"Peter Larsson" <pe********************@hotmail.com> wrote in message
news:K2Pcb.4822$gi2.3076@fed1read01...
Do you think using the other database on the Office CD (some light version
of SQL Server?) would be a better alternative? Would that database be less
sensitive to a packet loss?
yes,. It can take incredible amounts of abuse and still run.

How much work would it be to convert a database from Access to the SQL
Server "light" version?


That is going to depending on your experience, and how large the existing
applications is.

You will be learning a new database system...that does have a learning
curve. Just like ms-access, you might want to grab some books. If you are
not familiar with sql server, then you might find creating a ADP project in
ms-access a good way to get your feet wet with a client to server setup.
However, for existing applications of any complexity, then you probably are
better off to transfer the table data to the database engine, and then link
your tables via ODBC. You then have to "tweak" the parts that don't work, or
parts where the performance too slow.
--
Albert D. Kallal (MVP)
Edmonton, Alberta Canada
ka****@msn.com
http://www.attcanada.net/~kallal.msn

Nov 12 '05 #6
"Peter Larsson" <pe********************@hotmail.com> wrote:
Do you think using the other database on the Office CD (some light version
of SQL Server?) would be a better alternative? Would that database be less
sensitive to a packet loss?
Yes it would be a better solution.
How much work would it be to convert a database from Access to the SQL
Server "light" version?


The same as converting to SQL Server. <smile>

As Albert states this can be a lot of work.

Do a search at the Knowledge Base at support.microsoft.com using the
keywords "upsizing" to review the various white papers on upsizing
Access to SQL Server as well as to ensure you have any updates
required.

Also see my Random Thoughts on SQL Server Upsizing from Microsoft
Access Tips page at my website.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #7
"Tony Toews" wrote
How much work would it be to convert
a database from Access to the SQL
Server "light" version?


The same as converting to SQL Server. <smile>


Actually, it would probably be _more_ work than converting to full SQL
Server, because the "light version" (MSDE aka SQL Server Desktop) does not
include all the very nice adminstrative and development tools that Full SQL
Server or SQL Server Development does.

Larry Linson
Microsoft Access MVP
Nov 12 '05 #8
"Larry Linson" <bo*****@localhost.net> wrote:
How much work would it be to convert
a database from Access to the SQL
Server "light" version?


The same as converting to SQL Server. <smile>


Actually, it would probably be _more_ work than converting to full SQL
Server, because the "light version" (MSDE aka SQL Server Desktop) does not
include all the very nice adminstrative and development tools that Full SQL
Server or SQL Server Development does.


As far as administrative goes you have a point there. You'd have to
create your own set of tools to do backups and other mtce functions.

However as far as development goes you can purchase the SQL Server
Developers edition for $50 US.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 12 '05 #9

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

Similar topics

8
2046
by: Debbie | last post by:
Thank you for any help you can give me. I have a database that I've been working on... a backend for the server and front ends for the users. Now I've found out that the network is wireless and...
4
7333
by: cvopicka | last post by:
i have found many refrences to access being slow over a netowrk but my boss and i just found this and i was hoping to get some help. on the local machine we have the Access 2000 format database...
3
6606
by: Jonny | last post by:
Hi, Please could you tell me how to check for an internet connection in C. I'm using Windows 2000. Many Thanks, Jonny
3
5327
by: Bruno Renato | last post by:
Hi people, I have a question about this.... How I modify the SSID of the Wireless connection?? I was developing a software in C# .NET 2003 and I need this feature. TKS... Bruno Renato C#...
3
10270
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
16
4378
by: google | last post by:
Hello, I am working on an Acc2003 app for my company. In the interest of reducing chances of corruption due to unstable network connectivity, I would like to either prevent users from running it...
3
2417
by: Studlyami | last post by:
I was connected remotely into one of my pc's and i ran the windows network wizard to allow me to share files on my home network. As soon as i finished the wizard my remote connection broke. I went...
17
5538
by: John Salerno | last post by:
Let me see if this question even makes sense...I'm reading Core Python Programming and I jumped ahead to the more specific topics like network programming. I plan to follow along with the example...
1
2239
by: =?Utf-8?B?QiBTaW5naA==?= | last post by:
Hi Scenario 1) Host - XP Laptop with internet connection using Sky Broadband Wireless Router Netgear DG834GT 2) MS Virtual Server 2005 - I have deployed an XP MS Virtual Server 2005 to act...
0
7134
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
7180
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
7225
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
6901
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
7392
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
4920
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
3105
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
667
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
307
bsmnconsultancy
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...

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.