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.
| Author |
Topic |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2004-06-07 : 12:09:20
|
| Jim Kuroski writes "I am attempting to assign a value to a variable (@NewColumnName) with a select statement that also contains a variable (@WhatColumn). I can't seem to get it to work.SELECT @NewColumnName = @WhatColumn FROM #tmp" |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2004-06-07 : 12:29:38
|
| see http://www.nigelrivett.net/sp_executeSQL.html==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|