Viewing 15 posts - 4,411 through 4,425 (of 8,754 total)
Here is a quick solution that fits nicely for simple usage.
😎
Test data set for demonstration
USE TEEST;
/* Safe place to play in */
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'dbo.Person') IS NOT NULL DROP TABLE...
October 1, 2015 at 2:31 am
Here is a quick solution
😎
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @SAMPLE_SIZE INT = 365;
DECLARE @FIRST_DATE DATE = CONVERT(DATE,'20141231',112);
DECLARE @ZERO_DATE DATE...
September 30, 2015 at 2:44 pm
andy 61637 (9/30/2015)
(about line 18)?
This...
September 30, 2015 at 12:59 pm
WayneS (9/30/2015)
Luis Cazares (9/30/2015)
ChrisM@Work (9/30/2015)
Brandie Tarvin (9/30/2015)
ChrisM@Work (9/30/2015)
September 30, 2015 at 12:08 pm
Brandie Tarvin (9/30/2015)
SQLRNNR (9/23/2015)
Eirikur Eiriksson (9/23/2015)
This made me giggle*cough*:cool:
Grrr. The way he phrased his thank you. Yes, I piled on. But believe me, what I posted was far more polite...
September 30, 2015 at 11:11 am
ignacio.jose (9/29/2015)
Running the script is fast less than 1 second but when I say...
September 30, 2015 at 1:12 am
Ed Wagner (9/29/2015)
djj (9/29/2015)
Ed Wagner (9/29/2015)
DonlSimpson (9/29/2015)
Eirikur Eiriksson (9/29/2015)
HairFollicle
Shave
Close
Encounter
Event
September 29, 2015 at 11:31 pm
joshdbguy (9/29/2015)
September 29, 2015 at 11:16 pm
Ed Wagner (9/29/2015)
Luis Cazares (9/29/2015)
Ed Wagner (9/29/2015)
djj (9/29/2015)
Ed Wagner (9/29/2015)
SQLRNNR (9/28/2015)
DonlSimpson (9/28/2015)
Ed Wagner (9/28/2015)
whereisSQL? (9/28/2015)
djj (9/28/2015)
Ed Wagner (9/28/2015)
anthony.green (9/28/2015)
ZZartin (9/28/2015)
LeafHeap
Cluster
Single
Engaged
Active
Passive
Node
Tree
Family
History
Channel
Triggers
Hair
September 29, 2015 at 9:48 am
aymanahmed88 (9/29/2015)
i need to store list of array in one parameter to complete my query
i try the table value but...
September 29, 2015 at 9:39 am
Grant Fritchey (9/29/2015)
September 29, 2015 at 4:38 am
rwitt 95744 (9/28/2015)
I'm curious what are the most important/relevant stats, query plan aspects, etc., that you look at, when trying to determine if one T-SQL coding approach is more...
September 28, 2015 at 11:33 pm
serg-52 (9/28/2015)
To optimize a bit further why declare namespace which is never used in the query
;WITH XMLNAMESPACES (DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/shareddatasetdefinition')
SELECT
D.field1.value('(SharedDataSet/DataSet/Query/CommandText/text())[1]','VARCHAR(50)') AS CommandText
FROM #demo D;
Since it...
September 28, 2015 at 1:10 pm
Quick thought, the posted solution works but it imposes quite a lot of work which can be avaided, here is a more efficient alternative.
😎
USE tempdb;
GO
SET NOCOUNT ON;
IF OBJECT_ID(N'sbo..#demo') IS NOT...
September 28, 2015 at 11:05 am
Viewing 15 posts - 4,411 through 4,425 (of 8,754 total)