Forum Replies Created

Viewing 15 posts - 2,386 through 2,400 (of 8,416 total)

  • RE: Maximum Index Key Length

    GilaMonster (11/14/2010)


    Need to check. Was 7 levels + leaf, that I know, was not 2 million rows, that I also recall. May have had an include, can't recall. Was for...

  • RE: vbscript to delete files over certain days old

    SQLCLR script to delete old backup and log files (for example):

    http://www.mssqltips.com/tip.asp?tip=1374

  • RE: Problems With Update

    Sample data:

    CREATE SCHEMA Property

    CREATE TABLE Address

    ...

  • RE: Problems With Update

    Jeff Moden (11/14/2010)


    Although could (but not necessarily) slow things down, you need to use something like...

    WHERE ISNULL(a.ExpDate,0) != b.ExpDate

    :w00t: NO! :w00t:

    Not only is there a horrible implicit conversion (from zero...

  • RE: Issues in Identity Column

    Saravanan_tvr (11/12/2010)


    ...how can we update the values in identity column?

    Delete the row and then re-insert it with the correct identity value specified explicitly.

    You will need SET IDENTITY_INSERT ON for that...

  • RE: Maximum Index Key Length

    GilaMonster (11/13/2010)


    With a 900 byte key I can have in index 8 levels deep with only 20000 rows.

    How? Using 900 byte keys, each (non-leaf) 8096-byte index page can contain...

  • RE: Where does the last identity value would be stored

    vamshi.kotagiri (11/13/2010)


    I have an identity column in a table with an incremental seed of 1 and starting with 1

    I have inserted 5 rows where the last identity value would be...

  • RE: Data Loading Performance issues

    Jeff Moden (11/14/2010)


    Heh... OK... Now I get to pry the shoe out of my mouth. :blush: It looks like TF 610 does, in fact, help with converting fully...

  • RE: Data Loading Performance issues

    Jeff Moden (11/14/2010)


    I haven't looked at the article yet but BOL states that minimal logging will only work on a table with a clustered index if and only if the...

  • RE: Data Loading Performance issues

    In the meantime, I knocked together a demo based on your example, which shows TF610 working as advertised:

    -- REQUIRES 2008

    -- USE A DATABASE IN SIMPLE OR BULK_LOGGED MODE

    -- A suitable...

  • RE: Data Loading Performance issues

    There are a couple of ways in which you might not get minimal logging in your example where ExpRow = B. Are you able to run that query (with...

  • RE: dec to hex

    Perry Whittle (11/14/2010)


    casting binary or varbinary can be unreliable depending on the collation, you would probably want to use sys.fn_varbintohexstr

    How is casting binary or varbinary dependent on collation?

    How does sys.fn_varbintohexstr...

  • RE: dec to hex

    sturner (11/11/2010)


    actually there is such a builtin function: master.sys.fn_varbintohexsubstring()

    I believe it will work fine for you... you would first cast your integer or decimal data to varbinary then hand it...

  • RE: dec to hex

    Henrico Bekker (11/11/2010)


    SQL Server doesn't have a built-in function.

    Refer to http://support.microsoft.com/kb/104829 for solutions.

    That article only applies to SQL Server versions up to 7.0 SP1!

  • RE: 2 questions... first x > '' vs x <> ''

    GSquared (11/11/2010)


    And that's why there need to be two different versions of null. One for "we don't know" and another for "we don't care". (Okay, really for "don't...

Viewing 15 posts - 2,386 through 2,400 (of 8,416 total)