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 - 2002-05-07 : 09:57:57
|
| writes "I have created following stored procedure on sql server (version 7.0 no service pack) to randomly select records from the authors table:create proc randomrecord as declare @a intdeclare @auid varchar(40)select @a=(select rand()*23)select au_id into #tt from authorsalter table #tt add autonumber int identityset @auid=( select au_id from #tt where autonumber=@a )select * from authors where au_id=@auiddrop table #tt The stored procedure is created well but when I execute it I get the following error message:Invalid column name 'autonumber'.WHAT CAN BE THE PROBLEM ?" |
|
|
Nazim
A custom title
1408 Posts |
|
|
|
|
|