Forum Replies Created

Viewing 15 posts - 556 through 570 (of 673 total)

  • RE: Shrinking Databases

    Russell Shilling (12/10/2010)


    I run shrink on our Dev server after running lots and lots of queries to reduce the transaction log size (on disk). It's easy to grow a...

  • RE: Shrinking Databases

    pjdiller (12/10/2010)


    SanDroid (12/10/2010)


    pjdiller (12/10/2010)


    Yes? I didn't say it'll throw an error, just that it's ignored. It's the same as running

    DBCC SHRINKFILE (N'my DB logfile' , 0)

    Ultimately, my question is whether...

  • RE: Shrinking Databases

    CirquedeSQLeil (12/10/2010)


    As a manual process for very specific reasons (such as Gail mentioned), shrink should remain. I think it needs some fixing done but it should stay in SQL...

  • RE: What is the result of the following query

    Hugo Kornelis (12/10/2010)


    da-zero (12/10/2010)


    (but it surprises me that apparently 78% -for the moment- know the exact error message!)

    Well, I don't know about others, but for me this is one of...

  • RE: Shrinking Databases

    pjdiller (12/10/2010)


    Yes? I didn't say it'll throw an error, just that it's ignored. It's the same as running

    DBCC SHRINKFILE (N'my DB logfile' , 0)

    Ultimately, my question is whether that is...

  • RE: Shrinking Databases

    GilaMonster (12/10/2010)


    SQL comes with very good documentation. If someone's willing to make a $250 call instead of spending 5 minutes searching google or Booke Online, that's their problem.

    Actually it is...

  • RE: Shrinking Databases

    What would be left if we deprecated everything that seems buggy when mis-used?

    I agree with the comments already made by Hugo and Gail. They are close to what I...

  • RE: Nulls

    phil.wood 94423 (12/10/2010)


    My default schema is not dbo!

    Most QOTD readers that actually run or test the QOTD scripts do so in a default NON Production installation of...

  • RE: Build date table

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


    I'd like the link that tells us we can't run the t-sql before answering. I can't remember ever seeing that post anywhere.

    That's cheating in my world...

  • RE: Build date table

    Toreador (12/9/2010)


    I got it right by immediately eliminating the 1 and 365 options, then I couldn't spot any syntax errors, so went for the one that was left.

    I took the...

  • RE: Nulls

    Artur Komkov (12/9/2010)


    What's why I always try to avoid nullable columns or make something like that:

    select * from dbo.Employees where EmployeeID

    not in...

  • RE: Table Data Sizes

    David Bird (12/8/2010)


    SanDroid my visual tests show the results are the same for both scripts except that TravisDBA script does not handle tables with a dbo schema. I do not...

  • RE: Nulls

    tilew-948340 (12/8/2010)


    select * from dbo.Employees where (EmployeeID <> NULL) and (EmployeeID <> 0) and (EmployeeID <> 1)

    select * from dbo.Employees where (EmployeeID = NULL) or (EmployeeID = 0) or (EmployeeID...

  • RE: Table Data Sizes

    WOW!!!

    Two good replacement scripts.

    However there is great sadness for the readers and users.

    Each script returns a differant value in KB for [Reserved].:w00t:

    Travis:

    TABLE_USERTABLE_NAMEROWSRESERVED_Kb

    dbo ...

  • RE: Table Data Sizes

    Thank you William for posting some code that actually will execute here.

    The other code posted in the article would not execute in SQL 2008 R2 SSMS.

Viewing 15 posts - 556 through 570 (of 673 total)