Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / March 2008

Tip: Looking for answers? Try searching our database.

resetting @@FETCH_STATUS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ant - 03 Mar 2008 01:02 GMT
Hi,
I'm using two cursors in the same proc.
Do I need to reset @@FETCH_STATUS before using it to check the status of the
second cursor? If so, how can this be done.

Many thanks for your answers in advance

Ant
Aaron Bertrand [SQL Server MVP] - 03 Mar 2008 01:16 GMT
You're using nested cursors?  I am fairly confident you can avoid that...
help us help you by showing us your code and explaining why two cursors are
needed.

> Hi,
> I'm using two cursors in the same proc.
[quoted text clipped - 5 lines]
>
> Ant
Ant - 03 Mar 2008 01:37 GMT
You're on the right track. They weren't nested however, they were in line,
but...

Actually, I just readjusted the code so that I put everything in the first
cursor & now have no need for the second.

Sorry to waste your time but thanks very much for your answer none the less

Ant

> You're using nested cursors?  I am fairly confident you can avoid that...
> help us help you by showing us your code and explaining why two cursors are
[quoted text clipped - 9 lines]
> >
> > Ant
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.