Hi,
If there is any primary key for the temporary table, specify it.
like this
create table #tempTrans
(
RecId integer not null primary key,
SeqNo smallint not null,
CustAmount numeric(18,5) null,
CustQuantity numeric(18,5) null
)
while using cursors it is suggested to delcare primary key...