Viewing 15 posts - 1,021 through 1,035 (of 6,036 total)
Koen Verbeeck (12/14/2016)
sknox (12/14/2016)
However, 3 of the four answers fit that question as written.
The question should have been "How...
_____________
Code for TallyGenerator
December 14, 2016 at 4:55 pm
Lynn Pettis (12/14/2016)
Enough.
Apparently not, if you keep coming back.
😛
_____________
Code for TallyGenerator
December 14, 2016 at 3:12 pm
sgmunson (12/12/2016)
Sergiy,I honestly don't know what universe you're living in.
Why? Anything what I said does not apply to your universe?
Yes, there are LOTS of foolish people. Yes,...
_____________
Code for TallyGenerator
December 13, 2016 at 10:28 pm
That's what you should be doing (using your beloved "non-legacy" system views this time 🙂 ):
SELECT OBJECT_NAME(ic.object_id), i.index_id, COUNT(*), COUNT(DesiredIndex.OrdPosition)
FROM sys.indexes i
INNER JOIN sys.index_columns ic ON ic.object_id = i.object_id AND...
_____________
Code for TallyGenerator
December 13, 2016 at 10:04 pm
Xedni (12/7/2016)
Sergiy (12/7/2016)
You may have many identical indexes, all with different names.
To check if an index with the same structure...
_____________
Code for TallyGenerator
December 13, 2016 at 9:45 pm
BTW,
you've got an error in your duration calculations.
Here is the testing script:
SELECT *,
duration_datetime = DATEADD(ss, T2.minutes/100, 0),
duration_orig = cast(minutes /100/60/60 as varchar) + ':' + left( cast...
_____________
Code for TallyGenerator
December 13, 2016 at 9:36 pm
John Mitchell-245523 (12/8/2016)
Yes, that's how it works. Try declaring @starttime and @endtime variables and setting them to the new values. You can then use them in the update...
_____________
Code for TallyGenerator
December 13, 2016 at 9:02 pm
Sioban Krzywicki (12/13/2016)
I'm trying to avoid an EAV table because it has been poorly implemented elsewhere in the database & I'm trying to fix that as well.
Somebody implemented EAV poorly...
_____________
Code for TallyGenerator
December 13, 2016 at 4:03 pm
etl2016 (12/12/2016)
I am seeing that special character on my SSMS query, where as the actual data does not contain that character.
Basically, data type is varchar for both source and destination...
_____________
Code for TallyGenerator
December 13, 2016 at 3:42 pm
sgmunson (12/11/2016)
Sergiy (12/11/2016)
sgmunson (12/9/2016)
Sergiy (12/8/2016)
sgmunson (12/8/2016)
Sergiy (12/8/2016)
sgmunson (12/8/2016)
Sergiy (12/7/2016)
sgmunson (12/6/2016)
_____________
Code for TallyGenerator
December 12, 2016 at 4:24 am
sgmunson (12/9/2016)
Sergiy (12/8/2016)
sgmunson (12/8/2016)
Sergiy (12/8/2016)
sgmunson (12/8/2016)
Sergiy (12/7/2016)
sgmunson (12/6/2016)
_____________
Code for TallyGenerator
December 11, 2016 at 4:29 pm
sgmunson (12/8/2016)
Sergiy (12/8/2016)
sgmunson (12/8/2016)
Sergiy (12/7/2016)
sgmunson (12/6/2016)
_____________
Code for TallyGenerator
December 8, 2016 at 4:49 pm
sgmunson (12/8/2016)
Sergiy (12/7/2016)
sgmunson (12/6/2016)
_____________
Code for TallyGenerator
December 8, 2016 at 2:56 pm
sgmunson (12/6/2016)
_____________
Code for TallyGenerator
December 7, 2016 at 9:43 pm
But better go with this:
declare @Year int = 16
declare @ThisYear varchar(10), @LastYear varchar(10)
SELECT @ThisYear = CONVERT(VARCHAR(10), @Year) + '-' + CONVERT(VARCHAR(10), @Year + 1),
@LastYear = CONVERT(VARCHAR(10), @Year-1) + '-' +...
_____________
Code for TallyGenerator
December 7, 2016 at 7:12 pm
Viewing 15 posts - 1,021 through 1,035 (of 6,036 total)