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)
 Dynamic cursor variable

Author  Topic 

pelegk2
Aged Yak Warrior

723 Posts

Posted - 2007-08-02 : 06:42:54
i have this code in which i define a @TempTableCursor
but is there a way that the TargetTable will be
TargetTable1,TargetTable2,..TargetTable(i)
so when i define set the @TempTableCursor it will have in the
defenition the TargetTable with a dynamic changing number?

Declare @TempTableCursor cursor
Set @TempTableCursor = Cursor Local FAST_FORWARD
For Select * From TargetTable


thnaks in advance
peleg

Israel -the best place to live in aftr heaven 9but no one wan't to go there so fast -:)

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-08-02 : 08:18:09
Denormalised structures?
www.sommarskog.se/dynamic_sql.html

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -