Advertisement

10.18.2004 at 08:01AM PDT, ID: 21172487
[x]
Attachment Details

how to return resultset from stored procedure?

Asked by drs66 in MS SQL Server

Tags: , , ,

not familiar with sql server stored procedures. i am only knowledgable in oracle and informix.

i need to know if it is possible to return a loaded resultset from a sql server stored procedure. i need to be able to do this from a single call to the stored procedure because these procedures will be called through odbc from linked query objects in microsoft access.  using ADO an OLE to bind client cursor objects is not an option.

looking for an example of a simple stored proc that returns a first_name and last_name from an employee table with all employees with a last name started with var1; var1 will be passed in to the procedure at runtime.  please demonstrate the call to the procedure and what the resultset should look like to the client. temp tables are not an option so please do not use that route.

thank you in advance.

daniels@asix.com
Start Free Trial
[+][-]10.18.2004 at 08:11AM PDT, ID: 12338878

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.

 
[+][-]10.18.2004 at 08:13AM PDT, ID: 12338897

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.

 
[+][-]10.18.2004 at 08:21AM PDT, ID: 12338953

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.

 
[+][-]10.18.2004 at 09:02AM PDT, ID: 12339293

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.

 
[+][-]10.18.2004 at 10:03AM PDT, ID: 12339921

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

Zone: MS SQL Server
Tags: stored, procedure, return, from
Sign Up Now!
Solution Provided By: Lowfatspread
Participating Experts: 4
Solution Grade: B
 
 
[+][-]10.18.2004 at 10:36AM PDT, ID: 12340264

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

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

 
[+][-]10.19.2004 at 01:06AM PDT, ID: 12345317

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.

 
[+][-]11.12.2004 at 06:46AM PST, ID: 12565976

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

 
[+][-]11.16.2004 at 05:43AM PST, ID: 12593304

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

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

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