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 2005 Forums
 Transact-SQL (2005)
 inserting 60 columns using cursor

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2007-01-11 : 06:46:09
Saxena writes "I would like to do processing of around 60 columns before inserting into the table. I would like to create Cursor as select * from table A and then in Loop
insert into table B
values ( get_rec.values1 , get_rec.values2 ) like in Oracle.

How can I do the same in SQL server 2005.

Regards,"

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-01-11 : 06:51:56
Where do Value and Value2 come from?


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -