Viewing 15 posts - 2,446 through 2,460 (of 2,610 total)
I thought this looked a good candidate for CROSS APPLY:
insert into dbo.def
(
SeqNo,
Date_Field,
Payment
)
SELECT A.Seqno,
...
June 18, 2013 at 3:53 am
tom-580235 (6/17/2013)
June 17, 2013 at 10:21 am
Nice article and some good links to useful videos
March 21, 2013 at 11:55 am
Edward.Polley 76944 (3/7/2013)
BTW - Ceiling works here because these are integer variables.Thanks,
It doesn't work in your algorithm. I've pulled it apart to see what it does if there...
March 7, 2013 at 3:27 pm
Divine Flame (3/7/2013)
Who is the author of this article? "Todd Thiemann" or "Ashvin Kamaraju" ?:-D
It does seem a bit too close for comfort to this article:
But then again at the...
March 7, 2013 at 7:13 am
The code in the article doesn't check that the EventCloseDate older than 6 days when it does the delete. Is it that the EventCloseDate is always present and monotonically increasing...
March 6, 2013 at 4:19 am
I think the creation of a separate view is unnecessary when you can have the view inline:
DECLARE @Rowcount int
SET @Rowcount = -1 -- Initialise
WHILE @Rowcount <> 0
BEGIN
...
March 6, 2013 at 12:31 am
Jeff Moden (2/8/2013)
February 8, 2013 at 8:38 am
Thank you, it's an excellent script and combined with the spreadsheet is a great way to check your scheduled jobs as a gantt chart rotated by 90 degrees.
January 29, 2013 at 9:49 am
Just tried running it on SQL Server 2005 and got this error:
Msg 1001, Level 15, State 1, Line 77
Line 77: Length or precision specification 0 is invalid.
With this line highlighted:
,CAST(STUFF(STUFF(REPLACE(STR(run_duration,...
January 29, 2013 at 4:52 am
Jeff,
The following lines in the SP exclude the primary key and any indexes that are created via adding a unique constraint rather than adding a unique index.
AND SI.is_primary_key = 0
AND...
January 22, 2013 at 9:36 am
To me "big data" just means data that's too big to do normal data transforms and analyse in the way you would with smaller data. So you need different...
January 9, 2013 at 6:26 am
I put the query for detecting overlapping dates into a function and then added this as a table constraint and this does the same job:
Function
CREATE FUNCTION CheckLocationsOverlappingDates()
RETURNS int
AS
BEGIN
...
August 21, 2012 at 3:34 am
dcdanoland (8/20/2012)
Bad news - I've been unable to create an indexed view for your query. First I had a few problems creating a view with schema binding -...
August 20, 2012 at 12:55 pm
Viewing 15 posts - 2,446 through 2,460 (of 2,610 total)