Forum Replies Created

Viewing 15 posts - 1 through 15 (of 98 total)

  • Reply To: sum 2 column by group

    Yes it worked :):)

  • Reply To: sum 2 column by group

    Following worked

    SELECT TrId SellPrice kode DiffAmt,

    sellprice+sum(DiffAmt) OVER (PARTITION BY kode

    ORDER BY trId

    ROWS BETWEEN UNBOUNDED PRECEDING

    AND 0 PRECEDING)

  • Reply To: sum 2 column by group

    Yes,on group of TrId and Kode, like illustrated below

    TrId SellPrice         kode          DiffAmt     Rtotal (sellprice+DiffAmt)

    1        27560.5010  3000276    0.5000    27,561.001 (27560.5010+.5) (sellprice+DiffAmt where trid=1 and kode= 3000276)

    2       27560.5010 ...

  • Reply To: wrong index name

    thank you All for valuable  directions. I will try to follow correct path as suggested.

    one more question about locking, OFFLINE rebuild lock table for upcoming transactions. What about current transactions,...

  • Reply To: AWS : SqlServer to Postgree continous replication

    what could be good and economical option on AWS ?

  • Reply To: Identify INT,BIGINT,character in stored proc

    sure sir.

    following is my proc code. proc is taking comma separated input string . it get parse and then compare to db table. if product(s) are invalid , i sent...

  • Reply To: Identify INT,BIGINT,character in stored proc

    Thank you. TRY_Convert exist in my version

  • Reply To: Invalid cursor state

    Thank you All for input.

    issue is resolved, it looks like ODBC issue but really not sure.

    we added connection open/Close on every sql statement in application and apparently it looks fixed...

  • Reply To: Invalid cursor state

    Dev said he used default settings. I got following on login Audit (profiler), not sure if this can help

    -- network protocol: TCP/IP

    set quoted_identifier on

    set arithabort off

    set numeric_roundabort off

    set ansi_warnings on

    set...

  • Reply To: Invalid cursor state

    This part of application is developed in Omnis

    I need to confirm ODBC version, Yes windows server upgraded some time back

    ratbak wrote:

    What type of application? MS Access by chance? I do...

    • This reply was modified 3 years, 2 months ago by  thbaig.
  • Reply To: Invalid cursor state

    This table has no FK constraint , as this is base table and having PK only

    Jeff Moden wrote:

    It's just an INSERT for C.R.U.D.  I suspect that the inset is sometimes being...

  • Reply To: Invalid cursor state

    No trigger on this table

    ratbak wrote:

    Is there an insert trigger on WEB_ORDERS? Cursor could be lurking there.

  • Reply To: Invalid cursor state

    no , app is not calling it in loop, but this could call several times in a sec

  • Reply To: Invalid cursor state

    I have not defined any cursor. But may  be it is throwing error due to implicit cursors by rdbms , that is the reason for suggestion about SET NOCOunt ON...

    • This reply was modified 3 years, 2 months ago by  thbaig.
  • Reply To: Conditional where clause

    Thank you Phil.

    but why the addition of "@myFlag <> 1)" make it work ?

    (@myFlag <> 1)

    OR

    (

    @myFlag = 1

    AND name NOT IN ( 'A', 'C' )

    );

     

    Phil Parkin wrote:

    DROP TABLE...

Viewing 15 posts - 1 through 15 (of 98 total)