Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6587399
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:54:43+00:00 2026-05-25T16:54:43+00:00

I have a page that can upload csv files and saved to table in

  • 0

I have a page that can upload csv files and saved to table in the database. I’m using below connection string to read a csv file.

set connection = Server.CreateObject ("ADODB.Connection")
connection.Open Connection_string

ls_map_path = server.MapPath(as_path)

strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _
ls_map_path & ";Extended Properties=""Text;HDR=Yes;FMT=Delimited"";"

Set lo_rs = Server.CreateObject("ADODB.recordset")
lo_rs.CursorLocation = adUseClient
lo_rs.open "SELECT * FROM " & as_file_name, lo_conn, adOpenStatic, adLockOptimistic, adCmdText

do while not lo_rs.eof
     ls_notes = lo_rs.fields.Item("notes").value
     uf_save_note(ls_notes) 
     lo_rs.movenext
loop

The lo_rs.fields.Item(“notes”).value always truncated up to 300 characters. I want to read this field w/out limitation.

Please advise. Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:54:44+00:00Added an answer on May 25, 2026 at 4:54 pm

    I think the issue may be to do with automatic datatype settings, jet will sample the rows in the csv and create a recordset to fit.. if the rows it samples are < 300 chars it wont give you enough room.

    I think there is a registry key you can change to make it analyse more rows, this link is talking about excel but i think its related:

    http://support.microsoft.com/kb/281517

    could be wrong.. its not something I have actually ever experienced myself.

    from the article:

    “The valid range of values for the TypeGuessRows key is 0 to 16. However, if the value is 0, the number of source rows scanned is 16384. Keep in mind that a value of zero may cause a small performance hit if the source file is very large.”

    To see if this is the problem at all the best test would be to open a CSV where the first row contains over 300 characters.

    If this is the problem, my preferred solution would be to specify the column types of the recordset prior to population but I don’t have a set up here to test if that’s possible sorry. I will have a look for some references for you though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a page that needs to accept .csv files with no predefined layout.
i have a page where users can upload there photo that photo will be
I have a standard Django Admin page that is used to upload multiple files.
On my site I have a page where users can upload files to go
I have PHP page where users can upload photos (using Ajax & PHP script).
I have PHP page where users can upload photos (using Ajax & PHP script).
Let's say you have a profile page that can only be accessed by the
For an unknown reason, I have 1 page that I can't access by ID
i have a page that displays large datasets into html tables. how can i
I have a certain page (we'll call it MyPage) that can be accessed from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.