Forum Replies Created

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

  • RE: Temp Tables

    jeff.mason (6/23/2012)


    The only possible indexes might be a byproduct of primary key creation, and otherwise indexes are NOT supported.

    This is incorrect, because unique indexes are supported too.

    declare @Tmp...

  • RE: INTERSECT 2

    Thanks for the question.

    There is one thing not mentioned in the explanation, but very important to keep in mind: the INTERSECT statement and the SELECT #4 do not always return...

  • RE: Repairing with DBCC CHECKDB

    This is a good idea for QOD, unfortunately the QOD itself was ruined by a syntax error. The REPAIR_FAST argument cannot be used without a database name or ID.

    http://msdn.microsoft.com/en-us/library/ms176064.aspx

    DBCC CHECKDB...

  • RE: Date Conversions

    ...zero zero colon zero zero colon zero zero point zero zero zero zero zero zero zero... 🙂

    Nice question anyway.

  • RE: General

    reema.m


    A DataSet will be serialized only into xml irrespective of the formatter which is used.

    It was true only for .NET 1.x.

    In .NET 2.0 (introduced in 2005 – seven years ago!)...

  • RE: SOME

    Carlo Romagnano (3/21/2012)


    Is there difference between SOME and ANY?

    Can someone explain?

    There is no difference. http://msdn.microsoft.com/en-us/library/ms175064.aspx:

    SOME and ANY are equivalent.

  • RE: Not In

    Nice question, although the 'explanation' is confusing and does not explain anything.

    To find the real cause of the observed behavior, we can do a simple conversion. The statement

    s.Stat NOT IN...

  • RE: TRUNCATE TABLE and ROLLBACK TRAN

    Hugo Kornelis (2/6/2012)


    Stewart "Arturius" Campbell (2/6/2012)


    A TRUNCATE can be rolled back in Oracle as well....

    I've never used Oracle, so I can't speak from experience - but the official Oracle documentation...

  • RE: TRUNCATE TABLE and ROLLBACK TRAN

    Hugo Kornelis (2/6/2012)


    And 34% of them are for "you can never rollback a truncate table statement"

    Maybe they are Oracle refugees? :hehe: http://qa.sqlservercentral.com/articles/Raw+Materials/71108/

  • RE: TRUNCATE TABLE and ROLLBACK TRAN

    Explanation


    there is no documentation on a non-existant concern

    I disagree. Here is the link: http://msdn.microsoft.com/en-us/library/ms191544.aspx

    Transact-SQL Statements Allowed in Transactions

    You can use all Transact-SQL statements in an explicit transaction, except for the...

  • RE: billy-yons and billy-yons of rows

    LutzM (1/23/2012)


    You might take into consideration that the European Union today announced an oil embargo against Libya Iran (starting in July). Greece import about 30% of their oil from Libya...

  • RE: Concurrent Operations

    Hugo Kornelis (12/15/2011)


    I did not run sp_lock, so I don't know what kinds of locks are involved in this case.

    spid = 58

    dbid = 7

    ObjId = 0

    IndId = 0

    Type = DB

    Resource...

  • RE: XML

    Nice question.

    The font of the QOD is just huge, it could have been a little bit smaller 😉

  • RE: DateTime Precision

    Nice tricky question with stupid 'explanation'.

    Of course, the string (not datetime) '2011-07-31 00:00:00.000' is greater than the other string '2011-07-31', and thus the result of the batch is 'No'.

  • RE: Summing

    Explanation


    The sum(1) returns exactly the same as count(*).

    This is incorrect as Jostein already explained.

    Explanation


    Both have the same execution plan as well.

    This is incorrect too. Execute the following script and you...

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