Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


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

Posted on 2007-03-20
Medium Priority
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 2000 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!
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
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.

688 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