Quantcast
Channel: cursors....
Browsing all 10 articles
Browse latest View live

cursors....

Below is a successfully tested example script that should run in your environment.DECLARE @ACCOUNTID INT;DECLARE GETACCOUNTID CURSOR LOCAL STATIC FOR SELECT ACCOUNT_ID FROM dbo.BILLS;OPEN...

View Article



cursors....

iam new to sql. so, i tried simple example by using cursors but it doesnt executing...

View Article

cursors....

Try @@FETCH_STATUS instead of @@FETCHSTATUS.  However, I see no need for a cursor here.  It is best to avoid cursors in cases where set-based processing is an option.Dan Guzman, SQL Server MVP,...

View Article

cursors....

Can you do this without a cursor? Cursors are very bad for performance and you're not doing anything useful in your code at all, as I see.Premature optimization is the root of all evil in programming....

View Article

cursors....

sql server 2005 and 90

View Article


cursors....

What is your SQL Server version and compatibility level of the database?Compare your code with the http://msdn.microsoft.com/en-us/library/ms180169.aspxPremature optimization is the root of all evil in...

View Article

cursors....

i tried this..but it showing again some errors:Msg 156, Level 15, State 1, Line 2Incorrect syntax near the keyword 'FOR'.Msg 137, Level 15, State 2, Line 7Must declare the scalar variable...

View Article

cursors....

Your DECLARE CURSOR command is wrong. What exactly is the purpose of this exercise? It can be done with just one simple select statement.Premature optimization is the root of all evil in programming....

View Article


cursors....

try this.DECLARE @ACCOUNTID INTDECLARE GETACCOUNTID CURSOR FOR SELECT ACCOUNT_ID FROM BILLSOPEN GETACCOUNTIDWHILE @@FETCH_STATUS=0   BEGIN      FETCH NEXT FROM GETACCOUNTID INTO @ACCOUNTID      PRINT...

View Article


cursors....

DECLARE @ACCOUNTID INTDECLARE @GETACCOUNTID CURSORSET @GETACCOUNTID=CURSOR FOR SELECT ACCOUNT_ID FROM BILLSOPEN @GETACCOUNTIDFETCH NEXTFROM @GETACCOUNTID INTO @ACCOUNTIDWHILE @@FETCHSTATUS=0BEGINPRINT...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images

Pangarap Quotes

Pangarap Quotes

Vimeo 10.7.0 by Vimeo.com, Inc.

Vimeo 10.7.0 by Vimeo.com, Inc.

HANGAD

HANGAD

MAKAKAALAM

MAKAKAALAM

Doodle Jump 3.11.30 by Lima Sky LLC

Doodle Jump 3.11.30 by Lima Sky LLC