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

Em Andamento
Publicado há aproximadamente 11 anos

$30-250 USD

Pago na entrega
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
ID do Projeto: 4245255

Sobre o projeto

3 propostas
Projeto remoto
Ativo há 11 anos

Quer ganhar algum dinheiro?

Benefícios de ofertar no Freelancer

Defina seu orçamento e seu prazo
Seja pago pelo seu trabalho
Descreva sua proposta
É grátis para se inscrever e fazer ofertas em trabalhos
Concedido a:
Avatar do Usuário
hi i am providing my quote for this job. :) i am having 12 years of exp in classic asp. regards saju
$50 USD em 1 dia
5,0 (51 avaliações)
5,8
5,8
3 freelancers estão ofertando em média $50 USD for esse trabalho
Avatar do Usuário
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 em 3 dias
5,0 (9 avaliações)
4,4
4,4
Avatar do Usuário
we have folks with 15+ years of experience in building web pages in ASP and SQL Server. Ready to start. Thanks - Nutan
$60 USD em 2 dias
5,0 (6 avaliações)
3,5
3,5
Avatar do Usuário
it's very easy for me ,try to help you....
$40 USD em 2 dias
0,0 (0 avaliações)
0,0
0,0

Sobre o cliente

Bandeira do(a) UNITED STATES
Lawrenceville, United States
5,0
9
Método de pagamento verificado
Membro desde dez. 26, 2012

Verificação do Cliente

Obrigado! Te enviamos um link por e-mail para que você possa reivindicar seu crédito gratuito.
Algo deu errado ao enviar seu e-mail. Por favor, tente novamente.
Usuários Registrados Total de Trabalhos Publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Carregando pré-visualização
Permissão concedida para Geolocalização.
Sua sessão expirou e você foi desconectado. Por favor, faça login novamente.