Viewing 15 posts - 2,656 through 2,670 (of 5,590 total)
Jeff Moden (10/30/2010)
Ya beat me to it by a long shot. Well done.
Thanks. I've got just five words to say... "SQL Server MVP Deep Dives[/url]"
Oddly enough, I just wrote...
October 30, 2010 at 7:13 pm
An alternative method (faster, less reads) is:
declare @StartDate smalldatetime;
set @StartDate = '20100103';
WITH CTE AS
(
-- Group each date by the difference between that day and the row number
-- (sequential dates will...
October 30, 2010 at 10:06 am
The solution to this is in recognizing that you need to identify the "islands" - the start/end positions of each contiguous range of values.
The first thing that I'm going to...
October 30, 2010 at 9:40 am
First of all, I'd recommend these two indexes (your code benefits from these also!):
CREATE INDEX [Cover1] ON [dbo].[aa_BillBillingAgreement](BaiOffice) INCLUDE (BaiPKey, AgrPKey);
CREATE INDEX [Cover1] ON [dbo].[aa_BillBillingAdjustments](BiaBillingDate, BiaInvoiceApproved, BiaStartDate) INCLUDE (BaiPKey, BiaEndDate,...
October 29, 2010 at 7:08 pm
mbender (10/29/2010)
Ya i guess i really don't know the difference between a temp table and a variable table.
I'd suggest this article that I wrote: Comparing Table Variables to Temporary Tables[/url]
BTW,...
October 29, 2010 at 7:02 pm
SELECT Field1, Field2 = count(*)
FROM YourTable
GROUP BY Field1
ORDER BY Field1
October 29, 2010 at 9:48 am
Peter Rijs (10/29/2010)
Nicely worked out solution, I liked some comments in your code a lot :w00t:
Thanks. Just realize that the function is coded by Jeff Moden, not me.
October 29, 2010 at 9:38 am
If you look on the download page at Microsoft, you will see that this is version 10.00.2531.00. Since R2 RTM is 10.50.1600.1, it's not applicable.
October 29, 2010 at 9:19 am
Lynn Pettis (10/29/2010)
October 29, 2010 at 8:53 am
What you would need to do is to load these files into a staging table with one large column.
Determine which rows have the extra delimiter, and delete the extra delimiter.
Here's...
October 29, 2010 at 8:39 am
Craig Farrell (10/28/2010)
CREATE TRIGGER trg_Celko ON vw_SSC_PostList FOR AFTER INSERT
AS
-- Go read the documents, inline comments are for sissies.
IF EXISTS (SELECT...
October 29, 2010 at 7:40 am
So you've got two SQL Spackle articles already done? You really are quite the hot-shot.
October 28, 2010 at 10:41 pm
Lynn Pettis (10/28/2010)
jcrawf02 (10/28/2010)
1 - we're all talking too much about Celko, and frankly, you're...
October 28, 2010 at 10:34 pm
Lynn Pettis (10/28/2010)
Jeff Moden (10/28/2010)
nshah6 (10/28/2010)
Thank you !You guys are Great. I really appreciate this ! ๐
I consider this problem RESOLVED !
Maybe so but you should consider it to...
October 28, 2010 at 10:08 pm
Stefan Krzywicki (10/28/2010)
Roy Ernest (10/28/2010)
October 28, 2010 at 7:46 pm
Viewing 15 posts - 2,656 through 2,670 (of 5,590 total)