Forum Replies Created

Viewing 15 posts - 76 through 90 (of 163 total)

  • RE: Datatypes In Your Mind

    The list shown here includes bit in the list of "exact numeric types".

    http://msdn.microsoft.com/en-us/library/ms187752.aspx (Data Types (Transact-SQL))

    Besides this reference page (including the ones for other version of SQL), I...

  • RE: It's Not All About The Keys

    nenad-zivkovic (4/14/2014)


    The logic behind the question suggest that the `backuplist` is subset of `databases`, and that FK should be created on `backuplist` to reference `databases`. Check query seems to support...

  • RE: A Questionable Trigger

    Andy, can you display the results that you get, including your error and can you tell which tool and version you are using to execute the statements?

    As I said before,...

  • RE: A Questionable Trigger

    Carlo Romagnano (4/2/2014)


    In sqlserver 2008 r2 the update doesn't return any resultset and no error message.

    (2 row(s) affected)

    (2 row(s) affected)

    What I'm missing?

    You are missing nothing. The update works fine and...

  • RE: Can't See The Forest For the Logins

    I don't agree on the "correct answer". According to me the only correct combination of options can be option 1 and 2.

    Nowhere it has been said that the AdventureWorks2012 database...

  • RE: The Model Database

    James Lean (2/18/2014)


    Actually, MSDN is NOT wrong. You cannot make the primary filegroup read-only. This is actually a restriction on ANY database.

    You can make the whole database read-only...

  • RE: I No Longer Have Access to My DB and I'm a DBCreator!

    Also, the question should specify this is SQL2012 specific (alter server role).

    I wonder how many people gave an "incorrect" answer, based on the fact that they were not using SQL2012,...

  • RE: HASHBYTES

    Interesting question, however, I don't understand why the "LEFT JOIN"-construction was used.

    Distracts a little bit from what was the essential part of the question.

  • RE: Windowing Ranges

    Maybe worthwhile to mention that this functionality was introduced in SQL Server 2012.

  • RE: Order My Data

    Guess that all has been said before. Only the "order by" answer is correct.

    Agree with some others to delete this question, before people might get a wrong idea.

  • RE: REGEX

    As far as I know SQL Server can only handle REGEX via the CLR, so .NET.

    The queries as shown here were not using REGEX.

  • RE: Using Max()

    paul.knibbs (11/8/2013)


    I kind of agree with waxingsatirical...it never occurred to me anyone would think this works otherwise, and I spent a good few minutes trying to figure out what unexpected...

  • RE: Using a column name in a COUNT function

    paul s-306273 (10/15/2013)


    Who'd have thought count(*) would generate so much debate...

    I agree, and that apparently nobody uses a where clause while counting, but that they only are interested in all...

  • RE: Using a column name in a COUNT function

    ...This can produce some surprising results. This is because of the way that COUNT() works...

    Why the surprise if COUNT exactly does what is described in e.g. Technet?

  • RE: Field Lengths

    Simple question, but wonder why the question was not just focused on column d and e and DATALENGTH and LEN.

Viewing 15 posts - 76 through 90 (of 163 total)