Viewing 15 posts - 586 through 600 (of 1,491 total)
The normal approach is to join to a calendar table for the datetime between the given times.
December 7, 2016 at 8:13 am
Okay, no problem with forwarded records.
At least it seems the tables in your query are heaps which might jog someone else's memory.
December 5, 2016 at 4:38 am
This could be a problem with heaps and too many forwarded records. See what numbers are produced by:
DECLARE @YourDB sysname = 'YourDB';
SELECT OBJECT_NAME(O.object_id) AS TableName, COALESCE(S.forwarded_record_count, 0) AS forwarded_record_count
FROM sys.dm_db_index_physical_stats(DB_ID(@YourDB),...
December 4, 2016 at 10:13 am
Try the following on the production DB out of hours:
USE [VoruhusGagna];
GO
DBCC CHECKDB WITH NO_INFOMSGS, ALL_ERRORMSGS, DATA_PURITY, EXTENDED_LOGICAL_CHECKS;
GO
December 1, 2016 at 6:08 am
That question was a coincidence. I had to refer to Paul Randal’s blog article for one of our development boxes yesterday.
I can never quite remember the details.
November 22, 2016 at 6:02 am
I also suspect running the lot remotely will be more efficient but there might be two tables to copy as [ETL].[dbo].[ETLCorrelation] and ETLCorrelation could be different.
You should get something going...
November 15, 2016 at 10:51 am
Assuming the PK of [dbo].[POP10110] is (PONUMBER, ITEMNMBR), try playing with the following:
SET ANSI_NULLS, QUOTED_IDENTIFIER ON
GO
CREATE TRIGGER [dbo].[X_POPREQUIREDDATECHANGE]
ON [dbo].[POP10110]
AFTER UPDATE
AS
BEGIN
SET NOCOUNT, XACT_ABORT ON;
INSERT INTO [dbo].[X_POPDateChange]
(PONUMBER, ITEMNUMBER, ITEMDESC, QTY, UOFM, REQUESTBY,...
November 10, 2016 at 10:19 am
I think some third party backup solutions, like Redgate, allow you to restore specific objects (tables etc) from a backup.
If you can afford the license cost, it might be worth...
November 8, 2016 at 9:29 am
You could look at creating asynchronous triggers with service broker. This would stop the summary table from interfering with production DB.
The downside is the plumbing and having to monitor service...
October 25, 2016 at 10:02 am
marc.corbeel (10/6/2016)
Problem is here that my real query is very complex (about 40 lines), and putting it 2 times...
October 6, 2016 at 5:24 am
One way is to expand the dates with a number/tally table and then roll them up again:
-- *** Consumable Test Data ***
-- Please supply in future with dates in ISO...
September 27, 2016 at 10:38 am
SELECT ADD_MONTHS(TRUNC(sysdate, 'MONTH'), 1)
FROM DUAL;
September 27, 2016 at 8:46 am
When using Windows utilities, Performance Monitor, perfmon, will be better at showing server bottlenecks.
September 23, 2016 at 6:08 am
It should be relatively cheap to upgrade the amount of memory in the servers to 32GBytes.
(I think that is the maximum for the standard version of WS2008R2.)
It is also worth...
September 23, 2016 at 4:37 am
As mentioned, this is an horrible design.
If you have to live with an app which uses it, I would alter it so the parameters are logged and a check made...
September 21, 2016 at 8:47 am
Viewing 15 posts - 586 through 600 (of 1,491 total)