Viewing 15 posts - 1,171 through 1,185 (of 6,036 total)
Actually, that table is already created for you by the nice (shoosh you there! :-)) guys from MS:
declare @maxordinal int
select @maxordinal = column_id - 1
from sys.columns
WHERE OBJECT_ID = OBJECT_ID('mytable')
AND name...
_____________
Code for TallyGenerator
September 13, 2016 at 10:52 pm
CELKO (9/13/2016)
(start_date, end_date) pairs the idiom has been that a null in the end_date means "eternity"in that context
My experience has been that it means one of two possible outcomes:
1) Eternity...
_____________
Code for TallyGenerator
September 13, 2016 at 10:31 pm
Gregory Hart (9/13/2016)
(start_date, end_date) pairs the idiom has been that a null in the end_date means "eternity"in that context
My experience has been that it means one of two possible outcomes:
1)...
_____________
Code for TallyGenerator
September 13, 2016 at 8:15 pm
The Dixie Flatline (9/10/2016)
_____________
Code for TallyGenerator
September 12, 2016 at 5:04 pm
sql-lover (9/8/2016)
_____________
Code for TallyGenerator
September 11, 2016 at 6:17 pm
FORMAT or CONVERT or STR - they all return varchar data type.
On an attempt to save their outcome into int column it will be converted back to int and all...
_____________
Code for TallyGenerator
September 10, 2016 at 5:59 am
For a start.
You do not need to run the same query twice:
SELECT @Count=count(*) from dbo.PropertyAssets pa
inner join Scenarios sce on sce.id = pa.scenarioId
inner join Portfolios por on por.id...
_____________
Code for TallyGenerator
September 9, 2016 at 4:09 am
Gregory Hart (9/8/2016)
For most business data management applications, the preference is to default numeric values to be zero and not allow NULLs.
It must be "For lousy developers of...
_____________
Code for TallyGenerator
September 8, 2016 at 7:44 pm
mister.magoo (9/8/2016)
_____________
Code for TallyGenerator
September 8, 2016 at 6:34 am
mister.magoo (9/8/2016)
Sergiy (9/7/2016)
mister.magoo (9/7/2016)
_____________
Code for TallyGenerator
September 8, 2016 at 6:20 am
mister.magoo (9/7/2016)
CASE cost...
_____________
Code for TallyGenerator
September 7, 2016 at 10:17 pm
Gregory Hart (9/7/2016)
OK, ... Pray tell, ... What possible use have you had for a raised error when division by zero occurs?
Same use as for any other type of errors...
_____________
Code for TallyGenerator
September 7, 2016 at 9:53 pm
tshad (9/7/2016)
_____________
Code for TallyGenerator
September 7, 2016 at 4:12 pm
Gregory Hart (9/7/2016)
_____________
Code for TallyGenerator
September 7, 2016 at 4:05 pm
Again, there are certainly times when a shorter clustering key and more covering indexes are warranted. But not by default. In fact, that should never be by default.
I wish...
_____________
Code for TallyGenerator
September 6, 2016 at 8:37 pm
Viewing 15 posts - 1,171 through 1,185 (of 6,036 total)