Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ASP / Database Access / February 2007



Tip: Looking for answers? Try searching our database.

Help with CSV files

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lejason@gmail.com - 26 Feb 2007 19:59 GMT
Where to start..haha.

My boss has me dev-ing a search page that will read from a CSV file.

It has to be in ASP (and the old one - not .NET) and we cant use a
real database -- trust me, I asked.  So we are stuck with a CVS file
that I want to use as a data source that I can run SQL queries
against.

So...how?

Really, starting from scratch -- how.  Like, how do I connect the CSV
file, do I need to define it?  I read about a "Microsoft Text Driver"
and I copied some code and recieve an error "Object needed on line x"
which translates to "I have no idea if "oConn.Open" is a pre-defined
function/object or if I need to create the object first.  Then, once
its connected, can I simply run a query against it like it was a db?

So, if one of you could be so kind to explain, step by step how to do
this it would be GREATLY appreciated!
Mike Brind - 26 Feb 2007 20:45 GMT
> Where to start..haha.
>
[quoted text clipped - 16 lines]
> So, if one of you could be so kind to explain, step by step how to do
> this it would be GREATLY appreciated!

The Jet 4.0 driver will connect you to a csv file, which you would use just
like you were connecting to Access.  Although I've never done it, I have
seen samples of standard SQL being used to query csv files.

If it makes you feel more comfortable, there's no reason why you can't use
DDL to create an mdb file on the server, import the csv and work with the
mdb instead.

--
Mike Brind
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.