Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Error message - explanation Expand / Collapse
Author
Message
Posted Friday, October 4, 2013 6:26 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Friday, October 4, 2013 6:25 AM
Points: 1, Visits: 0
What does this error message mean when a application is connected to a SQL database?

'Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index'

Thanks
Post #1501554
Posted Friday, October 4, 2013 6:42 AM


SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Friday, November 7, 2014 2:00 PM
Points: 979, Visits: 3,364
This is by no way a Database error, this is a front-end error. And since you did not bother to tell what the front-end is, I am taking a shot in the dark. I am assuming that this is a .NET web app.


It seems you have an array n long and you are trying to access the nth or greater element within it. Indexes are 0 based and so an n sized array must be accessed by indexes 0 to n-1


Talk with your front-end developer and have then investigate.

Andrew SQLDBA
Post #1501561
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse