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 527951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:56:12+00:00 2026-05-13T08:56:12+00:00

I have seen a couple of instances now where some legacy code I’m working

  • 0

I have seen a couple of instances now where some legacy code I’m working on exhibits what seems buggy behavior and I wonder if I just don’t understand something.

  rsCaspio.Open sql, dbCaspio, ,adLockReadOnly
  response.write(rsCaspio("fieldname") & "<BR>")
  response.write(rsCaspio("fieldname") & "<BR>")

It will write the contents the first time but the second time it is blank. Is this not unexpected and I just don’t know something about queries or is there something really odd happening that I need to dig into deeper? Perhaps results aren’t guaranteed after the first read? This code has been working but with a few changes it has suddenly gone blank. The original programmer would read once and reference the result several times and in several routines which is scary, but the example above is from my debugging and the lines are right next to each other.

If it was asp.net I’d look for overloaded stuff or freaky pointer math since it’s legacy, but that shouldn’t be the case in good old ASP, right?

Thanks!

  • 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-13T08:56:12+00:00Added an answer on May 13, 2026 at 8:56 am

    Yes, pretty much as Chris just said. I found this problem occuring with older versions of SQL Server. I think the solution is any TEXT columns have to appear last in your select statement, and you can’t read them twice.

    I think there is nothing else you can do about it. Maybe update some ADO internals or SQL Server itself – possibly it is an obscure setting in SQL Server, but I never found it.

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

Sidebar

Related Questions

I've seen some code in a project recently where some fields in a couple
I have seen a couple threads about what everyone was doing now a days
I have seen a couple other examples on SO discussing some weird workarounds but
I have seen a couple of question regarding creating datasets in DbUnit here on
I have seen lately a couple of programs that can be launched as daemons
I have seen this error around the web a couple times and yet i
I have a worked on a couple different projects and I have seen two
Have seen some similar questions: What is the difference between a JavaBean and a
I have seen some people in SO commenting that Singleton Pattern is an anti-pattern.
I have seen a couple similar questions about this, however none of them work

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.