Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 About Cursors

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2002-07-01 : 08:01:41
hafiz writes "Sir,

i have declared a cursor as :

declare cur_name Cursor
for
select * from Table

open cur_name

fetch next from cur_name into @var1,@var2,.....


sir,there are too many fields in the select statement .
so, i may not know about the number of fileds . so i want another way to get these fields vaules for manipulation ."

dsdeming

479 Posts

Posted - 2002-07-01 : 08:23:53
Are you sure you need a cursor. There may be a set-based approach that will work, and it would be far more efficient. If you can provide more details, I can be more specific.

Go to Top of Page
   

- Advertisement -