Forum Replies Created

Viewing 15 posts - 31 through 45 (of 268 total)

  • RE: Datetime2 defaults

    Thanks for this easy question ( especially when questions about Datetime2 data type seem usual since several months )

  • RE: Happy Thanksgiving 2015

    stuart.adair (1/19/2016)


    Questions specific to a country should not be presented. I'm sure the American audience wouldn't like UK, China, etc related questions. This is topped by allocating 7...

  • RE: To view or not to view, that is the question.

    Hugo Kornelis (10/30/2015)


    I like the question. Good reminder of the intricacies of working with views.

    There is a small mistake in the explanation, though. Changing data types will not cause conversion...

  • RE: Server.Configuration Properties

    TomThomson (12/29/2015)


    SQLRNNR (12/29/2015)


    TomThomson (12/29/2015)


    Quite a nice question, but why involve PowerShell?

    I was wondering that myself. It is easy enough to get a list of the configs from a simple select...

  • RE: What's the Length?

    Interesting question but an easy one for me only because I remembered that the default value of the max length of a string is 4000. I have to admit that...

  • RE: The R Language

    Thanks for this interesting QOD.

    I have been able to select the good choice only because I have read the documentation of the next SQL Server version ( 2016 ) last...

  • RE: Happy New Year 2016

    Igor Micev (1/5/2016)


    J Livingston SQL (1/4/2016)


    Wayne West (1/4/2016)


    Steve, I'd like to see your code because I can't duplicate it. I ran the following:

    DECLARE @HashThis VARCHAR(20) = 'January 1, 2016';

    SELECT...

  • RE: Happy New Year 2016

    Wayne West (1/4/2016)


    Steve, I'd like to see your code because I can't duplicate it. I ran the following:

    DECLARE @HashThis VARCHAR(20) = 'January 1, 2016';

    SELECT 'MD2' AS HashType, hashbytes('MD2',@HashThis) AS...

  • RE: PoSh Index Rebuilds

    TomThomson (1/4/2016)


    Nice question

    But just like the 29th December question it's more about the SMO object model than about PoSh. The first option is not the right one because a...

  • RE: PoSh Index Rebuilds

    Thanks for this easy question ( SMO is my beloved part of SQL Server and I have written many pieces of code with it ). As PowerShell is often written...

  • RE: It's the end of the year

    Lynn Pettis (1/4/2016)


    Good question. Just one minor thing, I'd use the following the end of the calendar year:

    SELECT DATEADD(DAY, -1, DATEADD(YEAR, DATEDIFF(YEAR, 0, GETDATE()) + 1, 0));

    So short and...

  • RE: It's the end of the year

    Toreador (1/4/2016)


    Aaron N. Cutshall (1/4/2016)


    Cut and paste issues hit us all -- even to the experienced.

    Especially to the experienced - the inexperienced are more likely to check things afterwards 🙂

    +1...

  • RE: It's the end of the year

    Excellent question for the last day of the year especially with an awesome trick : the comment for the 1st select in the 4th choice.

    Before posting here , I...

  • RE: Merry Christmas 2015

    Iwas Bornready (12/27/2015)


    Ahhhh. How cute is that...

    It's working on SQL Server2014 Express and I have looked at the Spatial Results panel ( between the Results and Messages panels )

  • RE: Datetime2

    Eirikur Eiriksson (12/26/2015)


    The explanation isn't correct, "This determines the storage for the type, but only in varying the storage from 6 to 8 digits of precision." should be "This determines...

Viewing 15 posts - 31 through 45 (of 268 total)