Viewing 15 posts - 706 through 720 (of 819 total)
I prefer multiple triggers. But, it's easier to fall in recursive triggers.
November 12, 2010 at 12:47 am
To get values from other tables or columns of the same table but different row, you should use a function:
CREATE TABLE [dbo].[a2]
(
[a1ID] [int] NULL,
[col3] AS (a1ID^2)
)
GO
create function get_a2_col3(@a1id int)
returns int
as
begin
...
November 10, 2010 at 1:06 am
Maybe an attempt to introduce trinary logic? Or should the third option have been NULL? 😉
Please, do not start a discussion about NULLs. 😀
November 9, 2010 at 2:03 am
Hugo Kornelis (11/9/2010)
I was wondering about the inclusion of the "none of the above" option. Was this just a joke from the question author, or will people actually...
November 9, 2010 at 1:33 am
Don't forget Mayan calendar! Some two years to go, and ...
😀
I agree! :-D:-D:-D
November 9, 2010 at 1:29 am
So when the conversion into floats and then taking ceiling of the values, these 2 records generate the same values.
I disagree with explanation, it's enough to convert to INT
Select...
November 5, 2010 at 3:47 am
Hello, terrance
May you explain this syntax?
I think it is very dangerous to transfer search condition in the WHERE clause,
because you can alter result of "LEFT JOIN" that becomes a pure...
November 1, 2010 at 4:17 am
I think the question author tried to confuse us with the syntax for compound operators
I think the question author CONFUSED himself with the syntax for compound operators, as you...
October 29, 2010 at 2:57 am
So it seems that the explanation of the question is wrong, as it states that the pre-increment operator is not used in SQL Server. SQL Server uses however a compound...
October 29, 2010 at 1:13 am
-- non standard ansi
SELECT NullableColumn FROM NullOperation WHERE ISNULL(NullableColumn,'') <> '1'
OR
-- standard ansi
SELECT NullableColumn FROM NullOperation WHERE COALESCE(NullableColumn,'') <> '1'
October 28, 2010 at 1:36 am
Hugo Kornelis (10/22/2010)
But a quick question - if Multi-Server Administration was a new feature in SQL...
October 22, 2010 at 2:39 am
I answered TRUE, but reading and re-reading both question and answer, I do not understand why it's false. Please Hugo, help us to understand.
October 15, 2010 at 1:24 am
Be aware of computed columns that use complex formula or call functions, they may lead to performance problems:
create function getsum(@id int)
returns int
as
begin
return (select sum(id) from sysobjects...
October 15, 2010 at 1:08 am
henrik staun poulsen (10/13/2010)
In order to get round the divide by zero error, I generally do this:PF1 AS QF1 / nullif((QF1 + QF2),0),
instead of
PF1 AS QF1 / (QF1 + QF2),
Good....
October 14, 2010 at 1:24 am
Viewing 15 posts - 706 through 720 (of 819 total)