Viewing 15 posts - 3,886 through 3,900 (of 4,080 total)
All any of us know is what you post 😉 I did notice the declaration in block 2, and was in the process of revising my...
December 23, 2008 at 9:27 am
In Block 1, I notice you didn't specify a length for @sql. Run this and see what happens as a result.
-----------------------------------------------------------------------------------
declare @sql nvarchar
set
December 23, 2008 at 8:57 am
Sorry I blew over that this was out of Adventureworks.
Merry Christmas to all. May 2009 be a better year for everyone.
December 23, 2008 at 8:47 am
If it's not too late, you might also consider renaming that column. It's just fewer headaches in the long run to avoid keywords as column names.
December 22, 2008 at 9:22 pm
If you REALLY want the grid in a separate table you could always do two queries with a UNION ALL, but why bother?
The problem is that SQL doesn't currently allow...
December 22, 2008 at 1:29 pm
I don't think you need two tables. You can store all the polygons in a single table. If we're just talking 105 rows here, that's a trivial amount....
December 19, 2008 at 9:26 pm
Couple of questions:
1. Have you created spatial indexes for the two tables yet?
2. What do you mean by "lay over"? SQL Server can tell...
December 19, 2008 at 6:41 pm
I edited my previous post. My approach to the solution is detailed there. You can search this site using the keywords "parse" and "concatenate" for...
December 19, 2008 at 3:45 pm
I mean, will F1 ever have '123.1, 126.5, 135.4' and you want it to be "the same" as '135.4, 126.5, 123.1' for grouping purposes.
I don't have time...
December 19, 2008 at 12:55 pm
You're welcome. Merry Christmas, Jean-François.
December 18, 2008 at 1:32 pm
Try this:
declare @input decimal(9,4)
set @input = -25.77
select case when @input >0 then '+' else '' end -- gives you a plus...
December 18, 2008 at 12:32 pm
Neither my approach nor PIVOT is able to create the column names for you. You have to identify all of them in advance, which means you would have to...
December 17, 2008 at 2:44 pm
I'm not sure how to approach this with PIVOT because you aren't grouping on EAID, you are actually using it to divide into two sets of columns. ...
December 17, 2008 at 2:30 pm
You're too quick for me today, Seth. One important thing to remember is that although charindex and substring work normally with text columns, the LEN function doesn't....
December 17, 2008 at 1:54 pm
Viewing 15 posts - 3,886 through 3,900 (of 4,080 total)