Find Jobs
Hire Freelancers

Classic ASP page to call a SQL2008 stored procedure that returns a recordset and populate an HTML table

$30-250 USD

In Progress
Posted about 11 years ago

$30-250 USD

Paid on delivery
For years we have used a block of code to store the results of a SQL select statement in a recordset in Classic ASP, then move through the recordset and built an HTML table with the data. Now we'd like to do the same with a stored procedure using 1 integer input parameter which was originally used to augment the where clause of the select statement. The page needs to call the stored procedure with the appropriate parameter, and store the resulting recordset in the rst variable so that we can use the existing code to output the field names as headers and cycle through all records building table rows for each. The stored procedure we're calling is below: /****** Object: StoredProcedure [dbo].[temp2] Script Date: 02/14/2013 13:27:29 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER PROCEDURE [dbo].[temp2] @dr int = 33 AS BEGIN SET NOCOUNT ON; select * from dept where DBCOL = @dr SET NOCOUNT OFF; END Our Classic ASP code is along these lines: '-- Create object and open database Set objConn = [login to view URL]("[login to view URL]") [login to view URL] strConn Set objCmd = [login to view URL]("[login to view URL]") [login to view URL] = objConn dr = 1 strSQL = "select * from dept where DBCOL =" & dr [login to view URL] = strSQL set rst = [login to view URL]("[login to view URL]") [login to view URL] objCmd, , 1, 1 [login to view URL] "" & vbcrlf if not [login to view URL] and not [login to view URL] then [login to view URL] [login to view URL] if [login to view URL] 0 then for each X in [login to view URL] select case [login to view URL] case "fieldswedontwant" case else [login to view URL] "" & [login to view URL] & "" & vbcrlf end select next [login to view URL] "" & vbcrlf while not [login to view URL] for each X in [login to view URL] select case [login to view URL] case "fieldswedontwant" case else [login to view URL] "" & [login to view URL]([login to view URL]).value & " " & vbcrlf end select next [login to view URL] "" & vbcrlf [login to view URL] wend ELSE [login to view URL] "No Records Found." end if end if [login to view URL] "" [login to view URL] set rst = nothing
Project ID: 4245255

About the project

3 proposals
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
hi i am providing my quote for this job. :) i am having 12 years of exp in classic asp. regards saju
$50 USD in 1 day
5.0 (51 reviews)
5.8
5.8
3 freelancers are bidding on average $50 USD for this job
User Avatar
I'm an expert MS-ASP (classic) / MS-SQL Server programmer. I can code the page to output the results as per your requirements. I can complete in 3 days. Quality work, guaranteed results! Bests, Larry
$70 USD in 3 days
5.0 (9 reviews)
4.4
4.4
User Avatar
we have folks with 15+ years of experience in building web pages in ASP and SQL Server. Ready to start. Thanks - Nutan
$60 USD in 2 days
5.0 (6 reviews)
3.5
3.5
User Avatar
it's very easy for me ,try to help you....
$40 USD in 2 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Lawrenceville, United States
5.0
9
Payment method verified
Member since Dec 26, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.