Viewing 15 posts - 511 through 525 (of 607 total)
I can see many warnings with your temp tables and column statistics. Is TempDb configured to auto create statistics?
SELECTname,
is_auto_create_stats_on,
is_auto_update_stats_on,
is_auto_update_stats_async_on
FROMsys.databases
WHEREdatabase_id = 2
November 12, 2012 at 1:46 am
I just realised I have been discussing two seperate issues on the same thread, doh.
The month end report was the actual issue on one server. The dodgy server configuration was...
November 9, 2012 at 4:22 am
Thanks Gail. I have read your article previously, but I don't think it applies in this case. The update in question is joining on AccountID, an INT, which is the...
November 9, 2012 at 4:20 am
It gets better.
Loads of files set to grow at 1MB, including my 30Gb reporting db. The rest on 10%, including a 175Gb store.
They should have asked me to check this...
November 8, 2012 at 8:29 am
OK, just discovered an interesting fact.
Our esteemed "senior" (sic) DBA setup the new server.
TempDb has 1 file, on C:, starting at 8Mb and growth of 10%.
#$%#$^$&^#%^&@@$$%
November 8, 2012 at 7:08 am
SELECT @@SERVERNAME, login_time
FROM sys.dm_exec_sessions
WHEREsession_id = 1;
November 2, 2012 at 4:52 am
matt.gyton (10/30/2012)
October 30, 2012 at 2:17 pm
matt.gyton (10/30/2012)
The database was being transferred from a SQL 2005 server to a SQL 2008 R2 server. I have now determined, after trying...
October 30, 2012 at 8:59 am
Troubleshooting SQL Server: A Guide for the Accidental DBA is a good place to start.
October 30, 2012 at 6:39 am
This code will get the value when run in a job.
DECLARE @MaxID INT;
SELECT @MaxID = MAX(instance_id)
FROM [msdb].[dbo].[sysjobhistory]
WHERE job_id = CONVERT(uniqueidentifier, $(ESCAPE_NONE(JOBID)))
AND step_id = 1;
October 30, 2012 at 5:33 am
OPENQUERY does not accept variables for its arguments. If you need to build the query dynamically you can use dynamic SQL.
DECLARE @string VARCHAR(MAX),
@sql NVARCHAR(MAX);
SET @string = 'abcd';
SET
October 29, 2012 at 6:50 am
Try this
SELECT [September 2012 Billing File] =
CASE
WHEN T2.[Application ID] IS NOT NULL
AND T2.[ServerName] IS NOT NULL
AND SUM([Billed This Month]) <> 0
THEN 'Y'
ELSE 'N'
END
FROM[AEG_DB].[dbo].[TBL_Work] T1
LEFT JOIN[TBL_Data] T2
ON (T1.[Application...
October 25, 2012 at 4:41 am
While attempting to reproduce this in another database I discovered the issue. My user table was created with ANSI PADDING off while the temp table I'm loading was created with...
October 24, 2012 at 8:09 am
Viewing 15 posts - 511 through 525 (of 607 total)