Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Having doubt on procedure with joins Expand / Collapse
Author
Message
Posted Tuesday, January 08, 2013 10:45 PM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Yesterday @ 2:36 AM
Points: 105, Visits: 259

Hai friends
i ve 5 tables now i wanna make a join with in that and i m done join
now the problem is how to pass that joins in procedure


Thanks & Regards
Raghuldaggi
Post #1404546
Posted Tuesday, January 08, 2013 11:22 PM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Thursday, June 13, 2013 7:03 AM
Points: 2,562, Visits: 3,453
it seems that you are quite familiar with this forum . so table defintion , index , test data was expected. it is better to get the result faster.

Anyways

see these links
http://www.mssqltips.com/sqlservertip/1495/getting-started-with-sql-server-stored-procedures/
http://msdn.microsoft.com/en-us/library/aa258259(v=sql.80).aspx


-------Bhuvnesh----------
While 1 = 1 (Learning SQL....)
Click to get fast response of your post
Post #1404552
Posted Wednesday, January 09, 2013 11:58 PM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, June 13, 2013 4:04 AM
Points: 1,069, Visits: 1,471
raghuldrag (1/8/2013)

Hai friends
i ve 5 tables now i wanna make a join with in that and i m done join
now the problem is how to pass that joins in procedure


Thanks & Regards
Raghuldaggi


From your post I can only assume that you have written a JOIN query which uses 5 tables.
Just put that query in procedure code as follows :

Create Procedure <Procedure_Name> 
As
Begin
<Paste your JOIN query here>
End



If this is not what you are looking for(and I presume this is not) then please post DDL and sample data for your requirement to explain what you want to do. That would get you a solution in no time.


Vinu Vijayan

For better and faster solutions please check..."How to post data/code on a forum to get the best help" - Jeff Moden
Post #1405220
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse