Forum Replies Created

Viewing 15 posts - 136 through 150 (of 219 total)

  • RE: TRUNCATE

    Paul White NZ (4/6/2010)


    The primary purpose of TRUNCATE TABLE is to delete records - clearly a DML.

    Not so clear to Oracle guys 🙂

    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_1001.htm – TRUNCATE is in the DDL list.

  • RE: TSQL

    malleswarareddy_m (4/4/2010)


    declare @bit bit

    set @bit='00000'

    select @bit

    This gives 1 as output.

    This must be a typo because the result is 0.

  • RE: Don't forget this date.

    By the way, which event took place on 1776-01-01?

  • RE: Don't forget this date.

    Why the question specifies the slash datetime format (yyyy/mm/dd) while all the answers are in the dash datetime format (yyyy-mm-dd)? This is completely misleading and incorrect! 😛

  • RE: TRUNCATE

    Paul White NZ (3/30/2010)


    Some data manipulation language (DML) operations, such as table truncation, use Sch-M locks to prevent access to affected tables by concurrent operations.

    So, table truncation is explicitly defined...

  • RE: An interesting thing about isnull

    richard.maw (3/30/2010)


    Can anyone give an account of why the semantics of isnull and coalesce (with two args) is different?

    Here is a nice article about this: http://blogs.msdn.com/sqltips/archive/2008/06/26/differences-between-isnull-and-coalesce.aspx

    COALESCE basically translates to CASE...

  • RE: What will be output?

    Hugo Kornelis (3/25/2010)


    ' ' is converted to the value 0 (run [font="Courier New"]SELECT CAST(' ' AS int);[/font] if you don't believe me).

    This is very interesting because [font="Courier New"]ISNUMERIC(' ')[/font] returns...

  • RE: Encryption

    Carlo Romagnano (3/23/2010)


    Thank you! I love undocumented.

    I'm afraid you'll be disappointed in this function since it became documented (and obsolete at the same time) in SQL Server 2008 🙂 http://msdn.microsoft.com/en-us/library/dd822791.aspx

  • RE: Encryption

    Ric Sierra (3/22/2010)


    this undocumented function is available since SQLServer 7

    PWDENCRYPT is a hash function, which means it's a one-way function. Once hashed, data cannot be restored. With cell-level encryption, data...

  • RE: Full backup Scenario

    Tom.Thomson (3/19/2010)


    vk-kirov (3/16/2010)


    Hugo Kornelis (3/16/2010)


    the backup first copies all the data pages, then adds all the log pages starting from the start of the oldest uncommitted transaction right up until...

  • RE: Answers to Your QOD

    I think Microsoft is also indirectly responsible for the subject of discussion, because usually answers and explanations include quotes from BOL and links to BOL. If there are any errors...

  • RE: Policy-Based Management: Policy Creation

    CirquedeSQLeil (3/16/2010)


    I am still left wondering how to do it?

    File - New - Policy

    Oops... it looks like I revealed someone's secret :w00t:

  • RE: Full backup Scenario

    ChrisMoix-87856 (3/16/2010)


    IIRC, SQL 7.0 the backup contained what was "in" the database at the start of the backup.

    You are mistaken. Here is a quote from BOL 7.0:

    Creating and Restoring a...

  • RE: Full backup Scenario

    Hugo Kornelis (3/16/2010)


    the backup first copies all the data pages, then adds all the log pages starting from the start of the oldest uncommitted transaction right up until the time...

  • RE: Full backup Scenario

    Mark D Powell (3/16/2010)


    Because this is a full backup ...

    From the manual:

    The full recovery model uses log backups to prevent data loss in the broadest range of failure scenarios, and...

Viewing 15 posts - 136 through 150 (of 219 total)