Re: Column Order Problem
From: William \(Bill\) Vaughn (billvaRemoveThis_at_nwlink.com)
Date: 08/06/04
- Next message: Val Mazur: "Re: GetSchemaTable, ADO.NET, and Access database"
- Previous message: Sami Samir: "Re: Timeout Expired for no apparent reason"
- In reply to: Dave Fancher: "Column Order Problem"
- Next in thread: Dave Fancher: "Re: Column Order Problem"
- Reply: Dave Fancher: "Re: Column Order Problem"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 6 Aug 2004 15:37:59 -0700
For reasons that I discuss in my books, BLOB (TEXT, IMAGE) columns generally
have to appear last in the SELECT list... It's one of those things that
makes it better NOT to store BLOBs in the database...
-- ____________________________________ William (Bill) Vaughn Author, Mentor, Consultant Microsoft MVP www.betav.com Please reply only to the newsgroup so that others can benefit. This posting is provided "AS IS" with no warranties, and confers no rights. __________________________________ "Dave Fancher" <eijitek@comcast.net> wrote in message news:dK-dnUPYhJmOZY_cRVn-vA@comcast.com... > Here's one that I encountered today that just plain baffled me. > > I'm working on extending an existing ASP application. One of the changes > I'm working on required extending an existing query to retrieve some rows > from a new table. The query is written correctly and returns the correct > results when executed in Query Analyzer. I'm talking direct copy and paste > into query analyzer, no changes to the query whatsoever. The problem I > encountered is that I absolutely could not retrieve the value of one of the > new columns if I specified it after in certain places within the field list. > > More specifically, the query selects data from approximately 27 columns > including two text columns. Where I was encountering the problem was when I > placed a varchar(5) column after either of the text columns or after the > tinyint column immediately after the text columns. What made this even more > mind-boggling is that the tinyint column worked just fine (I even > temporarily replaced it with a constant value and aliased the column name to > check). If I placed the varchar(5) column anywhere else in the field list I > was able to retrieve the value without any problem. > > Column order in my solution isn't really important and I got around this by > just changing the order of the columns but I was wondering if anyone has > seen behavior like this before and could give me some insight. This problem > isn't impeding my progress on the project but the problem is driving me > crazy. I appreciate any thoughts you have about this one. > > -- Dave > >
- Next message: Val Mazur: "Re: GetSchemaTable, ADO.NET, and Access database"
- Previous message: Sami Samir: "Re: Timeout Expired for no apparent reason"
- In reply to: Dave Fancher: "Column Order Problem"
- Next in thread: Dave Fancher: "Re: Column Order Problem"
- Reply: Dave Fancher: "Re: Column Order Problem"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|