Forum Replies Created

Viewing 15 posts - 3,991 through 4,005 (of 7,614 total)

  • RE: How to get hardcoded date form table

    Also, to reduce errors and potential errors, don't code dates in an ambiguous format, i.e.,
    does '11/6/2010' represent Nov 6 or Jun 11??
    or waste space with formatting chars....

  • RE: Free Exercises And Solutions

    Look for articles / books by Itzik Ben-Gan.  Yes, a book(s) will cost you a little money, but it will be worth it!

  • RE: Database Diagram of Information_Schema.

    Jeff Moden - Tuesday, January 17, 2017 5:41 PM

    ScottPletcher - Tuesday, January 17, 2017 12:32 PM

    For...

  • RE: Database Diagram of Information_Schema.

    For SQL Server, you should ignore the INFORMATION_SCHEMA views and use system views instead, such as sys.tables, sys.columns, etc..

  • RE: Size of sys.allocation_units.used_pages

    You should use "total_pages" rather than "used_pages" because the table may currently take up more space, sometimes a lot more space, than it is actually using.

    For example, a...

  • RE: Should this take hours?

    I suggest reviewing the overall index definitions and stats on the table.  Perhaps even the clustering index needs changed to get the best overall performance.  If the clus index does...

  • RE: BCP issues ...

    SQL 2005 doesn't have a time data type.  It looks like one of your columns in SQL 2012 is time.  That may cause a conversion problem unless you explicitly adjust...

  • RE: multiple small indexes or large covering

    There are times when multiple, narrower indexes would overall perform better.  But that's more difficult to accurately determine and code for.  You must also continue to monitor it, because adding...

  • RE: Initial size for TempDb data and Log file?

    chuck.hamilton (1/10/2017)


    That's simply not true. An instance will not hang because you filled the tempdb database. Queries will fail and the instance will throw errors like 1105, but it most...

  • RE: Queries over HAG instances, SQL 2012

    In old-style SQL, outside of HAG, you could use OPENROWSET to reach a remote server without having to create a linked server. That may or may not work in...

  • RE: multiple small indexes or large covering

    I specialize in tuning, particularly index tuning, and I tend strongly toward the larger, shared index rather than separate indexes. Be aware that if the index needs scanned, multiple...

  • RE: Initial size for TempDb data and Log file?

    Never disable autogrowth on tempdb -- it could bring the entire instance to a waiting state. Instead, put alert(s) into place to make sure you are made aware if/when...

  • RE: replace CASE statement with a table

    I'd suggest an inline-table-valued-function. That will give you performance, reusability and flexibility.

    Although I can't see that CASE statement ever affecting the query plan, unless the result of the CASE...

  • RE: timeout issue

    Is there already a clustered index on the table?

    If not, and ID is an identity value, are you sure it's best to cluster the table on ID?? What do...

  • RE: Performance tuning for a query

    I agree that the join hints should only be used if you truly understand them.

    The critical thing would seem to be that "T3" should almost certainly be clustered on (...

Viewing 15 posts - 3,991 through 4,005 (of 7,614 total)