Viewing 15 posts - 5,656 through 5,670 (of 5,841 total)
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...
August 3, 2007 at 8:51 am
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
August 2, 2007 at 8:47 am
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...
August 2, 2007 at 8:14 am
This sounds like a parameter sniffing issue. Assuming this is a sproc, use the WITH RECOMPILE option.
August 2, 2007 at 8:04 am
Investigate parameter sniffing. Almost certainly to blame here. If this is in a sproc, consider the WITH RECOMPILE option.
August 1, 2007 at 8:56 am
1) WROX Press - Transact SQL for Beginners
2) Cursors are bad from a performance perspective, as has already been stated. REALLY REALLY bad. ![]()
3)...
August 1, 2007 at 8:55 am
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...
July 31, 2007 at 9:32 am
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...
July 30, 2007 at 8:45 am
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...
July 20, 2007 at 10:24 am
you can do (@a = 0 and a is null) to capture the case where input is 0 and actual value is null
July 20, 2007 at 8:20 am
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...
July 19, 2007 at 8:14 am
Sorry Will, I did my post after reading the first (and I thought without checking) only page of posts for the initial post. ![]()
Had...
July 18, 2007 at 10:28 am
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...
July 18, 2007 at 9:21 am
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...
July 18, 2007 at 9:18 am
Typical Answer: It depends. ![]()
Seriously though, if your query patterns normally restrict the data such that only smaller pieces of the table will be...
July 18, 2007 at 8:46 am
Viewing 15 posts - 5,656 through 5,670 (of 5,841 total)