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 |
|
raysefo
Constraint Violating Yak Guru
260 Posts |
Posted - 2006-06-18 : 11:36:29
|
| Hi,INSERT INTO [Raw].dbo.[@year]...How to use a variable in such a statement above? i need to use variable as a table name, please help me.thanks |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2006-06-18 : 11:54:06
|
| Have look at dynamic sql==========================================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. |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|