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.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 I need to have the results of a query

Author  Topic 

sholana
Starting Member

4 Posts

Posted - 2003-01-09 : 16:09:51
as the input parameters to a Stored procedure
example

Select po, program, inc, spot FROM Jobs_used where Dateend is null

While
ArchivePageLog po, program, inc, spot /*these will be the values */
move.next

The Stored procedure is written and works for one But how do I get the loop?


nr
SQLTeam MVY

12543 Posts

Posted - 2003-01-09 : 16:27:32
Got me beat.
No idea what you mean.

==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

robvolk
Most Valuable Yak

15732 Posts

Posted - 2003-01-09 : 16:28:20
indeed. What loop are you talking about?

Go to Top of Page

MichaelP
Jedi Yak

2489 Posts

Posted - 2003-01-09 : 16:33:24
sholana,
I think that you need to do a search for passing CSV data into a stored proc.

http://www.sqlteam.com/SearchResults.asp?SearchTerms=csv

Micahel

<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page
   

- Advertisement -