Viewing 15 posts - 211 through 225 (of 825 total)
I think there's a typo:
CREATE SECURITY POLICY rls_CustomerFilter
ADD FILTER PREDICATE dbo.rls_customer_check(customerid)
ON dbo.CustomerAccessList;
GO
"customerid" instead of "username" passed as parameter to the inline function.
Anyway, the typo doesn't change the...
March 17, 2016 at 3:09 am
Rich Mechaber (3/14/2016)
Scratched my head a bit at that first ORDER BY (on the INSERT). Was that just smoke to trip us up?🙂
Rich
No, the ORDER BY in the SELECT...
March 14, 2016 at 9:20 am
Kaye Cahs (3/11/2016)
I'm not arguing that the answer is incorrect....
March 11, 2016 at 7:41 am
When execute below code then error message come, not * (star).
SELECT TRY_CONVERT(VARCHAR(1), 234523)
An error
Msg 195, Level 15, State 10, Line 1
'VARCHAR' is not a recognized built-in function name.
When execute below...
March 2, 2016 at 3:13 am
The strange thing is that this code returns NULL using NVARCHAR(1)
SELECT TRY_CONVERT(NVARCHAR(1), 234523)
March 2, 2016 at 1:32 am
Hugo Kornelis (2/18/2016)
Carlo Romagnano (2/18/2016)
That's easy!But, try to answer this:
"What's the resut?"
SELECT TRY_CONVERT(VARCHAR(1), {D'2011-MAY-01'}):-D:-D:-D
The correct answer to this question is "it depends".
Now my question to you is if you can...
February 18, 2016 at 3:27 am
That's easy!
But, try to answer this:
"What's the resut?"
SELECT TRY_CONVERT(VARCHAR(1), {D'2011-MAY-01'})
:-D:-D:-D
February 18, 2016 at 2:06 am
Anyway -- the BOL quote explains it in technical implementation-related terms. The explanation given by Steve is the same but in more functional terms: the value is unknown, it could...
January 28, 2016 at 8:04 am
I disagree with explanation:
However NULLs are not restricted as the value could be less than 10
CHECK evaluates only true (accepted) or false (rejected) expression not UNKNOWN (accepted).
From BOL:
CHECK constraints reject...
January 28, 2016 at 2:52 am
I disagree with explanation, the error generated
Msg 4104, Level 16, State 1, Line 2
The multi-part identifier "o.object_id" could not be bound.
it's not caused by CROSS APPLY, but a reference...
January 13, 2016 at 3:16 am
bjh1977 (1/4/2016)
Small correction required - UDFs came in as part of 2000 didn't they?
I think they started earlier with stored procs ('90): sql 6.0
January 4, 2016 at 6:13 am
The "order by" clause misses!
Try this:
declare @image as table (
row_id tinyint
primary key clustered (row_id desc)
);
insert into @image(row_id)
values(1),(2),(3),(4),(5),(6),(7),(8),(9)
select
case
when max(i.row_id) over() - i.row_id >...
December 28, 2015 at 1:29 am
Viewing 15 posts - 211 through 225 (of 825 total)