Results 1 to 2 of 2

Thread: store procedure

  1. #1
    Join Date
    Jul 2004
    Location
    bay area
    Posts
    61

    store procedure

    Hi, All,
    I need to write a sales report which needs to seperate total from direct sale and agentsale. The report looks like this( in the table of query,we have agentnumber, productname, sales, month

    Month salefromagent directsale total
    Jan 1100 2300 3400
    Feb 800 500 1300
    ..........
    Dec
    ---------------------------------
    I know we can handle this in the program use two queries.
    But is there a way to do it use store procedure and then pass the result of store procedure to the ASP program. I am trying to write my first store procedure, thanks for any clue.
    Betty

  2. #2
    Join Date
    Feb 2003
    Posts
    1,048
    Yes, just put whatever queries you do to get the report in the stored procedure and then execute the stored procedure from your ASP page.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •