Forum Replies Created

Viewing 15 posts - 181 through 195 (of 608 total)

  • RE: Unusual Database growth SQL Server 2000

    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.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: What's in a Name?

    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...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Forum is chopping off characters...

    \\network

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: regarding validations in stored procedure

    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)...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: SSMS Scripting disable trigger?

    Venkataraman R (10/28/2013)


    You can disable trigger using "Disable" FROM Context menu of a trigger in SSMS object explorer. But, you cannot script "DISABLE TRIGGER" from SSMS. You will be able...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Limiting list of values for a column from another table's column

    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

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: SSMS Scripting disable trigger?

    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...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Simple query maxing CPU

    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)


    Bhuvnesh, that would certainly return the same results and...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Simple query maxing CPU

    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.

    Heaps of Trouble

    Try build...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Simple query maxing CPU

    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');

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: CDC

    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.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Strange Behavior with (nolock)

    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.

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: how can esure data hold or persist in a database view till i havent refresh view

    vineet_dubey1975 (10/22/2013)


    can i have a mechanism to hold the original data to the view..

    IF i refresh view then only data should refresh

    Can i define any type or any...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: how can esure data hold or persist in a database view till i havent refresh view

    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...

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

  • RE: Looping Comma separated string

    INSERT INTO sample

    SELECT @id, Item FROM dbo.DelimitedSplit8K(@string, ',');

    The SQL Guy @ blogspot[/url]

    @SeanPearceSQL

    About Me[/url]

Viewing 15 posts - 181 through 195 (of 608 total)