Viewing 15 posts - 226 through 240 (of 708 total)
update AGENTSTATUS set LASTRUNGMT = @P0 , MAIL = 0, VERSION_BUILD =...February 24, 2017 at 6:06 pm
Because each index in each object may be on a separate filegroup or partition scheme, drive your query off of sys.indexes, and join the data_space_id column to sys.filegroups.data_space_id.
Here's one...
February 14, 2017 at 9:49 pm
Indianrock - Tuesday, February 14, 2017 9:30 AMALTER TABLE [dbo].[ACCOUNT_OWNERSHIP_DOC_SUMMARY] ADD CONSTRAINT [ACCOUNT_OWNERSHIP_DOC_SUMMARY_UC1] UNIQUE NONCLUSTERED
(
[CLIENT_ID] ASC,
[ACCOUNT_ID] ASC,
[OWNERSHIP_DOC_ID] ASC
)
If the index...
February 14, 2017 at 8:33 pm
-- This line of code works: February 14, 2017 at 7:35 pm
So, you want numeric values greater than (-100) and less than 100:CREATE TABLE #testr (id int not null primary key, OrigVarchar varchar(7) NOT NULL);
GO
INSERT...
February 6, 2017 at 9:56 pm
You give yourself far more flexibility by creating a single Windows Failover Cluster out of all four servers, and installing both FCIs on each of them. Are there any security...
February 5, 2017 at 3:03 pm
January 27, 2017 at 2:44 am
Select * FROM A
WHERE
If Status =...
January 26, 2017 at 10:23 pm
All of this is absolutely terrible advice, and can only make a bad situation worse:
johnwalker10 (12/6/2016)
> Create new...
December 7, 2016 at 1:33 pm
Redesign the refresh to finish every night, no matter what.
Instead of blast-refreshing all of the rows, do it in smaller, fully-COMMITted batches, walking each source table in some key...
December 1, 2016 at 11:09 pm
Page (1:2090354), slot 34 in object ID 1811133843, index ID 7, partition ID 72057594060275712...
1. Index ID #7 is a non-clustered index. It contains copies of table data (the index keys),...
November 29, 2016 at 7:08 pm
When you connected to your instance over the VPN with SSMS, did you ensure you are also using Named Pipes for communication, and not TCP/IP, so you're attempting the same...
November 2, 2016 at 7:43 pm
That will not break the transaction log chain, because you still have every transaction log backup you've taken. The oldest of them reside in one location, the newest reside in...
September 20, 2016 at 4:15 pm
Describe 'in two backup paths'.
Are you backing up to two locations at the same time using the MIRROR TO keyword of the BACKUP command? If that's what you mean, then...
September 19, 2016 at 5:33 pm
Fun with recursion 🙂
CREATE TABLE #t (a tinyint NOT NULL, b VARCHAR(10), c VARCHAR(10))
GO
INSERT #t (a, b,c) VALUES (1, 'ab', 'cd')
INSERT #t (a, b,c) VALUES (1, 'ef', 'gh')
INSERT #t (a,...
September 19, 2016 at 5:18 pm
Viewing 15 posts - 226 through 240 (of 708 total)