473,386 Members | 1,748 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,386 software developers and data experts.

ACCESS over TCP/IP

Anyone knows if it is possible to make a database connection over TCP/IP to
an MS ACCESS database? If yes please give me an example or any documentation
please.

Best regards,

Nuno
Nov 20 '05 #1
22 8842
"Nuno Fonseca" <nf******@neosis.pt> schrieb:
Anyone knows if it is possible to make a database connection
over TCP/IP to an MS ACCESS database? If yes please give me
an example or any documentation please.


MS Access is a desktop database management system. Access and the Jet
drivers do not support to use a port in the network. If you want to access
the database over the intranet or internet, you should use an other database
management system like MS SQL Server or MySQL.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2
Umm, I would say "No". Access is a file based database and does not have
any service or program running at the site of the database, whereas other
programs, such as SQL Server and Oracle do.

You *could* approach it in two ways:
1. Create a program that runs on the Access machine, listens for TCP
connections, accepts queries and returns recordsets or status flags in raw
binary or XML code. This, I suppose can also be accomplished using SOAP or
Remoting.
or
2. Use IIS to simplify it and just create 'post' pages that accept SQL
commands and return recordset in XML, then parse them in your own program.

"Nuno Fonseca" <nf******@neosis.pt> wrote in message
news:uA**************@TK2MSFTNGP09.phx.gbl...
Anyone knows if it is possible to make a database connection over TCP/IP to an MS ACCESS database? If yes please give me an example or any documentation please.

Best regards,

Nuno

Nov 20 '05 #3
Nuno,

Those who tell you that you can not do this have not fully explored the
alternatives, or they simply have not used Jet 4.0 this way. I have three
applications that use Access databases this way. One of them uses wireless
PDA devices to access Jet files. For small applications this is fine. You
have to make sure, though that you are not passing a great deal of data over
the network or it will be slow.
Using an IP address instead of a DNS name such as "\\MyNetComputer\MyData\"
is actually faster because the DNS name does not need to be resolved. There
are several things you can do.
1. If you have access to the data at the IP address you can use it in your
connection object just as if you had used the DNS name.
2. You can create a VPN tunnel to the data using the IP address if your
operating systems on both ends support them.
3. You can create a Network Place on your system using the IP address.

Assuming you are not trying to pass large datasets over the Internet it
doesn't matter where you are.
"Nuno Fonseca" <nf******@neosis.pt> wrote in message
news:uA**************@TK2MSFTNGP09.phx.gbl...
Anyone knows if it is possible to make a database connection over TCP/IP to an MS ACCESS database? If yes please give me an example or any documentation please.

Best regards,

Nuno

Nov 20 '05 #4
Herfried,

Sorry you are incorrect. I do this everyday. If the client has large
datasets I put him on SQL 2000. IP addresses work to access ANYTHING just
as if I use a DNS name.

Regards

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:eN**************@TK2MSFTNGP09.phx.gbl...
"Nuno Fonseca" <nf******@neosis.pt> schrieb:
Anyone knows if it is possible to make a database connection
over TCP/IP to an MS ACCESS database? If yes please give me
an example or any documentation please.
MS Access is a desktop database management system. Access and the Jet
drivers do not support to use a port in the network. If you want to

access the database over the intranet or internet, you should use an other database management system like MS SQL Server or MySQL.

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #5
Nuno,

One thing to watch out for is the security system in Access. When I use
Access over the Internet I require the user to drop all Access security and
use Windows security to establish who can read/write the file. Access
security can get in the way when establishing connections.

"Nuno Fonseca" <nf******@neosis.pt> wrote in message
news:uA**************@TK2MSFTNGP09.phx.gbl...
Anyone knows if it is possible to make a database connection over TCP/IP to an MS ACCESS database? If yes please give me an example or any documentation please.

Best regards,

Nuno

Nov 20 '05 #6
Cor
Herfried,
MS Access is a desktop database management system. Access and the Jet
drivers do not support to use a port in the network. If you want to access the database over the intranet or internet, you should use an other database management system like MS SQL Server or MySQL.

I think the wrong word is access the database, Everybode can access a
textfile over the Internet or a network.
I think you did you mean something as direct access (connection) to the
database?
Just one wrong word in English.
But people love to correct you, be proud.
:-)
Cor
Nov 20 '05 #7
"Cor" <no*@non.com> schrieb:
management system like MS SQL Server or MySQL.
I think the wrong word is access the database, Everybode
can access a textfile over the Internet or a network.
I think you did you mean something as direct access
(connection) to the database?


Yes. That's what I wanted to write.
Just one wrong word in English.
But people love to correct you, be proud.


;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #8
Jet 4.0 connection objects support the use of IP address.
I don't have a public server available right now to show you that you can
Read/Write whatever to a Jet database from anywhere over the Internet, but
if I have time to get my 2003 server installed I will be glad to send you a
VB.NET exe which will connect to it. Give me a few weeks. I used this method
in the infancy stages of a large project for a large corporation so that
they could continue development while waiting for their SQL server.

Regards

Regards

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader20.wxs.nl...
Herfried,
MS Access is a desktop database management system. Access and the Jet
drivers do not support to use a port in the network. If you want to

access
the database over the intranet or internet, you should use an other

database
management system like MS SQL Server or MySQL.

I think the wrong word is access the database, Everybode can access a
textfile over the Internet or a network.
I think you did you mean something as direct access (connection) to the
database?
Just one wrong word in English.
But people love to correct you, be proud.
:-)
Cor

Nov 20 '05 #9
"Jerry" <Je*********@yahoo.com> schrieb:
Jet 4.0 connection objects support the use of IP address.


Thanks for the information. I am not really familiar with databases
(especially Access databases), but I read what I wrote somewhere some time
ago...

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #10
;-)

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> wrote in message
news:ug**************@tk2msftngp13.phx.gbl...
"Jerry" <Je*********@yahoo.com> schrieb:
Jet 4.0 connection objects support the use of IP address.


Thanks for the information. I am not really familiar with databases
(especially Access databases), but I read what I wrote somewhere some time
ago...

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #11
"Jerry" <Je*********@yahoo.com> schrieb
Herfried,

Sorry you are incorrect. I do this everyday. If the client has
large datasets I put him on SQL 2000. IP addresses work to access
ANYTHING just as if I use a DNS name.

I don't think you are *directly* accessing the database over TCP/IP. On
which port should I or the Jet Engine connect? What's the protocol? What's
listening on the server for the client's requests?
--
Armin

Nov 20 '05 #12
Cor
OledDB?
Nov 20 '05 #13
Cor
Correction the next was ununderstandable.
..
Jet 4.0 connection objects support the use of IP address.
I don't have a public server available right now to show you that you can
Read/Write whatever to a Jet database from anywhere over the Internet, but
if I have time to get my 2003 server installed I will be glad to send you a VB.NET exe which will connect to it. Give me a few weeks. I used this method in the infancy stages of a large project for a large corporation so that
they could continue development while waiting for their SQL server.

OleDB?
Nov 20 '05 #14
Armin,

..NET takes care of all that. The key difference between using SQL 2000 or
Oracle as opposed to Jet is what it does to the SERVER, not how it looks to
the client. By the time data gets to the client it is XML and he doesn't
care what served it to him. If you are serving a large database you should
use a Data server which optomizes things on the server. Jet does little to
help the server run well.
MS Access (I think 95 and above) actually has tools for establishing
connections over the Internet within itself. If you have a copy check it
out. You can establish the connection by IP or by path name.

Regards
"Armin Zingler" <az*******@freenet.de> wrote in message
news:OG**************@TK2MSFTNGP11.phx.gbl...
"Jerry" <Je*********@yahoo.com> schrieb
Herfried,

Sorry you are incorrect. I do this everyday. If the client has
large datasets I put him on SQL 2000. IP addresses work to access
ANYTHING just as if I use a DNS name.

I don't think you are *directly* accessing the database over TCP/IP. On
which port should I or the Jet Engine connect? What's the protocol? What's
listening on the server for the client's requests?
--
Armin

Nov 20 '05 #15
OleDB.

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader20.wxs.nl...
Correction the next was ununderstandable.
.
Jet 4.0 connection objects support the use of IP address.
I don't have a public server available right now to show you that you can Read/Write whatever to a Jet database from anywhere over the Internet, but if I have time to get my 2003 server installed I will be glad to send
you a
VB.NET exe which will connect to it. Give me a few weeks. I used this

method
in the infancy stages of a large project for a large corporation so that
they could continue development while waiting for their SQL server.

OleDB?

Nov 20 '05 #16
Armin,

I'll get back to you on the Port.
I have to go do something now.

"Armin Zingler" <az*******@freenet.de> wrote in message
news:OG**************@TK2MSFTNGP11.phx.gbl...
"Jerry" <Je*********@yahoo.com> schrieb
Herfried,

Sorry you are incorrect. I do this everyday. If the client has
large datasets I put him on SQL 2000. IP addresses work to access
ANYTHING just as if I use a DNS name.

I don't think you are *directly* accessing the database over TCP/IP. On
which port should I or the Jet Engine connect? What's the protocol? What's
listening on the server for the client's requests?
--
Armin

Nov 20 '05 #17
Cor
Jerry,
Before you think that I see no problems accessing MS-Access over Internet, I
think that is widely spread used and gives in my opinion with low access no
problems.
The only thing I don't see, how to access a MS-Access database on a server
(without IIS) in Amsterdam, while the IIS (Asp.net) server that access it
(connected to it) is in NewYork.
Cor
Nov 20 '05 #18
The thing is Cor that you have to access the disk that the .mdb file is on.
Once you have that you just open the file as normal.

It's the accessing of the disk that can be problematic because it needs to
use the netbios related ports on the target server which are unlikely to be
open and exposed to the internet, as a matter of course, at the target site.

If you recall, these were the ports that allowed that recent nasty to do
it's stuff.

But, the point is, if you can connect to the share containing the file, then
you can open the .mdb.

"Cor" <no*@non.com> wrote in message
news:3f***********************@reader20.wxs.nl...
Jerry,
Before you think that I see no problems accessing MS-Access over Internet, I think that is widely spread used and gives in my opinion with low access no problems.
The only thing I don't see, how to access a MS-Access database on a server
(without IIS) in Amsterdam, while the IIS (Asp.net) server that access it
(connected to it) is in NewYork.
Cor

Nov 20 '05 #19
Cor
Stephany,
That I know, in that way I can reach every other file.
But what I mean in saying it in other words is that when you connect to an
SQL server in your IDE you do not have to give a share, it is a Server over
IP I think (there stops my knowledge at the moment).
It is an extra benefit, but one that I don't believe that I ever shall use.
But it is an extra benefit.
But it is becoming a theoretical discussion just because Herfried
misunderstood the question.
And I am not good in that I am very pragmatic.
I only came in to try to make things clear between connection and access.

But thanks for your post.
I apriciate it.

Cor
Nov 20 '05 #20
Actually, those who say you cannot connect to an Access DB via TCP/IP are
correct. In your scenario you are not connecting to the database at all. You
are using TCP/IP as the protocol to connect to the file system of the remote
computer using the IP address rather than the more usual DNS name or NetBIOS
name (or even mapped drive). You seem to be confusing file sharing using the
IP address as identifier with a socket server connection to a database
engine using the TCP/IP protocols.

Access databases are file based which means that the local (in process) Jet
database engine manipulates the contents of the database via a file handle
to whatever file you have identified in your connection string. Your TCP/IP
connection simply returns a pseudo-handle to the remote file system which is
accessed as though it was local to return the appropriate results.

In a client/server based DBMS on the other hand you connect directly to the
database engine on the server via TCP/IP and the database server does all
the manipulation before returning the results.

Some of the confusion may be caused by the unfortunate use of the word
connection. You never literally connect to a database but rather to the
database engine which in turn accesses the file system (or whatever physical
store your DBMS uses) and RAM to retrieve/manipulate the data in the
database.

Also, your option 2 is the only viable one over the Internet since if you
are exposing file system sharing directly to the public Internet you should
probably be fired ASAP.
"Jerry" <Je*********@yahoo.com> wrote in message
news:O8**************@tk2msftngp13.phx.gbl...
Nuno,

Those who tell you that you can not do this have not fully explored the
alternatives, or they simply have not used Jet 4.0 this way. I have three applications that use Access databases this way. One of them uses wireless PDA devices to access Jet files. For small applications this is fine. You
have to make sure, though that you are not passing a great deal of data over the network or it will be slow.
Using an IP address instead of a DNS name such as "\\MyNetComputer\MyData\" is actually faster because the DNS name does not need to be resolved. There are several things you can do.
1. If you have access to the data at the IP address you can use it in your connection object just as if you had used the DNS name.
2. You can create a VPN tunnel to the data using the IP address if your
operating systems on both ends support them.
3. You can create a Network Place on your system using the IP address.

Assuming you are not trying to pass large datasets over the Internet it
doesn't matter where you are.
"Nuno Fonseca" <nf******@neosis.pt> wrote in message
news:uA**************@TK2MSFTNGP09.phx.gbl...
Anyone knows if it is possible to make a database connection over TCP/IP

to
an MS ACCESS database? If yes please give me an example or any

documentation
please.

Best regards,

Nuno


Nov 20 '05 #21
Stephen,

Of course the question was "Is it possible?" I gave 3 ways to make it
"possible" not "practical" or "safe". Of course the VPN tunnel is the way I
would prefer to do it. I think that if we fired people for creating network
places to shares which have their security access on them we would have to
fire a lot of people.

Regards
"Stephen Martin" <sm*****@removethis.emsoft.andthis.ca> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Actually, those who say you cannot connect to an Access DB via TCP/IP are
correct. In your scenario you are not connecting to the database at all. You are using TCP/IP as the protocol to connect to the file system of the remote computer using the IP address rather than the more usual DNS name or NetBIOS name (or even mapped drive). You seem to be confusing file sharing using the IP address as identifier with a socket server connection to a database
engine using the TCP/IP protocols.

Access databases are file based which means that the local (in process) Jet database engine manipulates the contents of the database via a file handle
to whatever file you have identified in your connection string. Your TCP/IP connection simply returns a pseudo-handle to the remote file system which is accessed as though it was local to return the appropriate results.

In a client/server based DBMS on the other hand you connect directly to the database engine on the server via TCP/IP and the database server does all
the manipulation before returning the results.

Some of the confusion may be caused by the unfortunate use of the word
connection. You never literally connect to a database but rather to the
database engine which in turn accesses the file system (or whatever physical store your DBMS uses) and RAM to retrieve/manipulate the data in the
database.

Also, your option 2 is the only viable one over the Internet since if you
are exposing file system sharing directly to the public Internet you should probably be fired ASAP.
"Jerry" <Je*********@yahoo.com> wrote in message
news:O8**************@tk2msftngp13.phx.gbl...
Nuno,

Those who tell you that you can not do this have not fully explored the
alternatives, or they simply have not used Jet 4.0 this way. I have

three
applications that use Access databases this way. One of them uses

wireless
PDA devices to access Jet files. For small applications this is fine. You have to make sure, though that you are not passing a great deal of data

over
the network or it will be slow.
Using an IP address instead of a DNS name such as

"\\MyNetComputer\MyData\"
is actually faster because the DNS name does not need to be resolved.

There
are several things you can do.
1. If you have access to the data at the IP address you can use it in

your
connection object just as if you had used the DNS name.
2. You can create a VPN tunnel to the data using the IP address if your
operating systems on both ends support them.
3. You can create a Network Place on your system using the IP address.

Assuming you are not trying to pass large datasets over the Internet it
doesn't matter where you are.
"Nuno Fonseca" <nf******@neosis.pt> wrote in message
news:uA**************@TK2MSFTNGP09.phx.gbl...
Anyone knows if it is possible to make a database connection over
TCP/IP to
an MS ACCESS database? If yes please give me an example or any

documentation
please.

Best regards,

Nuno



Nov 20 '05 #22
Hi,
I know for sure that SocketPro at www.udaparts.com will work for you.
See the sample TestSocketProWithVBNet inside the package. Why don't you give
it a try?

--
Yuancai (Charlie) Ye
RDB, a tool for fast and securely accessing remote databases with dial-up,
cable, DSL and wireless modems anywhere

Fast and securely accessing all of remote data sources anywhere with
SocketPro using batch/queue, non-blocking and parallel computation

See 30 well-tested and real OLEDB examples
www.udaparts.com
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader20.wxs.nl...
Herfried,
MS Access is a desktop database management system. Access and the Jet
drivers do not support to use a port in the network. If you want to

access
the database over the intranet or internet, you should use an other

database
management system like MS SQL Server or MySQL.

I think the wrong word is access the database, Everybode can access a
textfile over the Internet or a network.
I think you did you mean something as direct access (connection) to the
database?
Just one wrong word in English.
But people love to correct you, be proud.
:-)
Cor

Nov 20 '05 #23

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

Similar topics

63
by: Jerome | last post by:
Hi, I'm a bit confused ... when would I rather write an database application using MS Access and Visual Basic and when (and why) would I rather write it using Visual Studio .Net? Is it as easy...
13
by: bill | last post by:
I am trying to convince a client that dotNet is preferable to an Access project (ADP/ADE). This client currently has a large, pure Access MDB solution with 30+ users, which needs to be upgraded....
1
by: Dave | last post by:
Hello NG, Regarding access-declarations and member using-declarations as used to change the access level of an inherited base member... Two things need to be considered when determining an...
13
by: Simon Bailey | last post by:
I am a newcomer to databases and am not sure which DBMS to use. I have a very simplified knowledge of databases overall. I would very much appreciate a (simplifed) message explaining the advantages...
0
by: Frederick Noronha \(FN\) | last post by:
---------- Forwarded message ---------- Solutions to Everyday User Interface and Programming Problems O'Reilly Releases "Access Cookbook, Second Edition" Sebastopol, CA--Neither reference book...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
64
by: John | last post by:
Hi What future does access have after the release of vs 2005/sql 2005? MS doesn't seem to have done anything major with access lately and presumably hoping that everyone migrates to vs/sql. ...
1
by: com | last post by:
Extreme Web Reports 2005 - Soft30.com The wizard scans the specified MS Access database and records information such as report names, parameters and subqueries. ......
17
by: Mell via AccessMonster.com | last post by:
Is there a way to find out where an application was created from? i.e. - work or home i.e. - if application sits on a (work) server/network, the IT people know the application is sitting...
37
by: jasmith | last post by:
How will Access fair in a year? Two years? .... The new version of Access seems to service non programmers as a wizard interface to quickly create databases via a fancy wizard. Furthermore, why...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.