If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Output of Stored Procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-03, 08:58
Decastod Decastod is offline
Registered User
 
Join Date: Nov 2001
Posts: 36
Question Output of Stored Procedure

Hi,

I am trying to run sp_validatelogins on my dev box and store the output in some temp table.

Basically, when a stored procedure returns 'N' number of rows how do I directly put it in temp table. ( I am not looking for procedure return status, or any OUTPUT variable).

Thanks.
Reply With Quote
  #2 (permalink)  
Old 02-25-03, 09:11
Paul Young Paul Young is offline
Registered User
 
Join Date: Feb 2002
Location: Houston, TX
Posts: 809
try:

if object_id('tempdb..#Tmp') is not null drop table #Tmp
create table #Tmp(SID varbinary(85), [NT Login] sysname)

insert into #Tmp
exec sp_validatelogins

select * from #Tmp
__________________
Paul Young
(Knowledge is power! Get some!)
Reply With Quote
  #3 (permalink)  
Old 02-28-03, 16:10
Decastod Decastod is offline
Registered User
 
Join Date: Nov 2001
Posts: 36
Thnaks a lot man
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On