× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On 8/30/2016 11:15 AM, Duane Scott wrote:

I can access my DB2 files on the IBM I and display data, but haven't figured out the set up to access text files on a PC (using SQL).

Generally speaking, you can't.
Think of SQL as a client-server relationship.
There's a client, which accepts SQL statements like SELECT COLUMN FROM
TABLE, and there's a server which the client connects to, and acts upon
that statement.

On a typical Windows PC, there's no server to handle the SQL statement.
So if you're talking about a regular .txt file which you can edit with
Notepad, you aren't going to use SQL to do anything with it.

On the other hand, if you have DB2 or MySQL or SQL Server loaded and
running on that PC, and the file is part of a schema inside the
database, you can connect to it if you have the appropriate JDBC driver.

What's the setup on the PC?


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.