Viewing 15 posts - 5,206 through 5,220 (of 7,597 total)
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
real.forte 18467 (4/2/2015)
The account I perform my restore from is dbcreator and the restore operation itself works well. It is just that it leaves the database with no dbo,...
April 2, 2015 at 2:35 pm
You don't have to be a full sysadmin, necessarily, but you do need the proper authority/permissions.
The dbcreator role should handle the restore.
You'd need to be db_owner to issue...
April 2, 2015 at 2:15 pm
Viewing 15 posts - 5,206 through 5,220 (of 7,597 total)