Viewing 15 posts - 3,331 through 3,345 (of 3,957 total)
Try it with this test data:
select '1' as ID,'Game1' AS Name
union all select '2' AS ID,'Game2' AS Name
union all select '3' AS ID,'Game4' AS Name
union all select '4' AS...
June 20, 2012 at 7:39 pm
I originally designed this SetUpIntervals CTE to be able to SUM (or COUNT, etc.) values across a continuous date range. However it is easily adapted to the case where...
June 20, 2012 at 7:33 pm
drew.allen (6/20/2012)
dwain.c (6/20/2012)
Drew hit the nail on the head. My bug, my bad!But I can correct it without the CROSS APPLY!
You can, but I find the CROSS APPLY simpler...
June 20, 2012 at 6:39 pm
Drew hit the nail on the head. My bug, my bad!
But I can correct it without the CROSS APPLY!
;WITH CTE AS (
SELECT [Length], [Width], [Height]
...
June 20, 2012 at 9:20 am
Your understanding seems to be 100% on the money.
While I've known about VALUES sets for a long time in theory, I never really had a chance to play with them...
June 20, 2012 at 7:54 am
Marshy,
Today is your lucky day! Well maybe tomorrow as it is night time here now.
I have just the query for you but I need a description of something.
I'm assuming...
June 20, 2012 at 7:15 am
OK sports fans, I've now read through this entire thread and I'm now 90% the solution I posted before will work for the OP. I was a bit concerned...
June 20, 2012 at 6:10 am
dwain.c (6/18/2012)I didn't realize that CROSS JOIN is supported in SQL 2000.
This BOL reference seems to suggest that it is not:
http://msdn.microsoft.com/en-us/library/ms190690(v=sql.105).aspx
For the record, I am a moron. ...
June 20, 2012 at 4:22 am
okbangas (6/20/2012)
June 20, 2012 at 4:09 am
balaji_kethe (6/20/2012)
One thing i would like to add here is, the stored procedure returning the tabular data sets is locked and i don't have access to read/alter...
June 20, 2012 at 4:07 am
Someone will probably shoot me for suggesting this but:
1. Instead of SELECTing your results out of the SP, SELECT ... FOR XML into an XML variable.
2. Do the same with...
June 20, 2012 at 3:42 am
Here's the results applying the COLLATION fix to the REPLACE in PARSENAME. It still doesn't touch SUBSTRING / CHARINDEX though (just a slight improvement).
PRINT '========== BASELINE ==========';
SET STATISTICS IO...
June 20, 2012 at 3:31 am
Cadavre (6/20/2012)
dwain.c (6/20/2012)
That's the same collation issue that I was trying to address the other day when timing REPLACE on another thread.
Just one question though. Did Jeff...
June 20, 2012 at 3:19 am
If you're SELECTing from the results delivered by a CTE, any field listed on the ORDER BY must also be returned from the CTE, even if they're not part of...
June 20, 2012 at 3:17 am
Correct me if I'm wrong here but, in addition to forcing the isolation level, couldn't you just do something like this instead?
BEGIN TRY
insert into sometable...
June 20, 2012 at 3:13 am
Viewing 15 posts - 3,331 through 3,345 (of 3,957 total)