Forum Replies Created

Viewing 15 posts - 16 through 30 (of 56 total)

  • RE: UPDATE , DELETE result is blocking

    Updates and deletes does not necessarily acquire an exclusive lock from the start. Sometimes it might be shared locks (or update locks) competing with exclusive locks causing the problems and...

  • RE: Clustered index design

    - Keeping the non-unique clustered index would be painful as SQL would have to increase the index size with its unique identifier.- Keeping the non-unique clustered index would be painful...

  • RE: Cost Threshold for Parallelism Usage Question

    Just remember that CXPacket waits are often a side effect of inefficient queries or indexes leading to unnecessary CPU usage. If you run large DW queries, it might not be...

  • RE: Modify XML in a field

    Thanks! Perfect..

  • RE: Index Text

    One thing to keep in mind is fragmentation. When new ID's are increasing at the end, page splits will be far less than trying to insert a value randomly in...

  • RE: Migration from SQL 2005 to SQL 2008 R2 using mirroring concept

    I would use transactional replication or log shipping to do this, but not mirroring.

    Hi Jason,

    I am curious, why don't you suggest mirroring for this?

    Thanks

  • RE: Locking Question

    Row Level Locking is the default on an instance, database and the objects in the DB.

    It can be disabled on an object level, and you can see if it is...

  • RE: Matching records

    Also: "share a number of fields" let the alarm bells go off. Also not sure what you want, but your database is not normalized. SQL is pretty easy if your...

  • RE: 127rows and I get timeouts?

    Is it then perhaps timing out when the table is created? Do you see Sch-S (schema stability) locks appearing?

  • RE: 127rows and I get timeouts?

    Grant Fritchey (4/24/2013)


    It sounds like a blocking issue. You can use the software suggested or just look at sys.dm_exec_requests to see if there are processes holding locks that will prevent...

  • RE: Pratical Advantage of Heap

    Bulk insert into a staging table and then building the clustered and other indexes afterwards will generally be faster.

    This is also useful when you then want to switch the...

  • RE: How To Sum...

    Agree. Simple method for a small resultset. Best performance is still a CLR based one.

  • RE: How To Sum...

    One set based way of doing it:

    DECLARE @Adding TABLE (ID int identity(1,1),Result int,ActualResult int)

    INSERT INTO @Adding (Result) VALUES (10),(10),(10),(10),(-10),(-10),(-10),(-10)

    SELECT ID, Result, (Select SUM(result) From @Adding A2 WHERE A2.Id <=...

  • RE: Difference between Index and Table Compression?

    I think you mean row compession.. Page compression will also include row compression.

  • RE: unique constraint on a large column

    I would also use a hashbyte function. In theory there still might be some duplicates, although unlikely.

Viewing 15 posts - 16 through 30 (of 56 total)