Viewing 15 posts - 6,541 through 6,555 (of 7,472 total)
ooh it must have been realy early in the morning ....
this inline select performs only a sum, so no duplicates
July 15, 2005 at 12:19 am
btw, suppose your in-line-select returns more than one result ?
Wich one to pick ?
July 14, 2005 at 12:16 am
just a first idea, early in the morning :
SELECT @ProjectID, CSPD.EventID, E1.LeadTime
, isnull(( SELECT DATEADD( d, -SUM( E2.LeadTime ), @CustomerShipDate )
FROM CompanySeasonProductTemplate AS CSPD2, Event AS E2
...
July 14, 2005 at 12:13 am
Thank you Scott for the assistance
All Italics-characters are copied from books online. The coloring was just to emphasise the pittfalls.
July 13, 2005 at 12:07 am
... When a database is deleted, the default database for any associated users is supposed to be set to Master. Looking at the sysxlogins table, this appears to have happened....
July 12, 2005 at 12:24 am
from BOL :
NO_LOG | TRUNCATE_ONLY
Removes the inactive part of the log without making a backup copy of it and truncates the log. This option frees space. Specifying a...
July 12, 2005 at 12:04 am
July 11, 2005 at 6:44 am
try this :
BEGIN TRANSACTION
DECLARE @JobID BINARY(16)
DECLARE @ReturnCode INT
SELECT @ReturnCode = 0
IF (SELECT COUNT(*) FROM msdb.dbo.syscategories WHERE name = N'[Uncategorized (Local)]') < 1
...
July 8, 2005 at 8:04 am
we only reboot when needed (upgrade) or when e.g. a plant's productionprocess is in maintenance, we take the change to check the server thoroughly, perform systems-maintenance and reboot.
Currently our longest...
July 8, 2005 at 12:26 am
maybe you can have a first glimp using DBCC INPUTBUFFER (spid)
Offcourse profiler will be your main analysis tool.
July 7, 2005 at 3:04 am
- did you take a look a the statistics ? (dbcc showcontig, sp_spaceused... )
- you might use QA to check the queries using the option "display estimated execution plan" and...
July 7, 2005 at 2:55 am
you can say that again !
truncate_only seemed so easy, but making the new fullbackup has been forgotten many times
July 7, 2005 at 12:08 am
so his master-backup was older than one month ??
Define new backup Schedules using sql-backups and using sqlagent.
BEGIN TRANSACTION
DECLARE @JobID BINARY(16)
DECLARE...
July 6, 2005 at 5:37 am
please give him some time, the updateusage and sp_updatestatst will also take some time, then reruning the queries and some analisys also need more than 15 minutes
July 6, 2005 at 1:46 am
Viewing 15 posts - 6,541 through 6,555 (of 7,472 total)