Viewing 15 posts - 316 through 330 (of 819 total)
Triggers on tables execute only if at least ONE row is affected. So, explanation is wrong.
September 23, 2014 at 1:59 am
From BOL:
MERGE
[ TOP ( expression ) [ PERCENT ] ]
[ INTO ] <target_table> [ WITH ( <merge_hint> ) ] [...
September 9, 2014 at 12:58 am
Eirikur Eiriksson (9/7/2014)
...but it works for Joe in HR (that's his default schema);-)😎
That's true!
September 8, 2014 at 1:06 am
pmadhavapeddi22 (9/4/2014)
When I work with CTE, I get this error when I dont give smicolon, so it was easy to answer 🙂Thanks for the question
+1
September 4, 2014 at 1:14 am
What do you mean with "we can use print and exec commands in single query"?
August 27, 2014 at 2:19 am
I don't like qotd too long.
But, BOL states that with SERIALIZABLE isolation level:
Other transactions cannot insert new rows with key values that would fall in the range of keys read...
August 14, 2014 at 12:47 am
sp_rename leave unaltered the definition, (see sys.syscomments)
create procedure My_proc
as
select 1 as a
go
SELECT * FROM sys.syscomments
WHERE object_name(id) = 'My_proc'
go
exec sp_rename My_proc,Myproc
SELECT * FROM sys.syscomments
WHERE object_name(id) = 'Myproc'
After the rename the definition...
August 13, 2014 at 1:47 am
Mighty (8/7/2014)
Easy one, but just because I installed many SQL Servers that needed Kerberos Authentication.
+1
August 7, 2014 at 4:47 am
Wonderfull!!!
It, also, works with subquery:
SELECT * FROM (
SELECT MAX(object_id) AS ID,MAX(name) AS NAME FROM sys.objects
) AS o
But in this case it states a wrong type for column NAME(int,null)
August 6, 2014 at 1:47 am
I noticed it for columns, tables and functions, but I happily surprised for star!
Good!
😀
August 6, 2014 at 1:06 am
A little variation:
-- this runs
DECLARE @i int = 1, @j-2 int = 2;
SET @i += 2;
SELECT @j-2 * @i
GO
-- this raises error
DECLARE @i int = 1, @j-2 int = @i...
August 5, 2014 at 6:12 am
Hugo, you always are the NUMBER ONE!
😀
WOW, another qotd with a special offer with "SUMMER POINTS"!
😀
August 5, 2014 at 1:03 am
Viewing 15 posts - 316 through 330 (of 819 total)