Viewing 15 posts - 5,221 through 5,235 (of 7,614 total)
I think those are also uniqueidentifier columns, so fragmentation is to be expected. Unless you retain lots of backup info in msdb -- and I would not recommend that...
April 9, 2015 at 9:38 am
You need to review the choice of clustering key; the clustering key is critical to performance, so never be lazy enough to allow the clustering key to default to identity....
April 9, 2015 at 9:33 am
Yes, the index row length will be 20 bytes. That is normal. Since bigint is a fixed-size data type, even if the value is NULL, it will still...
April 9, 2015 at 9:28 am
dwain.c (4/8/2015)
ScottPletcher (4/8/2015)
SELECT cust_id,...
April 8, 2015 at 10:25 pm
I'm not seeing why you can't just use the code below. I'm sure someone can quickly explain the part of the problem that I'm missing :-).
SELECT cust_id,
...
April 8, 2015 at 4:44 pm
I'd expect value -127 to take 2 bytes, since smallint is the smallest data type that can hold that value. Thus, it would still save 2 bytes vs. an...
April 8, 2015 at 4:29 pm
You need to tell SQL how to match the multiple values. A couple of quick examples:
Set @KeywordSearch = 'Platform AND Customer AND Support'
Set @KeywordSearch = 'Platform NEAR Customer NEAR...
April 8, 2015 at 4:26 pm
I would hope combining them into a single transaction with a held lock would prevent that problem:
begin transaction
select @result = Result
from Cache with (rowlock,updlock)
where [Hash] = @hash
-- A
if (@result...
April 8, 2015 at 4:20 pm
If RCSI is on, you wouldn't have any need to use ALLOW_SNAPSHOT_ISOLATION.
April 8, 2015 at 4:13 pm
This would be my only suggestion for an alternative. Don't think it's any better at all, other than that it can handle an input value this is only 4...
April 6, 2015 at 1:54 pm
Just to be sure to get the best lookup, insert the individual values in the IN list into a table uniquely clustered on the value. Then, again just to...
April 6, 2015 at 12:56 pm
Sorry, I'm a DBA, so I'm highly technical on those terms ;-).
April 3, 2015 at 1:11 pm
real.forte 18467 (4/3/2015)
1. I fetched the SID of the dbo on the original server
2. Provided I...
April 3, 2015 at 1:04 pm
CREATE PROCEDURE DvzkuruCek
@T1 DATETIME = '20150202' --'YYYYMMDD' is always interpreted correctly
AS
SET NOCOUNT ON;
DECLARE
@KUR INT;
SELECT TOP (1) @KUR = RATES1
FROM dbo.L_DAILYEXCHANGES
WHERE EDATE= @T1 AND CRTYPE...
April 3, 2015 at 1:02 pm
real.forte 18467 (4/2/2015)
April 2, 2015 at 3:05 pm
Viewing 15 posts - 5,221 through 5,235 (of 7,614 total)