Viewing 15 posts - 316 through 330 (of 475 total)
dwain.c (7/9/2013)
SELECT TOP 10000000 @Bitbucket=ROW_NUMBER() OVER (ORDER BY (SELECT CAST(0 AS NVARCHAR(MAX))))
FROM sys.all_columns ac1, sys.all_columns ac2, sys.all_columns ac3
But oddly it seems to perform in the same approximate time...
July 9, 2013 at 9:15 pm
dwain.c (7/9/2013)Why doesn't SQL allow the ORDER BY to be optional? In which case it should default to "no ordering."
I suppose it comes down to the majority of cases...
July 9, 2013 at 8:40 pm
by the way I had a laugh over the $ controlling the order of things 😀
July 9, 2013 at 8:19 pm
The only thing I could think of is the size of the datatype used and I don't think that would have any noticeable difference on the speed.
Having a...
July 9, 2013 at 8:11 pm
wolfkillj (7/9/2013)
Carlo Romagnano (7/9/2013)
L' Eomot Inversé (7/9/2013)
However, introducing a weird ODBC function into T-SQL seems...
July 9, 2013 at 2:32 pm
Hi
Another one to add to the mix. Not any quicker, but slightly less in the IO stats
DECLARE
@StartDate DATETIME2(7),
@EndDate ...
July 8, 2013 at 10:07 pm
No problem ... I'm glad it helped. It based on the work of smarter people than me.
Essentially it came down to a gaps and islands problem. This ...
July 7, 2013 at 4:24 pm
Hi
I think the following will do the trick for you
with adBrandPostion AS (
select AdDate, AdTime, FK_StationId, brandflag
,COUNT(*) OVER (PARTITION BY BrandFlag, FK_StationID, AdDate) NumAds
,ROW_NUMBER() OVER (PARTITION BY BrandFlag, FK_StationID, AdDate...
July 7, 2013 at 3:08 pm
Eugene Elutin (7/3/2013)
SELECT SchoolID
,REPLACE(REPLACE(SchoolName, '-',' - '),' - ',' - ') AS SchoolName
FROM #x1
Hi
Unfortunately this will leave double...
July 3, 2013 at 2:01 pm
Hi
Not sure if this is anywhere close to what you are experiencing, but recently I saw a situation where a cluster was moved to new (faster and better) hardware. ...
July 2, 2013 at 1:19 pm
Hi
A while back I got told by someone to avoid using additional functions on the XML if possible as they can have a big impact on the performance.
For example on...
July 1, 2013 at 1:21 pm
Jeff Moden (6/27/2013)
mickyT (6/27/2013)
June 27, 2013 at 9:02 pm
Hi
Playing around with this, I came up with the following variation
WITH
Tens (N) AS (SELECT 0 UNION ALL SELECT 0 UNION ALL SELECT 0 UNION ALL...
June 27, 2013 at 5:37 pm
Here's a recursive CTE method as a iTVF that could work.
I would like to come up with a none recursive method, but brain fade is setting in and I'm not...
June 25, 2013 at 8:46 pm
Viewing 15 posts - 316 through 330 (of 475 total)