Viewing 15 posts - 16 through 30 (of 43 total)
OK... I am getting. (sorry) Very helpful. One more question. If I change your code to make there by multiple types by animal first. I...
February 7, 2013 at 8:10 am
Thanks. I'm just confused about this part:
with DogCat(Animal, Amount) as
(
select 'Dog', 1 union all
select 'Dog', 2 union all
select 'Dog', 3 union all
select 'Cat', 10 union all
select 'Cat', 20
)
I don't...
February 7, 2013 at 5:27 am
ok - this looks cool!!! Especially this part --- http://sqlfool.com/2009/03/find-missing-indexes/
It isn't even anything I need to install. It is just code that "informs" me...
February 10, 2012 at 8:24 am
ok, your original post changed??
In this instance I don't have a choice with the table design.
February 8, 2012 at 7:21 am
Even with the if statement?
IF ((ISNUMERIC(@fiscalyear) = 1) AND @fiscalyear >=20012002 AND @fiscalyear <=20112012)
How would it be possible?
Thank you 🙂
February 8, 2012 at 7:14 am
Do you see any problems with this?
ALTER PROCEDURE [dbo].[SP_MOR_TestingWorking2](
@fiscalyear char(8)
)
AS
BEGIN
DECLARE @sql NVARCHAR(100)
IF ((ISNUMERIC(@fiscalyear) = 1) AND @fiscalyear >=20012002 AND @fiscalyear <=20112012)
BEGIN
SET
@sql = 'SELECT * FROM tblMOR_LU_AdCpGp'...
February 8, 2012 at 7:03 am
Good link. Thank you.
What does it mean to:
Recompile
This is only an option on SQL 2008. On 2008, if the query is specified with the OPTION (RECOMPILE) hint, then the...
February 7, 2012 at 3:22 pm
Was this problem solved? I found this too-------
http://support.microsoft.com/kb/982854
If possible, would you post how you made out.
Thank you!
October 4, 2011 at 6:27 am
OK - I've gotten a lot of advice on this. Thank you so much. I think... the problem is solved. What was done -
1) Indexes rebuilt...
October 1, 2011 at 6:38 am
vince_sql (9/28/2011)
mjbkm (9/28/2011)
vince_sql (9/28/2011)
Sounds like the fill factor is high so it becomes fragmented quickly when you do insert, updates and deletes.Have you tried lowering the 'fill factor'?
OK - what...
September 28, 2011 at 1:02 pm
GilaMonster (9/28/2011)
mjbkm (9/28/2011)
GilaMonster (9/28/2011)
EXEC sp_updatestats
Or, maybe better
UPDATE STATISTICS <table name> WITH FULLSCAN
where <table name> is the name of the table that you did...
September 28, 2011 at 1:02 pm
bkubicek (9/28/2011)
mjbkm (9/28/2011)
"It is also possible the inserts are not actually going to the end of the table, but are being inserted all over the table, then...
September 28, 2011 at 12:52 pm
Viewing 15 posts - 16 through 30 (of 43 total)