Advertisement

03.16.2007 at 10:12AM PDT, ID: 22454455
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.0

Stored proceudre and returning a recordset

Asked by bearpaws in Active Server Pages (ASP)

Tags: , ,

Hi Folks,

  I have a stored proc in which I want to return the resulting recordser. The stored proc works fine in QA and returns the corrct recordset. However, in my  asp page, it just hangs.
I know my connection string is valid etc. I think I am just not putting the pieces together right.
 I am unsure what I am doing wrong. Could someone be as so kind as tell me where I goofed?

Stored Proc
Alter PROC  sel_clients_lastname
@CompanyId int,
@Lastname nvarchar(25)
with recompile
 as
set nocount on
 Select ClientId,FullName,HomePhone,WorkPhone, Email From Clients
                Where CompanyId = @CompanyId  AND FamilyOnly ='0'
                AND LastName LIKE @Lastname
                order by LastName, FirstName;

Coding:
Note vdbase is a variable containg connection string and it is valid.
variable vfindit is valid
vcompanyid is valid


      set rsConn = Server.CreateObject("ADODB.Connection")
      rsConn.Open vdbase
      set rsCmds = Server.CreateObject("ADODB.Command")
      set rsRecs = Server.CreateObject("ADODB.Recordset")
      set rsCmds.ActiveConnection = rsConn
      rsCmds.CommandType = adcmdStoredProc
      rsCmds.CommandText = "sel_clients_lastname"
       rsCmds.Parameters.Append rsCmds.CreateParameter("RC",adInteger,adParamReturnValue)
        rsCmds.Parameters.Append rsCmds.CreateParameter("CompanyId",adInteger,adParamInput,4,vcompanyid)
        rsCmds.Parameters.Append rsCmds.CreateParameter("Lastname",adVarChar,adParamInput,25,vfindit)
        set rsRecs = rsTT.Execute(rsCmds)
                
      if not rsRecs.EOF then
         while not rsRecs.EOF        
             blah blah
             rsRecs.MoveNext
          wend
      end if
          rsRecs.Close
          set rsRecs = nothing
          set rsCmds.ActiveConnection = nothing
          set rsTT = nothing
:Start Free Trial
[+][-]03.16.2007 at 11:02AM PDT, ID: 18736747

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.

 
[+][-]03.16.2007 at 11:43AM PDT, ID: 18737035

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.

 
[+][-]03.16.2007 at 12:33PM PDT, ID: 18737408

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.16.2007 at 12:45PM PDT, ID: 18737477

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.

 
[+][-]03.16.2007 at 01:01PM PDT, ID: 18737618

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.16.2007 at 01:15PM PDT, ID: 18737698

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.

 
[+][-]03.16.2007 at 04:19PM PDT, ID: 18738474

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.17.2007 at 04:16AM PDT, ID: 18739835

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.

 
[+][-]03.17.2007 at 04:33AM PDT, ID: 18739862

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.

 
[+][-]03.17.2007 at 08:32AM PDT, ID: 18740466

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.19.2007 at 05:23AM PDT, ID: 18747484

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.

 
[+][-]03.19.2007 at 05:58AM PDT, ID: 18747686

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.

 
[+][-]03.19.2007 at 09:04AM PDT, ID: 18749050

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.

 
[+][-]03.19.2007 at 10:02AM PDT, ID: 18749632

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: Active Server Pages (ASP)
Tags: asp, proceudre, stored
Sign Up Now!
Solution Provided By: opho
Participating Experts: 2
Solution Grade: A
 
 
[+][-]03.19.2007 at 10:28AM PDT, ID: 18749884

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.

 
[+][-]03.19.2007 at 10:33AM PDT, ID: 18749929

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.19.2007 at 12:52PM PDT, ID: 18751113

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