User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 327,522 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,295 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser:
Views: 526 | Replies: 1
Reply
Join Date: Aug 2007
Posts: 20
Reputation: culebrin is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 1
culebrin culebrin is offline Offline
Newbie Poster

Read row in a CLR Stored Procedure Without output parameter

  #1  
Mar 26th, 2008
Hi all,

I have a Stored Procedure without an output parameter but it returns one row always, this SP is called by another SP, so I need to store some of those columns in a variables of the first SP. How can I do that?

Please help.

P.D.: I have no access to the code of the first SP, and is a CLR, HEEELPPP!!!
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2008
Posts: 10
Reputation: huangzhi is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 2
huangzhi huangzhi is offline Offline
Newbie Poster

Re: Read row in a CLR Stored Procedure Without output parameter

  #2  
Apr 1st, 2008
Hope this code can help you.

1. Execute your first SP in query analyzer to show the columns list.

2. Create temporary table and the field must the same as first SP columns
create table #tmpTemp (
  Field1 varchar(255),
  Field2 varchar(255))

3. Insert the columns from first SP into temp table.
insert #tmpTemp exec sp_SP1

4. Store the column value.
declare @Field1 varchar(255)
select @Field1 = Field1 from #tmpTemp
Hence Wijaya
www.ex-Soft.tk
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb Marketplace (Sponsored Links)
Thread Tools Display Modes

Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 10:12 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC