Forum Replies Created

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

  • RE: Indexing and Deadlock in SQL Server 2008?

    angeshwar (1/13/2014)


    Hi,

    Yes, corrected the index for ENGINE_ENTITIES

    CREATE TABLE [dbo].[ENGINE_ENTITIES](

    [ID] [bigint] IDENTITY(1,1) NOT NULL,

    [CREATED_DATE] [datetime] NULL,

    [ENTITY_ID] [varchar](255) NULL,

    [ENTITY_TYPE] [varchar](255) NULL,

    [PROCESS_INSTANCE_ID] [bigint] NULL,

    [STRING_DATA] [varchar](255) NULL,

    [UPDATED_DATE] [datetime] NULL,

    [XML_DATA] [text] NULL,

    PRIMARY KEY NONCLUSTERED

    (

    [ID]...

  • RE: Indexing and Deadlock in SQL Server 2008?

    angeshwar (1/8/2014)


    Structure of ENGINE_ENTITIES

    CREATE TABLE [dbo].[ENGINE_ENTITIES](

    [ID] [bigint] IDENTITY(1,1) NOT NULL,

    [CREATED_DATE] [datetime] NULL,

    [ENTITY_ID] [varchar](255) NULL,

    [ENTITY_TYPE] [varchar](255) NULL,

    [PROCESS_INSTANCE_ID] [bigint] NULL,

    [STRING_DATA] [varchar](255) NULL,

    [UPDATED_DATE] [datetime] NULL,

    [XML_DATA] [text] NULL,

    PRIMARY KEY CLUSTERED

    (

    [ID] ASC

    )WITH (PAD_INDEX ...

  • RE: Indexing and Deadlock in SQL Server 2008?

    Hi. Thank you for the effort.

    My query will return queries from cached plans. I think you missed one point. You need to click query_plan column on each row to visualize...

  • RE: Indexing and Deadlock in SQL Server 2008?

    Could you run this query to get cached queries for ENGINE_ENTITIES table.

    This will return cached query plan which you can open by clicking it. After that save them in .sqlplan...

  • RE: Indexing and Deadlock in SQL Server 2008?

    We are using hibernate and jpa with glassfish with no problems after adding this property to connection string. Varchars are sent as varchars. Previously they were sent as nvarchar.

    Could you...

  • RE: Indexing and Deadlock in SQL Server 2008?

    You were quicker than me 🙂

    Without seeing actual or estimated execution plan my guess is that nonclustered index beginning with NODE_INSTANCE_ID was not exclusive enough to do index seek or...

  • RE: Indexing and Deadlock in SQL Server 2008?

    angeshwar (1/6/2014)


    I have updated my connection string to

    jdbc.url=jdbc:jtds:sqlserver://XXXXX:1433/XXXXX;instance=MSSQLServer;sendStringParametersAsUnicode=false

    I am still facing the deadlock.

    Can confirm that 2 queries causing deadlock are #select#.

    I am not able to find the actual values...

  • RE: Indexing and Deadlock in SQL Server 2008?

    angeshwar (1/6/2014)


    Hi,

    I have read the link

    http://technet.microsoft.com/en-us/library/ms378988.aspx

    for sendStringParametersAsUnicode=false.

    I see no relationship between this parameter and indexes not being used.

    Can you pls clarify?

    <inputbuf>

    (@P0 nvarchar(4000),@P1 bigint)select nodeinstan0_.id as id35_, nodeinstan0_.BPMN_ELEMENT_ID...

  • RE: Indexing and Deadlock in SQL Server 2008?

    I can see from info that you have provided that your queries will not use indexes. Your table has varchar fields and query is called with nvarchar.

    You need to alter...

  • RE: Validate trigger entries

    Couple of things.

    Can't you just use constraints?

    Your posted code seems to assume that there will be just one row coming to trigger, which might not be the case.

  • RE: Select is Slow

    By how many of those hundred columns client wants to order? If number is limited then adding clustered primary key and index to each column helps.

    Is there lot of changes...

  • RE: #Value error in SSRS

    What are you trying to do?

    There must be easier way to this.

  • RE: Updating grandparent table inside a trigger

    ALTER TRIGGER trgFatalToxicity ON Symptom

    AFTER INSERT

    SET NOCOUNT ON;

    IF EXISTS (SELECT *

    FROM inserted

    WHERE inserted.Grade=5)

    BEGIN

    PRINT 'Patient died!,...

  • RE: Why 10.52.4000

    Do you have any kind of problems?

    If not, I can't see any reason for trying to solve this.

  • RE: Select query to fetch multiple checkbox items

    I think you need to go trough items in list and check selected for each one of them. Generate SQL from that and use in (selected items separated with comma)...

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