Advertisement

03.28.2008 at 04:29AM PDT, ID: 23276823
[x]
Attachment Details

SQL Server 2005 Stored Procedure do a select on another select statement

Asked by yo_daz_uk in .NET, SQL Server 2005

Tags: Microsoft, SQL Server, 2005, Stored Procedures

All,

I am new to SQL Server.  I have heard about this wonderful thing called stored procedures :-).  I am trying to convert an Access database to SQL server 2005.  I can use the upgrade wizard for the tables, but the queries that are used i cannot.

In the Access database we have queries that are built up of other sub queries, because in Access you cannot have multiple select statements in a query.  However in stored procedures i think you can, please tell me you can?!?!

What i want to know is how?

I have followed a basic article through and think i can make a stored procedure select a table, but then how do i do a select using the results of the previous select?

I hope this makes sense.

Thanks,

Daz

 Start Free Trial
 
 
[+][-]03.28.2008 at 05:29AM PDT, ID: 21229715

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .NET, SQL Server 2005
Tags: Microsoft, SQL Server, 2005, Stored Procedures
Sign Up Now!
Solution Provided By: aneeshattingal
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.28.2008 at 05:37AM PDT, ID: 21229757

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.28.2008 at 05:44AM PDT, ID: 21229803

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628