.net 3.5 - any way to simulate OUTPUT clause in SQl Server Compact 3.5? -
i implementing email queue system. basic idea store emails in sql ce db , read them through windows service , send them.
assuming there 200 rows in db need fetch 10 records first , needed output clause run this
update mailqueue set status='fetched' queueid in (select top(10) queueid mailqueue status='queued' order queueid asc) **output** deleted.*
if not possible can think of removing rows permanently db , processing them , incase of failure store them in failqueue table. in case can select , delete done using sqlcetransaction class????
if there better way implement please advise.
thanking all
performing select , update in single sqlcetransaction trick.
Comments
Post a Comment