Viewing 15 posts - 556 through 570 (of 1,491 total)
Consumable test data:
CREATE TABLE #t
(
ID int NOT NULL
,Client_ID int NOT NULL
,MaxAmount money NOT NULL
);
INSERT INTO #t
VALUES (1, 234, 0)
,(1, 856,...
April 22, 2017 at 10:32 am
WITH OrderedOT_DTL
AS
(
SELECT *
-- You may have a column value you prefer to keep. (SELECT NULL) just orders as read.
,ROW_NUMBER() OVER (PARTITION BY ID, SDATE...
April 22, 2017 at 10:21 am
I was thinking of foreign key lookups in a high transaction environment.
If the PK on the lookup table is the clustered index then a lot of deadlocks can...
April 19, 2017 at 5:02 am
A bit a long shot, but you could try creating an unique constraint on the PK as well.
ALTER TABLE dbo.SalBranch
ADD CONSTRAINT UQ_SalBranch_Branch UNIQUE (Branch);
April 19, 2017 at 4:18 am
Just found this in Ola's FAQs:
The SQL Server Maintenance Solution supports log shipping. Full and differential backup,...
April 12, 2017 at 8:40 am
I think, by default, Ola's scripts check for MS log shipping and will not do a log backup for those DBs that are being log shipped.
(Probably best to test...
April 12, 2017 at 8:36 am
If you are that desperate...
April 9, 2017 at 2:46 pm
All our DBs are relatively small but we do have a couple of servers with highish latency.
I used the following Wait Statistics script, from Paul Randall, to identify the...
April 6, 2017 at 7:11 am
Does the SP, or triggers on any of the tables it updates, use the NOLOCK hint or run in READ UNCOMMITED isolation?
If so, get rid of the hint...
April 3, 2017 at 6:51 am
>>Is this meant to be a production server? If so, 16gb is exceedingly tiny
I suspect that depends on the system. We have a system with a 12GByte DB...
April 3, 2017 at 6:01 am
>> I am considering dropping the database backups processes on the argument that we can always restore the VM and replay the transaction logs.
Are you in a position to...
March 31, 2017 at 8:47 am
I doubt the PK of...
March 27, 2017 at 10:50 am
You have not really provided enough detail.
Assuming the column to be updated is in the same row, try the following outline:
UPDATE Y
SET YourUpdateColumn = 'WhatYouWantToUpdate'
March 27, 2017 at 9:13 am
March 27, 2017 at 8:49 am
Viewing 15 posts - 556 through 570 (of 1,491 total)