Forum Replies Created

Viewing 15 posts - 76 through 90 (of 127 total)

  • RE: This View is Shocking ! Can it be Improved ??

    Thanks all for your reply, I have tried summarising the information into tables, but what I find out is that there are so many users who can run different kind...

  • RE: Slow Insert Performance ! See DDL Code

    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      |--Assert(WHEREIf ([Expr1003]<'Aug 30 2006 12:00AM' OR [Expr1003]>='Aug 31 2006 12:00AM') then 0 else NULL))

           |--Table Insert(OBJECT[DB].[dbo].[CompanyProfile]),...

  • RE: Slow Insert Performance ! See DDL Code

    I will get the execution plan out to you in a minute. please bear with me

  • RE: Slow Insert Performance ! See DDL Code

    what what do you think about the indexes on the Ignore Dupe keys, I know thats where the problem lies, I am not sure if I am using the right...

  • RE: Limiting the number of updates on a table using Trigger

    Thanks for this, worked a treat

  • RE: Slow Insert Performance ! See DDL Code

    I hahve tried print screen, not working with the server, i really wanted to show you that nsert that took 1.30 hours.

    But I just cant get the execution plan out,...

  • RE: Slow Insert Performance ! See DDL Code

    The last insert which I monitored via QA, its shown here graphically, not sure how i can send it.

    As the code is withing a Cursor, I cannot use the code...

  • RE: Slow Insert Performance ! See DDL Code

    On the #ProfileTemp table, the date is likely to be all thesame, but at thesame time, converting to a char means that all dates will be covered.

    eg: comparing 2006/09/04 to...

  • RE: Slow Insert Performance ! See DDL Code

    anytime i done a test run to see the execution plan, I does an index seek/Clsutered index seek.

    The reason why: RTRIM(Convert(Char(10), p.SeizeDate , 112 )) = '20060830'

    is there is because...

  • RE: Can this Query be tuned ? God knows !!!

    INSERT INTO DailyFeed' + @DateYYYYMMDD + '

            (

            tbMRFileStatus_id,

            CDRFingerPrint,

            EventType,

            StartDate,

            StartTime,

            UserProvCPN,

            RouteIg,

            RouteOg,

            CalledPN,

            CallingPN,

            ElapsedTime,

            ContCalledNum,

            CallRedirInd,

            CalledPNType,

            TelServInd,

            SwitchName,

            TypeOfCall,

            Termination_Date,

            Location_id,

           ...

  • RE: Can this Query be tuned ? God knows !!!

    I also forgot to mention, the table that its inserting into only has the Ignore Duplicate key, no clustered index or any other type of index.

    The order by after the...

  • RE: Can this Query be tuned ? God knows !!!

    I changed this and even ordered the way the insert was done from the temp table. Still some isnerts take almost an hour and we are talking of less than...

  • RE: Primary Key Clustered & Inserts

    The keys in question here, one is of a varchar data type which should always be unique, the other is of an int data type and the last one is...

  • RE: Best Index on a #Temp table

    There is need to do multiple inserts as different files needs to be loaded onto the database, we dont have any other replication method.

    The datatime column is being converted so...

  • RE: Best Index on a #Temp table

    DDL

    S_id   int

    Event   int

    UNIQUE_PERSONURN char

    sDate   Datetime

    alter table #temp add  constraint idx_pku Primary Key Clustered( SDate , Event , UNIQUE_PERSONURN)

    Then Bulk insert happens in this order

    1. Create #temp
    2. Bulk insert into it
    3. Add constraint above
    4. Perform an insert into another...

Viewing 15 posts - 76 through 90 (of 127 total)