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 |
|
azeemigi
Starting Member
5 Posts |
Posted - 2010-01-15 : 07:57:37
|
SELECT Temp_ID FROM tblTemp --Assume Temp_ID is an integerDECLARE @TempID as intHow can I assign Temp_ID into @TempID??? Do I need to use SELECT statement????RegardsSequel Noob  |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-01-15 : 07:59:32
|
| DECLARE @TempID as intSELECT @TempID = Temp_ID FROM tblTempBut if there are more than one Temp_ID, only the last value would be assignedMadhivananFailing to plan is Planning to fail |
 |
|
|
azeemigi
Starting Member
5 Posts |
Posted - 2010-01-15 : 08:57:50
|
Thank you... That works.. RegardsSequel Noob |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-01-15 : 09:02:02
|
quote: Originally posted by azeemigi Thank you... That works.. RegardsSequel Noob 
You are welcome MadhivananFailing to plan is Planning to fail |
 |
|
|
|
|
|