I have an online application that will query data from CSV file that the users send. It works like a charm in the server machine somewhere in the globe.
I decided to clone the application and database to my dev machine but the query gives me a Recordset error saying "Item cannot be found in the collection...", but wait, don't facepalm so soon.
Here is the code that queries the CSV file:
conExcel.Open "Provider=Microsoft.Jet.OLEDB.4.0;DATA SOURCE=" & Server.MapPath("xls\") &";Extended Properties=""Text;HDR=Yes;IMEX=1; ImportMixedTypes=Text;FMT=Delimited(;)"""
strSQL="SELECT * FROM ["& strFile&"]"
The file has more than 10 columns and using the code below it only shows me 10 and a fragment of the 11th column. But in my online application it shows all of them just fine.
For each x in SQL.Fields
response.write x.Name
Next
I'm guessing it has something to do with my IIS, but I don't know where I could tweak to make both ambients behave the same way.
Counting on you, guys.