Viewing 15 posts - 181 through 195 (of 607 total)
To determine tables growth rates you need to keep a record of table sizes periodically. I store table sizes on a daily basis to draw growth reports.
October 29, 2013 at 5:32 am
My name can be spelt a few different ways and I am used to people getting it wrong. However I get very annoyed when people spell my name incorrectly when...
October 29, 2013 at 5:23 am
DECLARE @age SMALLINT = 11,
@date DATE = '2013-12-07',
@time TIME = '02:00',
@gender CHAR(1) = 'M',
@paid_amt SMALLINT;
SELECT
@paid_amt =
CASE
WHEN DATENAME(DW, @date) = 'Sunday' THEN
CASE
WHEN @Age <= 10 THEN 300
ELSE 700
END
WHEN DATENAME(DW, @date)...
October 29, 2013 at 5:06 am
Venkataraman R (10/28/2013)
October 28, 2013 at 7:11 am
CREATE TRIGGER CHECK_RANGE ON ASSET_CLASS
FOR INSERT, UPDATE
AS
IF NOT EXISTS(SELECT * FROM inserted i JOIN RANGE r ON i.NO_RANGE = r.NO_RANGE WHERE r.ACCNT_TYP = 'A')
BEGIN
RAISERROR('Invalid NO_RANGE', 16, -1);
ROLLBACK;
END;
GO
October 28, 2013 at 7:02 am
Deki (10/26/2013)
Ok, I know about that, but the question was: can you script DISABLE TRIGGER from SSMS?
Yes you can
Jason
Search BOL for DISABLE TRIGGER... Smile
BOL will give you the syntax to...
October 28, 2013 at 4:21 am
ElijahE (10/24/2013)
Adding a clustered index fixed it.Thank you both for your help! It's greatly appreciated!
You're welcome. I'm glad to assist.
ElijahE (10/24/2013)
October 24, 2013 at 8:28 am
Hi,
Your pages are only using 49% of the available space. This is a particular behaviour of heaps that have frequent deletes. I have blogged about this behaviour.
Try build...
October 24, 2013 at 1:01 am
What do these give you?
USE [OSBE_ILEADS];
GO
EXEC sp_spaceused Registration_loaderr;
USE [OSBE_ILEADS];
GO
SELECT index_id, avg_fragmentation_in_percent, page_count, avg_page_space_used_in_percent FROM sys.dm_db_index_physical_stats(DB_ID(), OBJECT_ID('Registration_loaderr'), NULL, NULL, 'SAMPLED');
October 23, 2013 at 2:50 am
Ford Fairlane (10/22/2013)
CDC is only available in Enterprise Edition or did I miss read something ?http://http://msdn.microsoft.com/en-us/library/cc645993.aspx
For features supported by Evaluation and Developer editions see the SQL Server Enterprise feature set.
October 23, 2013 at 1:37 am
GilaMonster (10/22/2013)
josh 92884 (10/22/2013)Sure you're looking at the correct table in the correct database on the correct server?
And the correct schema.
October 22, 2013 at 8:28 am
vineet_dubey1975 (10/22/2013)
IF i refresh view then only data should refresh
Can i define any type or any...
October 22, 2013 at 7:48 am
Grant Fritchey (10/22/2013)
You could look at materialized or indexed views. These are actually a separate data store that you have to update to see data changes.
Indexed views do not need...
October 22, 2013 at 7:45 am
INSERT INTO sample
SELECT @id, Item FROM dbo.DelimitedSplit8K(@string, ',');
October 22, 2013 at 3:40 am
Viewing 15 posts - 181 through 195 (of 607 total)