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 |
|
tfpayne
Starting Member
2 Posts |
Posted - 2004-06-09 : 14:50:24
|
| Is there a way to use a result set in a stored procedure and not declare a cursor? I want to select 1 record from a table and use the fields in calculations in the proc. Thansk |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2004-06-09 : 14:53:14
|
| CREATE PROC SomeProc(@Input INT, @Output INT OUTPUT)ASDECLARE @Var1 INTDECLARE @var2 INTSELECT @Var1 = Column1, @Var2 = Column2FROM Table1WHERE Column3 = @InputSELECT @Output = @Var1 + @Var2RETURN 0 GOTara |
 |
|
|
tfpayne
Starting Member
2 Posts |
Posted - 2004-06-09 : 15:03:01
|
| Thanks a bunch |
 |
|
|
|
|
|