Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old July 23rd, 2003, 11:29 AM
justastef justastef is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 16 justastef User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
sql as variable or paramenter

Lets say I do a Remote Procedure Call. So there is Server1 and Server2... How do I pass the results of a select statement as a parameter over to another stored procedure so it can use it...

I really am going to need a short example as I don't have any clue and I need to see what is being done. I can't find examples of this anywhere. The example can be as simple as this (although my statements are going to be COMPLETELY botched cause I have NO IDEA what the statements should look like, but you should be able to follow.

Create procedure procedure1 as
declare @thevariable
select * into @thevariable from tbl
exec procedure2 @thevariable

create procedure procedure2 as
select * from @thevariable

Something to the liking... something simple! If anyone could do that for me oh my god that would make my LIFE!!!!!!!! You have no idea how long I've been trying to figure out ways to approach this project and if something like this would work... EVERYTHING WOULD BE AMAZING!

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > sql as variable or paramenter


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway