Go Back   DeveloperBarn Forums > Databases > SQL Development

Sponsored Links

Discuss "Returning a table in sp executed in an sp..." in the SQL Development forum.

SQL Development - Structured Query Language (SQL) is the talk of databases. Discuss topics such as joins, triggers and other advanced SQL topics.


Reply « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old August 1st, 2008, 03:15 PM
Lauramc's Avatar
I like Data Cubes too...

 
Join Date: Mar 2008
Location: Far Far Away
Posts: 47
Thanks: 1
Thanked 4 Times in 2 Posts
Rep Power: 1
Lauramc is on a distinguished road

Awards Showcase
Microsoft SQL Server 
Total Awards: 1

Default Returning a table in sp executed in an sp...

Hi All,

I am trying to come up with an efficient way of handling a problem. I am executing a stored procedure to get a mailing list based on various criteria. This list, if under 200 names must follow a separate procedure to backfill itself. I am thinking that if it is possible, I might try executing another stored procedure from the first stored procedure to get those results. Then I have to add the results of the second procedure to the records obtained in the first procedure and output the results.

Is this possible? Can I evaluate the results of stored proc A from within stored proc B? Has anyone tried this?
__________________
"The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS
Reply With Quote
Sponsored Links
  #2  
Old August 6th, 2008, 09:05 PM
Lauramc's Avatar
I like Data Cubes too...

 
Join Date: Mar 2008
Location: Far Far Away
Posts: 47
Thanks: 1
Thanked 4 Times in 2 Posts
Rep Power: 1
Lauramc is on a distinguished road

Awards Showcase
Microsoft SQL Server 
Total Awards: 1

Default

I answered my own question. I managed to make this into one procedure. I reasoned that it would be easier to maintain this way rather than having two similar procedures.

I accomplished this by adding additional temp tables to store the data while I worked with it. Thanks anyway!
Reply With Quote
Reply

  DeveloperBarn Forums > Databases > SQL Development

Bookmarks

Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to retrieve unknown recordset field names in table? BLaaaaaaaaaarche ASP Development 2 August 10th, 2008 08:33 AM
Access 03 Adding updating data from child table to Parent nboscaino Microsoft Access 8 July 15th, 2008 08:12 AM
Create History Table / Outcome results Rebelle Database Design Help 9 July 1st, 2008 08:33 AM


All times are GMT -4. The time now is 07:47 PM.



Content Relevant URLs by vBSEO 3.2.0