Viewing 7 posts - 1 through 7 (of 7 total)
Mike01, we're past that now. It was two rouge rows in the Gender column that were making SQL unhappy. The grand mystery was that SQL was evaluating the entire column...
February 13, 2019 at 12:15 pm
That sounds plausible and it's what I have been thinking of as well. The execution plan is simply different for each approach. It's different enough that, as you state, the...
February 13, 2019 at 11:44 am
Good point Jeff. In this case, I didn't have any trailing spaces but your point is well taken. LEN indeed doesn't count trailing spaces. In this file, the gender column...
February 12, 2019 at 6:23 pm
Success! Yet, the mystery continues as I do not feel satisfied with WHY this happens in T-SQL.
When I ran this, in an attempt to modify the Gender column:alter...
February 12, 2019 at 5:07 pm
Ok. Just for kicks, I will move that column somewhere else, drop it, recreate it to char(1), restore, and give it a go again. Still, it doesn't make sense that...
February 12, 2019 at 12:24 pm
Here are the column definitions of anything I believe is relevant. NAME_MASTER February 12, 2019 at 11:25 am RE: Collecting SQL Server 2000/2005/2008 baseline
I am running SQL Server Enterprise 2012 SP1. I just changed the line in the quote above and... May 19, 2014 at 1:04 pm Viewing 7 posts - 1 through 7 (of 7 total) |