
29/12/2004, 08:24
|
 | | | Fecha de Ingreso: diciembre-2002 Ubicación: santiago-chilito
Mensajes: 1.931
Antigüedad: 22 años, 4 meses Puntos: 2 | |
por ejemplo este es el procedimiento almacenado
CREATE PROCEDURE IW_psnpStockPro @fecha DATETIME, @Tipo VARCHAR(1), @Producto VARCHAR(20)
AS
IF (@Tipo = 'D')
Exec IW_psnpStockProDisp @fecha, @Producto
IF (@Tipo <> 'D')
Exec IW_psnpStockProRCT @fecha, @Tipo, @Producto
este codigo lo adapte
<%
dim fecha , tipo , bodega , producto
%> <!-- #include file="conecta.asp" --> <%
fecha="29-12-04 "
tipo="D"
bodega=1
producto="997bandeja"
set rs = server.createobject("adodb.recordset")
'open the recordset, passing in the variable
'note that the variable product_id does not have to be name the same as in the stored procedure, it just needs to be the same data type.
rs.Open "Exec IW_psnpStockBodPro" & fecha, Producto ,oconn
%>
pero me marca error en la fecha que no coinciden los tipos
¿como le puede hacer para sulucionar el problema de la fecha?
un saludo |