Viewing 15 posts - 18,211 through 18,225 (of 26,489 total)
RBarryYoung (11/25/2009)
Alvin Ramard (11/2/2009)
Lynn Pettis (11/2/2009)
November 25, 2009 at 4:08 pm
Too be honest, I never saw myself being in the top 5 or breaking 10,000! :Wow:
November 25, 2009 at 12:28 am
CirquedeSQLeil (11/24/2009)
Woot - just cracked the top 100 here at SSC. It only took 1918 points.
To think, a year or so ago that would have put you in the...
November 25, 2009 at 12:25 am
Okay, here is one way to delete five million rows of data from a table with thirty seven million rows of data.
declare @Batch int;
set @Batch = 10000; -- Batch size...
November 25, 2009 at 12:04 am
Remember always, the water cooler this is. Here may you veg (or my case run to the desert), rant a bit, and even ask for help on other threads...
November 24, 2009 at 11:42 pm
If you're going to "bump" your post, how about posting something usefull, like DDL for your tables, sample data, and expected results. That may actually get you more help...
November 24, 2009 at 6:17 pm
Dave Ballantyne (11/24/2009)
Just had to check my daughters homework (she 8) , she had to plan an 8 hour evening tv schedule adding...
November 24, 2009 at 2:44 pm
Not sure, but I think I'd try something like this:
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
begin transaction
if exists(select 1 from dbo.tRunNo where Pref = '_T' and RYear = '2009' and RMonth =...
November 24, 2009 at 1:49 pm
Ron-279530 (11/24/2009)
select historyid, h.startdate,a.account,h.description,longnotes, address1, city, state,...
November 24, 2009 at 1:36 pm
May I suggest that you try checking out BOL? It may cover this particular topic, I haven't checked myself as I have never been asked this question myself in...
November 24, 2009 at 1:25 pm
Actually, if I were doing this and running a query through the end of the previous day, month, quarter, etc I'd do it slightly different.
Using the end of the previous...
November 24, 2009 at 1:10 pm
First, this question could require an extremely verbous answer. It would help if we could understand better what you are actually looking for from this question.
November 24, 2009 at 12:44 pm
So, yyyy-12-31, yyyy-03-31, yyyy-06-30, yyyy-09-30?
Then you can check this out:
select dateadd(qq, datediff(qq, 0, getdate()), -1)
This will return the last day of the previous quarter.
November 24, 2009 at 12:11 pm
Roger Abram (11/24/2009)
I actually got it to work by doing this:If month(getdate()) = '04'
set @PaidThruRun = convert(datetime, ( '03/31/' + convert(varchar,year(Getdate()) )))
Okay, now it looks like you want the end...
November 24, 2009 at 12:05 pm
Viewing 15 posts - 18,211 through 18,225 (of 26,489 total)