Forum Replies Created

Viewing 15 posts - 5,656 through 5,670 (of 5,841 total)

  • RE: View vs Physical Table

    1) If you are using Enterprise Edition, I would go with Partitioned Tables/Indexes, which would provide you an array of benefits.

    2) If not, I would used partitioned views.  Benefits, but...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: query has different execution plans on different servers

    Since you are using SQL 2005, there is also an OPTION you can use with the query statement.  See here in BOL:  ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/tsqlref9/html/66fb1520-dcdf-4aab-9ff1-7de8f79e5b2d.htm

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQL 2000 - Performance suggestions

    1) you don't need AWE on a 4GB box.  Investigate /3GB switch for you boot.ini in BOL.

    2) If the database doesn't have lots of free space, index maint will not be...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: query has different execution plans on different servers

    This sounds like a parameter sniffing issue.  Assuming this is a sproc, use the WITH RECOMPILE option. 

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: performance Issue with input variables

    Investigate parameter sniffing.  Almost certainly to blame here.  If this is in a sproc, consider the WITH RECOMPILE option.

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Optimizing Performance of Stored Procedures in SQL Server 2000

    1) WROX Press - Transact SQL for Beginners

    2) Cursors are bad from a performance perspective, as has already been stated.  REALLY REALLY bad. 

    3)...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: SQL 2000 using profiler for disk reads tuning

    Are you sure you don't mean to use Performance Monitor??  This is the tool to use for I/O investigation I believe.  There are some DMVs you can use on SQL...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Using bit flags in large tables

    IMHO, only one thing will likely provide any benefit here, and it is a very slim hope.  With 99% of your data being IsActive = 1, pruning inactive records is...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: use of WITH INDEX clause when tuning queries

    This is not correct.  Review DBCC SHOW_STATISTICS.  You will see average stuff as well as distribution stats.  The latter are used for specific value queries like you present and would...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Parameterised Stored Procedure Execution Plan Problem

    you can do (@a = 0 and a is null) to capture the case where input is 0 and actual value is null

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Indexing Question

    1) Parameter sniffing could be at issue here.  Perhaps the same query was called with a range of invoice numbers that was 50% of the entire table, in which case...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: CHAR vs VARCHAR

    Sorry Will, I did my post after reading the first (and I thought without checking) only page of posts for the initial post. 

    Had...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: use of WITH INDEX clause when tuning queries

    Joe Chang is the man for all of the math related to optimizer choices.  Pretty complex stuff that basically boils down to "if using the index costs less then use...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: CHAR vs VARCHAR

    1) varchars only save you space if the average DATA length is several chars < length of char column.

    2) Create new table with varchars.  Insert data to this table while...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

  • RE: Scaling out

    Typical Answer:  It depends. 

    Seriously though, if your query patterns normally restrict the data such that only smaller pieces of the table will be...

    Best,
    Kevin G. Boles
    SQL Server Consultant
    SQL MVP 2007-2012
    TheSQLGuru on googles mail service

Viewing 15 posts - 5,656 through 5,670 (of 5,841 total)