You are here: Re: Using EXISTS « MsSQL Server « IT news, forums, messages
Re: Using EXISTS

Posted by Erland Sommarskog on 09/30/69 11:16

(jennifer1970@hotmail.com) writes:
> I thought I had it worked out. And I am almost positive that once I
> write it all down here I'll see where I am going wrong. :) I thought
> I'd use a cursor and loop through the repeaters and renumber them.
> BUT.... I never seem to get out of the second cursor loop. It hangs
> there and keeps renumbering the first record over and over again. It
> looks like @@FETCH_STATUS is always zero.
>
> Any ideas?

Try adding INSENSITIVE before CURSOR. That finalizes the result set for
the cursor once for all. The default keyset-driven cursors may pick
up your updates and feed you back the row you just changed.



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinfo/productdoc/2000/books.asp

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация