Viewing 15 posts - 5,941 through 5,955 (of 10,144 total)
SQL Kiwi (8/2/2012)
Fal (8/2/2012)
Well, being a Kiwi he does live in the land of Mordor. 😛
True; see the picture below of two hobbits winning our first gold medal in...
August 2, 2012 at 6:47 am
Hi Jay
We use VS2010Ultimate/AnkhSVN/SSDT for development here so I'm reasonably familiar with it - yet I'm not sure what you are trying to do or why. If you want to...
August 2, 2012 at 6:42 am
shahsn11 (8/2/2012)
How to implement surrogate key ?
CREATE TABLE MyTable (
MyTableID INT IDENTITY(1,1) PRIMARY KEY,
.
.
.
August 2, 2012 at 6:35 am
Sometimes, just occasionally, when the target table isn't the first table listed in the FROM list, SQL Server gets its knickers in a twist. Try this:
UPDATE ceh
Set AEarned 1 =...
August 2, 2012 at 6:32 am
anthony.green (8/2/2012)
Thanks Lynn for Chris's modified function.Both that function and the one in the DB backup I provided both execute in the same amount of time.
Anthony - "Chris's modified function"...
August 2, 2012 at 3:48 am
XMLSQLNinja (8/1/2012)<<snip>>
Each of these guys will blast through several hundred thousand rows in seconds. QU is still new to me and I'm playing around with it - it is usually...
August 2, 2012 at 2:03 am
Lynn Pettis (8/1/2012)
ChrisM@Work (8/1/2012)
Lynn Pettis (8/1/2012)
I made a slight change to the function Chris wrote...😀 😀
Take this as a "seal" (imagine a picture of a seal here) of approval? ...
August 1, 2012 at 10:03 am
Lynn Pettis (8/1/2012)
I made a slight change to the function Chris wrote...
😀 😀
August 1, 2012 at 9:47 am
anthony.green (8/1/2012)
Chris,Just a simple execute the two views, the original came back in 12 seconds, yours was over 2 minutes.
I get around 15-60ms for either using the backup...
August 1, 2012 at 8:49 am
How did you time the runs, Anthony?
August 1, 2012 at 8:03 am
This function runs about 25% faster:
-- =============================================
-- Author:<Author,,Name>
-- Create date: <Create Date,,>
-- Description:<Description,,>
-- =============================================
ALTER FUNCTION [dbo].[GetCIDs]
(@SID INT)
RETURNS @Result TABLE (LongCID VARCHAR(8000))
AS
BEGIN
DECLARE @Accumulator TABLE (seq INT, CID INT);
INSERT INTO...
August 1, 2012 at 7:25 am
jerome.morris (8/1/2012)
Chris M do I need to give more information ?I can see the finish line almost 🙂
I'm sorry Jerome, looks like you need a c# developer to help with...
August 1, 2012 at 4:15 am
texpic (8/1/2012)
date...
August 1, 2012 at 3:56 am
SELECT Dept, UserId, x.[date], x.[Hour], COUNT(*)
FROM #CountsPerHour
CROSS APPLY (
SELECT
[date] = DATEADD(dd,0,DATEDIFF(dd,0,StartTime)),
[Hour] = DATEPART(hh,StartTime)
) x
WHERE Dept <> 2
AND StartTime >= @DateStart -- NOTE >=
AND...
August 1, 2012 at 3:30 am
Koen Verbeeck (8/1/2012)
ChrisM@Work (8/1/2012)
polkadot (7/31/2012)
... I need an alias for the column the WHERE STATEMENT generates...
The WHERE clause doesn't generate an output column. Ever.
There are four well-known ways to...
August 1, 2012 at 2:58 am
Viewing 15 posts - 5,941 through 5,955 (of 10,144 total)