
28/09/2004, 12:47
|
| | Fecha de Ingreso: septiembre-2004
Mensajes: 2
Antigüedad: 20 años, 7 meses Puntos: 0 | |
lo hice asi pero
no me retorna el valor
este es el codigo asp
Set oConn = Server.CreateObject("ADODB.Connection")
oConn.Open "DRIVER={SQL Server};UID=fdfdd; PWD=sfsf;DATABASE=fdfd; SERVER=WSDEF"
Set RS = Server.CreateObject("ADODB.RecordSet")
Set RS = oConn.execute("EXEC csp_ciudad CIUDAD_ASEGURADO, DSC_CIUDAD")
RESPONSE.WRITE(RS(0).value)
este es el procedimiento
CREATE procedure csp_ciudad (@cod_ciudad char(5), @dsc_ciudad varchar(50) output)
as
begin
set nocount on
select @dsc_ciudad = dsc_ciudad
from geo_ciudad
where cod_ciudad = @cod_ciudad
select @dsc_ciudad
set nocount off
end |