|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Help with stored procedure
Hi...
I'm looping a table inside a stored procedure. For every row I do alot's of stuff with the data and put some results in a variable. Like this: While @result = x + y - z @idfield = @userid End I want the result of the stored procedure to be a recordset with my new data. Without creating a temporary table, insert the data, select the table and then deleting the table. How do I do that? |
|
#2
|
|||
|
|||
|
What version of SQL Server are you using? If it's SQL 2000, you could use a table variable instead of a temp table.
Lucas Alexander http://www.alexanderdevelopment.net |
|
#3
|
|||
|
|||
|
Thanx
I'm using SQL Server 2000
I'll try the table variable. Is there another way to solve the problem? Thanks |
|
#4
|
|||
|
|||
|
Thanks again
The table variable saved my day.
Thanks alot |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > Help with stored procedure |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|