2

I am using Visual Studio 2008's server explorer and I need to search through a database for invoice lines. So I find this one table named ixvFact but when I try to retrieve the results, visual studio gives me the following error and does not show me the results.

The results viewer cannot execute a query with more than 655 columns in the project list.

What does this mean? How can I solve this?

3
  • 4
    It means that someone failed miserably as a DBA. Over 655 columns in one table? You gotta be kidding me... Feb 8, 2013 at 13:47
  • @DanielHilgarth Not much I can do about it, mate. I just have to deal with it.
    – Perfection
    Feb 8, 2013 at 13:49
  • @DanielHilgarth I've got one with over 1200 columns. I tried desperately to get owner to let me create a relational schema for this feature, but he wanted it to look exactly like his other application that has over 3000 columns(split across 3 tables with no rhyme/reason).
    – L_7337
    Jun 19, 2014 at 13:55

1 Answer 1

2

you can specify the columns you want to retrieve instead of selecting all columns from the table...I thought there was a limit on the number of columns in a table...that's very bad practices...

6
  • Is this a Visual Studio limitation then?
    – Perfection
    Feb 8, 2013 at 13:53
  • 1
    @DavideNguyen: Indeed, it is. Feb 8, 2013 at 13:55
  • 1
    definitely, sql server should be able to hold 1000+ rows depending on data type (bytes) related to the objects in your schema
    – Hituptony
    Feb 8, 2013 at 13:57
  • I suppose I will have to do this in separate queries to compare data then. Happy times on one's birthday. :)
    – Perfection
    Feb 8, 2013 at 13:58
  • yea - unfortunately - happy b-day bro :)
    – Hituptony
    Feb 8, 2013 at 14:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.