Viewing 6 posts - 1 through 6 (of 6 total)
Hi,
It might be worth looking at Partition Switching as a possible option as well:
https://www.jamesserra.com/archive/2012/07/sql-server-table-partition-switching/
June 20, 2019 at 12:53 pm
Have a look at the READPAST hint (https://docs.microsoft.com/en-us/sql/t-sql/queries/hints-transact-sql-table):
READPAST is primarily used to reduce locking contention when implementing a work queue that uses a SQL Server table
February 28, 2018 at 8:15 am
You can kill an orphaned transaction (lookup the KILL command in BOL) which will prevent you having to restart the service.
Leyton
September 23, 2011 at 8:58 am
Hi,
Did you read the BOL article on merge that I posted earlier? There are some good examples there.
The pertinent bit though is:
Performs insert, update, or delete operations on a target...
August 5, 2011 at 6:12 am
Hi,
You can't do what you're trying.
According to BOL (http://technet.microsoft.com/en-us/library/bb510625.aspx) WHEN NOT MATCHED only allows INSERT.
And it you can't update a different table to the target.
BTW 3 part naming...
August 5, 2011 at 4:46 am
Hi Edwin,
You need to change the column definition to be NVARCHAR to support unicode. Here's a script to show you how:
USE Test
GO
/* Create Test table with non-unicode column */
IF OBJECT_ID('dbo.Test',...
June 10, 2011 at 7:08 am
Viewing 6 posts - 1 through 6 (of 6 total)