how can I make a connection with a mdb in the internet?

Posted on 2007-03-20
Last Modified: 2010-04-05
Hello guys,

I have an application that for validation it must connect to a mdb in the internet and do a search in a table to see if the key is registered.

How can I do this?
I use delphi 7, what component is suitable to do this? Could someone give me an example?

Question by:hidrau
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 18

Accepted Solution

Johnjces earned 500 total points
ID: 18757841
That would be really really dangerous to open up an mdb in a file share to the Internet! One thing we need to know is this an Access database? Microsoft SQL Server also have mdb files for their database.

You might get Indy components, (my personally opinion is that Indy 9 is better and more stable than 10),  and use a server socket on some obscure port. Indy has a lot of demos that could help you through this fairly easily. All you would have to do is make a simple locate application when some specific data arrives and send it back out. You'd have to point your Internet router to your local Server's IP address and forward whatever port you decide to use.

Anyway, check out Indy components and the tons of pretty good applications. They even have a client server type database application, but to simply check for a key, that could be done pretty easily.

I hope this gave you a starting point.


Author Comment

ID: 18758297
Yeah, it is an access database.

Let me tell you better what I need to do.

I can have a mdb dabase with only one table that will hold keys or I can have a text file.

I need to check if this licence software has a key in the table or txt file, if it doesn't have,

this software doesn't have a legal copy.

did you get it?

I need an example how to do this.

LVL 18

Expert Comment

ID: 18758778

I think the best thing for you to learn about sockets and stuff would be download Indy 9.  Then download the Indy 9 demos from

Check out the Chat and the IdTCP demos.

From there, when a connection is made to your "authentication server" you can check the data given, put it in an SQL query or a Lookup and if found, send back on "OK" or whatever. It's almost like have string value you can check and manipulate and sending data back is just about as easy.

Maybe someone else is willing to code it up for you including the Access table lookup using ADO or whatever.

Good luck!
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users


Author Comment

ID: 18758825
Johnjces:, do you know cgi application?
LVL 18

Expert Comment

ID: 18759384
No. I am sorry but I have not done anything with that. Done some ASAPI stuff but that is about it.

LVL 17

Expert Comment

by:Wim ten Brink
ID: 18814850
Easiest way is to write an ASP webpage that will be used on the server to where you can send your requests. The ASP page would then just connect to the Access database, search for the key, give the result back and then it's done. This shouldn't be too complex, although it has been a while for me that I've used ASP for this. But it's the easiest server-side solution.
Then the client... It could just load the page from http://yourserver/searchkey.asp?key=somevalue which would trigger your ASP page. The page could then return either TRUE or FALSE as the whole page contents or maybe even some XML string if you want to make it more complex.
LVL 18

Expert Comment

ID: 19057367
Did any of this help you? If not, please let us know. If so please accept one, or ask that your question be deleted and get refund of points.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

631 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question