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-06-04 : 08:11:20
|
| Pablo writes "Hello, I need to do in a stored procedure which receives a list of IDS (@IDS) as a varchar a cursor to fetch each row in the procedure.I wrote this code:DECLARE cBENEFS CURSOR FOR SELECT b.idbeneficiario FROM beneficiarios b WHERE b.idbeneficiario in (ltrim(rtrim(@IDS)) )and appears the following error:Arithmetic overflow error converting varchar to data type numeric.I hope you can help me, I don't want to do it in my ASP file because I think it'll be very slowThank you" |
|
|
Nazim
A custom title
1408 Posts |
Posted - 2002-06-04 : 08:48:05
|
| if you use Cursors it would be more slower.Cursors Sucks and they are performance killers.Go thru this Article http://www.sqlteam.com/item.asp?ItemID=637 and i think you should be able to modify you code taking tips from the code here.if you still need help, do post and ask for it.-------------------------------------------------------------- |
 |
|
|
|
|
|