PC Review


Reply
Thread Tools Rate Thread

ACCESS over TCP/IP

 
 
Nuno Fonseca
Guest
Posts: n/a
 
      5th Sep 2003
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


 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      5th Sep 2003
"Nuno Fonseca" <(E-Mail Removed)> 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


 
Reply With Quote
 
Richard Brown
Guest
Posts: n/a
 
      5th Sep 2003
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" <(E-Mail Removed)> wrote in message
news:uAjBj$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Jerry
Guest
Posts: n/a
 
      5th Sep 2003
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" <(E-Mail Removed)> wrote in message
news:uAjBj$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Cor
Guest
Posts: n/a
 
      5th Sep 2003
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


 
Reply With Quote
 
Jerry
Guest
Posts: n/a
 
      5th Sep 2003
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]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> "Nuno Fonseca" <(E-Mail Removed)> 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
>
>



 
Reply With Quote
 
Jerry
Guest
Posts: n/a
 
      5th Sep 2003
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" <(E-Mail Removed)> wrote in message
news:uAjBj$(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      5th Sep 2003
"Cor" <(E-Mail Removed)> 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


 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      5th Sep 2003
"Jerry" <(E-Mail Removed)> 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


 
Reply With Quote
 
Armin Zingler
Guest
Posts: n/a
 
      5th Sep 2003
"Jerry" <(E-Mail Removed)> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open my Access files after conversion from Access 97 to Access 2003 M Shafaat Microsoft Access 5 10th Apr 2010 09:04 PM
Saving Access 2007 database in Access 2003 format fails in Access =?Utf-8?B?U3Bpcm8=?= Microsoft Access External Data 0 13th Aug 2006 08:37 AM
W2K3 Service w/ UNC Access, Local Disk Access, and DB Access Rob Microsoft C# .NET 6 2nd Aug 2004 01:44 PM
Access "showing images on first page only of very wide Access report. Windows XP, Access XP Jack Microsoft Access Reports 4 18th Nov 2003 03:01 PM
Re: Allowing users (w/o MS Access) to access an Access 2000 database Wayne Morgan Microsoft Access 0 29th Sep 2003 11:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:40 PM.