Viewing 15 posts - 6,721 through 6,735 (of 8,753 total)
Phil Parkin (10/21/2014)
Eirikur Eiriksson (10/21/2014)
October 21, 2014 at 1:11 am
Jeff Moden (10/21/2014)
Eirikur Eiriksson (10/20/2014)
October 21, 2014 at 12:55 am
I strongly belief that dynamic SQL solutions should be avoided if possible, it normally doesn't take much of an additional complexity to render them useless or at least very hard...
October 21, 2014 at 12:25 am
Hi and welcome to forum. Quick note, you should post this question in the appropriate forum depending on your SQL Server version.
The answer is actually in the question, look up...
October 20, 2014 at 10:15 pm
Good point Luis! It is also around 30% faster,
Quick comparison
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @INT_BUCKET INT = 0;
DECLARE @CHAR_BUCKET CHAR(7) = '';
DECLARE @TIMING_RESULTS TABLE
(
...
October 20, 2014 at 10:06 pm
byanaman1 (10/20/2014)
October 20, 2014 at 9:40 pm
Another important aspect is the use of SQL code modules as a means for code modularisation, nudging the SDLC more towards SOLID so to speak, something that is immensely beneficial...
October 20, 2014 at 8:45 pm
Some code refactoring on the previous set based solution to fulfil all the requirements, several orders of magnitude faster than string manipulation although it has not been tested on very...
October 20, 2014 at 8:13 pm
Quick question, could you describe the problem you are trying to solve?
😎
October 20, 2014 at 12:24 pm
Quick addition of another key element (SRC_ID)
😎
USE tempdb;
GO
;WITH BASE_DATE(BD_ID,SRC_ID,BD_FLAG) AS
( SELECT BD_ID,SRC_ID,BD_FLAG FROM (VALUES
(1 ,1,'ABC' )
,(2 ,1,'123' )
...
October 20, 2014 at 12:18 pm
Quick thought, use the stuff function
😎
USE tempdb;
GO
DECLARE @SAMPLE_SIZE INT = 123;
DECLARE @PADDING CHAR(3) = '000';
;WITH T(N) AS (SELECT N FROM (VALUES (NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL),(NULL))...
October 20, 2014 at 12:00 pm
Marcus Farrugia (10/20/2014)
What is the best way or is it possible to call a stored procedure within another stored procedure ...
Quick demonstration
😎
USE tempdb;
GO
CREATE PROCEDURE dbo.PROC_ONE
(
@PARAM ...
October 20, 2014 at 11:01 am
Phil Parkin (10/20/2014)
Eirikur Eiriksson (10/18/2014)
Quick window function solution, should be self explanatory😎
Eirikur, do you ever do anything slowly? 😛
According to the better half, yes:-P
😎
October 20, 2014 at 10:50 am
Quick "skeleton" suggestion
😎
USE tempdb;
GO
;WITH BASE_DATE(BD_ID,BD_FLAG) AS
( SELECT * FROM (VALUES
(1,'ABC' )
,(2,'123' )
,(3,'DEF' )
,(4,'FOO'...
October 20, 2014 at 10:43 am
KoldCoffee (10/19/2014)
SELECT
...
October 19, 2014 at 10:27 pm
Viewing 15 posts - 6,721 through 6,735 (of 8,753 total)