Forum Replies Created

Viewing 15 posts - 106 through 120 (of 522 total)

  • RE: Automated Trigger To Require a WHERE Clause

    HowardW (1/25/2011)


    Oracle's query tools (Oracle SQL Developer and SQLPlus) by default require you to explicitly commit regardless of whether you explicitly began a transaction.

    Well, SQL Plus is a little awkward...

    Best Regards,

    Chris Büttner

  • RE: CONVERT function

    Koen (da-zero) (1/13/2011)


    Great, but difficult question.

    I had to read the section on converting binary string data on the MSDN page for CAST and CONVERT a few times to get it.

    But...

    Best Regards,

    Chris Büttner

  • RE: ANSI Padding

    Richard Sisk (1/11/2011)


    Would have got it right except I was thrown by the apparent conflict that the question was for SQL Server 2008 but the last option clearly asks about...

    Best Regards,

    Chris Büttner

  • RE: ANSI Padding

    Toreador (1/11/2011)


    As for the option about performance relative to SQL2000 - that's an 11-year-old unsupported version[...]

    SQL Server 2000 is not unsupported. Only the mainstream support has ended.

    http://blogs.msdn.com/b/sqlreleaseservices/archive/2008/02/15/end-of-mainstream-support-for-sql-server-2005-sp1-and-sql-server-2000-sp4.aspx

    Best Regards,

    Chris Büttner

  • RE: ANSI Padding

    Hi,

    I almost got the question right, but failed because of the usage of index on computed columns.

    I have tested it with the following script and the index seems to be...

    Best Regards,

    Chris Büttner

  • RE: T-sql

    I like the question, mostly because it focuses on one aspect only - the default size.

    Too many times there are complicated questions which mix the question itself with ostacles and...

    Best Regards,

    Chris Büttner

  • RE: Nested Temporary Tables

    I think the question is very good as well, but I am not sure if the answer is correct.

    I chose

    Error: "Column name or number of supplied values does not...

    Best Regards,

    Chris Büttner

  • RE: T-SQL

    Good Question, but not valid for all languages, since some have different date formats (ymd):

    Japanese

    Swedish

    Hungarian

    Croatian

    Latvian

    Lithuanian

    Traditional Chinese

    Korean

    Simplified Chinese

    SELECT dateformat, name, alias FROM sys.syslanguages WHERE dateformat NOT LIKE '%y'

    Best Regards,

    Chris Büttner

  • RE: Unique constraint on a nullable column

    jeff.mason (12/2/2010)


    sjimmo (12/2/2010)


    But once you give out INSERT permission, you lose control over INSERT statements.

    It is not only that. Constraints should prevent invalid data updates no matter where they come...

    Best Regards,

    Chris Büttner

  • RE: Unique constraint on a nullable column

    Hm, this is a very good topic, and most answers make sense.

    But the last one with the where clause for all inserts is nonsense. You cannot "enforce" uniqueness by...

    Best Regards,

    Chris Büttner

  • RE: sys.syscomments

    Tom.Thomson (12/1/2010)


    If you've never seen any comments in there I don't want you writing any stored procedures or triggers in my shop!

    You may have missed my 3rd post where I...

    Best Regards,

    Chris Büttner

  • RE: sys.syscomments

    Ok, I think I finally arrived.

    I thought the "comments" were the standalone extended properties / description of the stored procedures, constraints etc..

    I did not consider the inline comments of the...

    Best Regards,

    Chris Büttner

  • RE: sys.syscomments

    Carlo Romagnano (12/1/2010)


    I disagree: the query returns all rows that contains the word 'order' in the column [text] that may appear in comments or definition.

    I think the wording "consists" was...

    Best Regards,

    Chris Büttner

  • RE: sys.syscomments

    Nils Gustav Stråbø (12/1/2010)


    Both the definition and the comments can be retrieved from sys.syscomments view

    Are you sure about that? I can't see any comments in that view.

    With regards to option...

    Best Regards,

    Chris Büttner

  • RE: Predict the total count

    No comment, next question... 🙂

    Best Regards,

    Chris Büttner

Viewing 15 posts - 106 through 120 (of 522 total)