Forum Replies Created

Viewing 15 posts - 46 through 60 (of 370 total)

  • RE: Cast in Varchar with different options

    I thought it was 20 characters and not 30 inside CAST/CONVERT.

    Thanks for the straightforward and back-to-basics question.

  • RE: Restart Log Backups

    Hugo Kornelis (7/9/2012)


    I hope you'll reconsider and resume submitting QotD's.

    +1

  • RE: Union and Union All

    For one moment, I thought there was a catch somewhere as the question and code all looked very easy.

    It's interesting how the first part of the UNION is a derived...

  • RE: Attempted to perform an unauthorized operation

    Are you using a administrator account to install?

    It seems like a restriction on the Windows side to me.

  • RE: Declaring data type in a function AS...

    Golfer22 (7/4/2012)


    And how about this dbo.fn.example1(wordsblah) ?

    Keep in mind that in SQL Server, variables are declared with a @ character before the name. Sometimes I forget that because I work...

  • RE: Restart Log Backups

    Steve Jones - SSC Editor (6/28/2012)


    Glad you liked it, but I can't take credit for discovering this. Mr Randal, of SQL Skills, taught me this. Now I really want to...

  • RE: Restart Log Backups

    Thank you for the explanation, Gail.

    I've never tried that myself and was wondering.

  • RE: Restart Log Backups

    Interesting question! Thank you!

    But I was confused with the alternative:

    "Take either a full OR differential backup and then a log backup"

    Shouldn't this be:

    "Take either a full AND differential backup and...

  • RE: Transaction

    Great question! Thought it would be 2. But there is a explicit transaction beginning there.

    I just didn't know it would all be rolled back on error. Does the XACT_ABORT setting...

  • RE: Index defaults 2

    All I have to say is: keep those questions coming. 😀

  • RE: Index defaults 2

    Duncan Pryde (6/27/2012)


    I think the question was designed partly to check people didn't think that creating a foreign key also created an index - which is not an uncommon misconception.

    Exactly...

  • RE: Index defaults 2

    Duncan Pryde (6/27/2012)


    You can't define indexes explicitly (i.e. by CREATE INDEX) in a CREATE TABLE statement. As far as I know the only way to create indexes in CREATE TABLE...

  • RE: Restricting updates?

    Hugo Kornelis (6/22/2012)


    codebyo (6/22/2012)


    Thanks for the question and thanks to Hugo for the detailed explanation.

    This could be a useful code to set some fields from a a few restricted rows...

  • RE: Restricting updates?

    Thanks for the question and thanks to Hugo for the detailed explanation.

    This could be a useful code to set some fields from a a few restricted rows to some value...

  • RE: INTERSECT 2

    Sean Lange (6/19/2012)


    Thomas Abraham (6/19/2012)


    Sean Lange (6/19/2012)


    Thomas Abraham (6/19/2012)


    Of course you are correct. My mind must still be on that beach. Thanks for correcting me.

    I wish my mind was still...

Viewing 15 posts - 46 through 60 (of 370 total)