• jmoog (6/26/2012)


    Here is the insert command

    NSERT INTO [TT_TSAPIDataA]

    ([SiteId]

    ,[ReferenceId]

    ,[CallId]

    ,[ResultingCallId]

    ,[SourceIP]

    ,[DestinationIP]

    ,[ProtocolId]

    ,[ApplicationId]

    ,[OperationValue]

    ,[SpecificEvent]

    ,[DNIS]

    ,[ANI]

    ,[CallingNumber]

    ,[CallingAddressType]

    ,[CalledNumber]

    ,[CalledAddressType]

    ,[DomainExtension]

    ,[Count]

    ,[OriginationPort]

    ,[ConnectedNumber]

    ,[ConnectedNumber2]

    ,[ConnectedAddressType]

    ,[TrunkGroup]

    ,[TrunkMember]

    ,[Cause]

    ,[DateReceived]

    ,[TimeZoneOffset])

    VALUES

    (@SiteId1,

    @ReferenceId1,

    @CallId1,

    @ResultingCallId1,

    @SourceIP1,

    @DestinationIP1,

    @ProtocolId1,

    @ApplicationId1,

    @OperationValue1,

    @SpecificEvent1,

    @DNIS1,

    @ANI1,

    @CallingNumber1,

    @CallingAddressType1,

    @CalledNumber1,

    @CalledAddressType1,

    @DomainExtension1,

    @Count1,

    @OriginationPort1,

    @ConnectedNumber1,

    @ConnectedNumber21,

    @ConnectedAddressType1,

    @TrunkGroup1,

    @TrunkMember1,

    @Cause1,

    DATEADD(mi,@TimeZone,@DateReceived1), --@DateReceived

    @TimeZone)

    )

    Have you observed the values you are passing ? Do you have any index on the said table ? How frequently the table is used and for what purpose ?

    --rhythmk
    ------------------------------------------------------------------
    To post your question use below link

    https://www.sqlservercentral.com/articles/forum-etiquette-how-to-post-datacode-on-a-forum-to-get-the-best-help
    🙂