Viewing 15 posts - 1 through 15 (of 26 total)
Agreed, but this is a test server and if I set the Tempdb to 2GB it will re-size to 2GB. But if I restart the SQL Service it will go...
May 24, 2012 at 1:39 pm
Hope this helps. I only want row one if row two doesn't exist. The second column is the version number. So if there is a version_number >1 then I don't...
October 22, 2009 at 9:43 am
What version of SQL do you have? The query above is correct for SQL 2005 if your running SQL 2000 try this
s.plan_name AS [Name],
s.date_created AS [CreateDate],
s.owner AS [Owner]
FROM
msdb.dbo.sysdbmaintplans AS s
ORDER...
June 2, 2009 at 1:57 pm
nothing much in the error logs and the tempdb is not set to Auto Shrink. It looks like I just need to run a shrink against it. Should I set...
June 1, 2009 at 8:57 am
how would I remove the seconds from the date so it just displays the mm/dd/yyyy?
April 9, 2009 at 1:46 pm
yeah I tried that but I can't figure out how to do it without it summing the db size field
February 17, 2009 at 2:00 pm
hmmm how would I handle a NULL values?
November 25, 2008 at 2:29 pm
thanks Ken that worked for me!
November 25, 2008 at 2:11 pm
I ran the code that Jerry posted
DELETE PW -- COUNT(1)
FROM performance_esx3_workload PW
INNER JOIN performance_sample PS
WHERE PW.sample_id = PS.id
AND PS.sample_time < '2008-07-01'
October 23, 2008 at 3:30 pm
I get a syntax error
Incorrect syntax near the keyword 'WHERE'
any ideas?
October 23, 2008 at 3:21 pm
I should'nt have said Truncate, I don't want to remove all the data just older records. I will be deleteing around a 700,000 rows. I'm not sure how the index...
October 14, 2008 at 7:19 am
sp_spaceused
name = performance_sample
rows = 11479644
reserved = 1543736 KB
data = 499120 KB
index_size = 1044464 KB
unused = 152 KB
USE [UpTime]
GO
/****** Object: Table [dbo].[performance_sample] Script Date: 10/13/2008 14:23:35 ******/
SET...
October 13, 2008 at 1:28 pm
I have checked that and the index is just big
Page Fullness = 99.35%
Total fragmentation = 0.01%
Leaf-level rows = 131652200
Maximum row size = 187
Minimum row size = 125
Pages = 2399128
October 13, 2008 at 10:55 am
Viewing 15 posts - 1 through 15 (of 26 total)