Forum Replies Created

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

  • RE: stored proc taking too long!

    GilaMonster

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

    A while loop is not going to be massivly more efficient. It's still row-by-row processing of a large number of rows.

    Johann, can you give us sample input and output...

  • RE: stored proc taking too long!

    Sure,

    Check this:

    Declare @Temp Table

    (

    RowId Int identity(1,1),

    )

    Declare @Count Int, @Start Int

    Select @Count = Count(*) from Table1

    Set @Start = 1

    While @Start <= @Count

    BEGIN

    ...........

    ...........

    Where RowID = @Start

    Set...

  • RE: stored proc taking too long!

    Hi Johann,

    Use While Loop instead of Cursor.

    Cheers!

    Sandy.

  • RE: Where Condition ?

    Piotr,

    I mean to say, I got quick another Solution for this,

    But your query is working fine, No issue on that but it may raise a performance issue if the table...

  • RE: Where Condition ?

    hey Piotr,

    I got a new solution and also interesting, I am not sure It is correct or Not but Still its working fine for me...

    Only one condition works fine for...

  • RE: Transaction handling

    Hi Anoop,

    I will prefer to use Custom Error Checking rather than Try-Catch method.

    Can you just tell me why you wants to apply the Transaction on a DDL Command also.

    Cheers!

    Sandy.

  • RE: Index Scan Vs. Index Seek

    hey peso,

    SQL Server 2005 introduced the CROSS APPLY and OUTER APPLY

    Can you give me some Idea how it works and what is the new concepts are added to this CROSS...

  • RE: Index Scan Vs. Index Seek

    SQL Server 2005 introduced the CROSS APPLY and OUTER APPLY.

    Peso,

    Is it in SQL Server 2005 or Sql Server 2008?

    Cheers!

    Sandy.

  • RE: Index Scan Vs. Index Seek

    Hi Peso, 🙂

    Really nice to here from you this concepts.

    Now I am more clear on my topic,

    Thanks for the same again,

    Cheers!

    Sandy.

  • RE: Index Scan Vs. Index Seek

    hey peso,

    The percentages are RELATIVE to the query.

    88% of 2 seconds are still hell a lot better than 54% of 111 seconds.

    I've a little confusion regards the seconds you have...

  • RE: Index Scan Vs. Index Seek

    FORCESEEK is available in SQL Server 2008, not SQL Server 2005.

    Thanks Peso,:)

    But we can achieve this by running sp_updatestats on the Database.

    here I wants to know, Is there any...

  • RE: Identity Column Inserts Issue.

    hey Piotr,

    I resolved the issue by using dynamic crosstab query concept.

    by checking each userid with respect to groupid.

    Anyways thanks a lot.

    Cheers!

    Sandy.

  • RE: Index Scan Vs. Index Seek

    hey Hasan,

    Cool Man, I was roaming for this....

    Thanks a lot, But I have a little confusion on this link topic, the index seek is taking 88% cost, where as the...

  • RE: Index Scan Vs. Index Seek

    Hey peso,

    As this is a OLAP database,

    I just drop the Index and recreated

    very Imp:

    Execute sp_updatestats.

    now its going for a Index Seek.

    Cheers!:P

    Sandy.

  • RE: Index Scan Vs. Index Seek

    Hey Peso,

    I got the solution. Its working fine now and its going for a Index Seek.

    Cheers!

    Sandy.

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