Viewing 15 posts - 8,281 through 8,295 (of 8,753 total)
Lynn Pettis (5/11/2014)
And here is an alternative solution:
And its also a better one:ermm:, probably 20% quicker than my code! Nice!
😎
May 11, 2014 at 10:05 pm
Here is a quick "translation" to play around with
😎
USE tempdb
Go
DECLARE @CHEST_COUNT INT = 1000;
/* Seed for the Inline Tally */
;WITH TN(N) AS (SELECT N FROM (VALUES...
May 11, 2014 at 8:17 pm
KGJ-Dev (5/11/2014)
Once again thank you so much for...
May 11, 2014 at 7:08 pm
KGJ-Dev (5/11/2014)
I am sorry for the error data and Thank you for the reply and query. I understand how to split. Have a question about i have 100*1000...
May 11, 2014 at 6:50 pm
If this is a fixed hierarchy, then it is straight forward. First get all distinct parent entries and the append the children. There is one error in the data, the...
May 11, 2014 at 6:20 pm
Hi David and Lynn,
thank you both for the input, I appreciate it.
Firstly, this is a valuable discussion and would merit a thread on its own.
Thanks to columnar editing in...
May 11, 2014 at 8:33 am
Jeff Moden (5/10/2014)
May 11, 2014 at 7:21 am
jeremy 64107 (5/11/2014)
I'm using SQL Server 2008 R2.
Too bad my ESP (Extrasensory perception) connection is down:-P The create table statements for both tables and the update statement sql code...
May 11, 2014 at 2:59 am
David Burrows (5/11/2014)
CREATE TRIGGER trg_LastSaleDate ON dbo.Transheaders
AFTER INSERT, UPDATE
AS
IF UPDATE(TradingDate)
BEGIN
UPDATE c
SET c.ZLastDate = i.TradingDate
FROM inserted i
JOIN dbo.Customers c ON...
May 11, 2014 at 2:44 am
jeremy 64107 (5/11/2014)
I didn't write my script I had it provided to me.
I am new to Triggers, so that script really means nothing to me.
Are you able...
May 11, 2014 at 2:06 am
You might be slightly over complicating a simple thing, look through this example
😎
USE tempdb;
GO
/*
Sample Schema, Client and Transactions
*/
/* Drop the tables if they exist in the...
May 10, 2014 at 11:11 pm
Views are helpful but no a panacea, with or without index. Other options include filtered indexes, column store indexes, partitioning and compression to name few. And as with (almost :-D...
May 10, 2014 at 1:30 pm
jnsosnowski (5/10/2014)
can anybody help me with the problem:
when I tried to run package from SQL Server management studio I get the error:
the connection type "MSORA" specified for connection manager...
May 10, 2014 at 1:14 pm
Nilesh-788004 (5/10/2014)
I am using a Lookup and that Lookup table has...
May 10, 2014 at 1:11 pm
isuckatsql (5/10/2014)
I ran your sample query on my data and it took 284 ms vs my 0 ms using a SQL Indexed View.
Then you don't have to worry:w00t:
😎
May 10, 2014 at 1:01 pm
Viewing 15 posts - 8,281 through 8,295 (of 8,753 total)