Viewing 15 posts - 11,641 through 11,655 (of 26,486 total)
I had already worked with MS SQL Server for about 8 years when I joined SSC and started getting active on this site. OVer the next 5 years I...
May 29, 2012 at 10:45 am
Eugene Elutin (5/29/2012)
May 29, 2012 at 9:24 am
TheSQLGuru (5/29/2012)
Hardy21 (5/29/2012)
I have just given one option to change the query.
It will calculate and store filtered records in temp table so during delete, it...
May 29, 2012 at 7:56 am
Hardy21 (5/28/2012)
create table #TempData
(GlobalRecodID INT)
insert into #TempData (GlobalRecodID)
select GR.GlobalRecodID FROM GlobalRecords AS GR
LEFT JOIN localRecord AS LR
ON GR.GlobalRecodID = LR.GlobalRecordID
WHERE DATEDIFF(day, GR.ModificationDate, getdate()) > 365 and LR.GlobalRecordID IS...
May 28, 2012 at 11:59 pm
Give this a try, it is written for SQL Server 2000:
declare @batchsize int;
set @batchsize = 10000;
set rowcount 10000;
while @batchsize > 0
begin
delete
...
May 28, 2012 at 6:26 pm
anthony.green (5/28/2012)
SELECT CONVERT(DATETIME,LEFT(CONVERT(NVARCHAR,GETDATE(),120),10)+' 23:59:59.997')
--To get 00:00:00 of the next day
SELECT CONVERT(DATETIME,LEFT(CONVERT(NVARCHAR,GETDATE()+1,120),10)+' 00:00:00.000')
--To get 23:59:59 of the next day
SELECT CONVERT(DATETIME,LEFT(CONVERT(NVARCHAR,GETDATE()+1,120),10)+' 23:59:59.997')
That will do what you...
May 28, 2012 at 12:06 pm
JamesMorrison (5/25/2012)
I always blame Chuck Norris when anything goes wrong. He is unstoppable.Chuck Norris was born on May 6th, 1945
Nazi Germany surrendered on May 7th, 1945.
Nice joke, but, he was...
May 25, 2012 at 8:24 pm
ronmoses (5/24/2012)
May 25, 2012 at 3:59 pm
SQL Kiwi (5/25/2012)
Lynn Pettis (5/25/2012)
Answering the rhetorical question, when has a thread ever stayed strictly on topic?
Not as often as it should? At least until the primary question has...
May 25, 2012 at 3:45 pm
SQL Kiwi (5/25/2012)
Gullimeel (5/25/2012)
May 25, 2012 at 2:55 pm
Gullimeel (5/25/2012)
So it isn't necessarily same algorithm used by the Query Optimizer, correct?
I told the optimizer alogorithm to calculate the cost based on IO and cpu cost..
How?
May 25, 2012 at 2:28 pm
Gullimeel (5/25/2012)
Gullimeel (5/25/2012)
--------------------------------------------------------------------------------
Paul.
In attached screenshot if you will see that the IO cost estimation is 185.2 and CPU estimation cost is around 4.8. Then total subtree cost should have been...
May 25, 2012 at 2:21 pm
Gullimeel (5/25/2012)
In attached screenshot if you will see that the IO cost estimation is 185.2 and CPU estimation cost is around 4.8. Then total subtree cost should have been around...
May 25, 2012 at 2:14 pm
Fraggle-805517 (5/24/2012)
Lynn,That sounds interesting. Could you provide more details on the implementation on that.
Thanks,
Fraggle
I can try. I'll have to contact a co-worker there (he actually has my job...
May 25, 2012 at 2:11 pm
In addition, if you reread the original post, the modification of the ssn in the table was merely an example. Does this mean that this is actually what the...
May 25, 2012 at 2:06 pm
Viewing 15 posts - 11,641 through 11,655 (of 26,486 total)