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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:27:26+00:00 2026-06-08T07:27:26+00:00

apologies if this is not a good place to post this, but we are

  • 0

apologies if this is not a good place to post this, but we are experiencing some very strange things with our web ap which is running on a SQL 2005 instance.

the application is a .net web app and does as you would expect a number of queries throughout the day.

but intermittently we are getting errors such as Exception message: *DataBinding: ‘System.Data.DataRowView’ does not contain a property with the name ‘column_name’*. when it clearly does have that column in the query – which if run by hand works fine.. is this a symptom of the SQL instance maybe running out of memory or just being generally poorly?

certainly we cannot track any problems in the code!

unfortunately both the web app and SQL instance are on the same box which is a Xeon with 4GB of ram, so by no means uber powerful..

ps. its not just queries like the above that seem to fall over, but some linq-to-sql things to, in fact it goes through phases of not liking the DB at all.. any help/suggestions would be happily received

thanks

nat

some code.. cant see anything wrong with the below.. but the exception above is basically saying cant find column a or b or c…

Dim conn As New SqlConnection(sitedb)
    Dim cmd As New SqlCommand
    cmd.CommandText = "SELECT a,b,c FROM Table"
    Dim da As New SqlDataAdapter(cmd)
    Dim dt As New DataTable

    Try
        conn.Open()

        da.Fill(dt)

    Catch ex As Exception
        Throw ex
    Finally
        conn.Close()
    End Try

    if dt.Rows.Count > 0 then
       Grid.DataSource = dt **<- dies here....**
       Grid.DataBind()
    end if

how can it return rows from a query that clearly works and then throw an indexoutofrange on a column its just grabbed?
the real issue I think is that none of the problems we are experiencing are code related.. the db seems to go through a times of throwing wobblies and we experience a number of strange exceptions that dont seem to make sense. could this be resource related, as in if the box is underpowered, or ..?

  • 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-06-08T07:27:29+00:00Added an answer on June 8, 2026 at 7:27 am

    You are issuing Conn.Close so I presume the recordset is disconnected. However, the db library’s cursor location determines if rows are pulled at execution time or fetch time, and this can be a db-session-level or connection-level setting.

    Is there any chance that connection pooling or some other parallel behavior is causing your recordset to not be fetched due to being implicitly in server-side-paging mode?

    Try keeping the connection open while you use the dataset and if that solves it then you know to keep barking up this tree.

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

Sidebar

Related Questions

I am not sure if I can post this sort of question (apologies in
My apologies for an inaccurate title, but I'm not sure what this is called
Apologies - am not good at SQL. Perhaps this is a simple query -
Spent the good part of this morning working through this, but still…. apologies if
This is a very wide-ranging/vague question, but here goes. Apologies in advance. The app
Apologies if the title is ambiguous, but I could not figure out a good
So, I searched some here, but couldn't find anything good, apologies if my search-fu
Apologies if this is a repost, I could not find the search terms to
Apologies if this doesn't make sense, i'm not much of an experienced programmer. Consider
Apologies if this is a silly question, and I'm not even sure of the

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.