Viewing 15 posts - 16 through 30 (of 812 total)
I use this feature a lot, see the following example:
declare @t table (i int identity primary key, name sysname)
declare @i int = 1
,@name sysname
insert into @t
select TOP(10)...
April 20, 2023 at 6:55 am
I get it right, but I admit that the question is a little confusing: the value of 4 is the 3rd bit (starting from position ZERO, 2 is the right...
March 15, 2023 at 10:13 am
I think that ROLLBACK doesn't return any message.
March 13, 2023 at 2:45 pm
In the explanation, to be precise, I would change "where the first number is not a 9"
with "where the first char is not a 9"
November 23, 2022 at 11:57 am
Good catch!
It is Interesting that NULL never has a BaseType, also if you cast it to a defined type (e.g. INT).
SELECT *
,LEN(V.a)
,dataLENgth(V.a)
,SQL_VARIANT_PROPERTY(V.a, 'BaseType')
FROM (VALUES
(N'1')
,('2')
,('3')
,(NULL)
) AS...
November 18, 2022 at 8:00 am
Try this (adjust for your needs), then execute the output script:
set nocount on
select DISTINCT 'exec sp_helptext ' AS '--','[' + o.name + ']' AS [ ],CASE OBJECTPROPERTY(o.id,'ExecIsTriggerDisabled')...
September 7, 2022 at 11:28 am
What's the syntax for "LOAD CERTIFICATE"? I cannot find it on BOL.
I saw that CREATE CERTIFICATE or ALTER CERTIFICATE loads the certificate from a file.
July 20, 2022 at 7:21 am
*** sorry for the spoilers; but my comment didn't make sense to me without them ***
I debated with myself between "Zero records" and the more comprehensive "Returns distinct rows...
June 8, 2022 at 2:26 pm
Carlo Romagnano wrote:Of course the isolation level of the database should be as in the image
Of course! That's obviously clear from the questionđŸ˜‹
The question is about the...
June 8, 2022 at 2:15 pm
Of course the isolation level of the database should be as in the image
June 8, 2022 at 7:40 am
I ran the query and see zero rows only, please verify your answer.
If the query returns no row, it means that there are not uncommitted data (inserted or modified).
June 8, 2022 at 6:54 am
For debug, I used this query to return all rows inserted or changed in all open transaction.
How to reproduce the scenario:
Start a transaction in one session, insert or modify data...
June 8, 2022 at 6:51 am
If you assume that the string always starts with '\1\' (as the original post) and you do not know then length of text then you can use STUFF instead of...
April 15, 2022 at 1:32 pm
WITH ctePC
AS ( SELECT expression
FROM
( VALUES
...
April 11, 2022 at 8:39 am
Viewing 15 posts - 16 through 30 (of 812 total)