PO FAVOR!!! LLAMAR A UN STORE PROCEDURE- DA ERROR - x

01/08/2003 - 00:49 por ximemachi | Informe spam
Hola por favor ya estoy loca con esto no encuentro el error:
Cuando ejecuto me sale error en la fila 65 y esto es lo que contiene
mi pagina ASp ¡por favor ayuda..como hago para que corra el Store
procedure:

**Alprincipio de la pagina inclui mi archivo asi ¿será por esto?*****
<!-#INCLUDE FILE ="ADOVBS.INC"->

SET objCmd=Server.CreateObject("ADODB.Command")
objCmd.ActiveConnection = "DSN=BOLREP;UID=bolrep;PWD=repbol"
objCmd.CommandType=adCmdStoredProc ******ESTA SUPUESTAMENTE ES LA
LINEA 65*****
objCmd.CommandText="CommercialSummary"
set objParam1=objcmd.CreateParameter("gest_act",adChar,adParamInput,6,"200306")
set objParam2=objcmd.CreateParameter("gest_ant",adChar,adParamInput,6,"200305")
set objParam3=objcmd.CreateParameter("mes_ant",adInteger,adParamInput,,5)
set objParam4=objcmd.CreateParameter("ano_ant",adInteger,adParamInput,,2003)
set objParam5=objcmd.CreateParameter("mes_act",adInteger,adParamInput,,6)
set objParam6=objcmd.CreateParameter("ano_act",adInteger,adParamInput,,2003)
set objParam7=objcmd.CreateParameter("cod_reg",adChar,adParamInput,2,"01")
set objParam8=objcmd.CreateParameter("cod_age",adChar,adParamInput,2,"04")

objCmd.Parameters.Append objParam1
objCmd.Parameters.Append objParam2
objCmd.Parameters.Append objParam3
objCmd.Parameters.Append objParam4
objCmd.Parameters.Append objParam5
objCmd.Parameters.Append objParam6
objCmd.Parameters.Append objParam7
objCmd.Parameters.Append objParam8

objCmd.Execute


tambien intente con la conexion de este tipo!!!****************

set objConexion=server.CreateObject("ADODB.Connection")
strConex="PROVIDER=SQLOLEDB;UID=bolrep;PWD=repbol;SERVER=" &
application("server") & ";DATABASE=BOLREP"
objconexion.Open strConex
objCmd.ActiveConnection=objconexion
objCmd.CommandType=adCmdStoredProc ******ESTA SUPUESTAMENTE ES LA
LINEA 65 Y SIGUE MAL EN ESTA LINEA*****
objCmd.CommandText="CommercialSummary"
set objParam1=objcmd.CreateParameter("gest_act",adChar,adParamInput,6,"200306")
set objParam2=objcmd.CreateParameter("gest_ant",adChar,adParamInput,6,"200305")
set objParam3=objcmd.CreateParameter("mes_ant",adInteger,adParamInput,,5)
set objParam4=objcmd.CreateParameter("ano_ant",adInteger,adParamInput,,2003)
set objParam5=objcmd.CreateParameter("mes_act",adInteger,adParamInput,,6)
set objParam6=objcmd.CreateParameter("ano_act",adInteger,adParamInput,,2003)
set objParam7=objcmd.CreateParameter("cod_reg",adChar,adParamInput,2,"01")
set objParam8=objcmd.CreateParameter("cod_age",adChar,adParamInput,2,"04")

objCmd.Parameters.Append objParam1
objCmd.Parameters.Append objParam2
objCmd.Parameters.Append objParam3
objCmd.Parameters.Append objParam4
objCmd.Parameters.Append objParam5
objCmd.Parameters.Append objParam6
objCmd.Parameters.Append objParam7
objCmd.Parameters.Append objParam8

objCmd.Execute

****este es el error******
Error Type:
ADODB.Command (0x800A0BB9)
Arguments are of the wrong type, are out of acceptable range, or are
in conflict with one another.


muchas gracias xime

Preguntas similare

Leer las respuestas

#6 Ximena Machicao
06/08/2003 - 00:37 | Informe spam
PERFECTO!!!

MUCHISIMAS GRACIAS!! YA NOP ME DA EL ERROR DE ANTES, pero te cuento!!!

ahora me sale el siguiente error!buahh.. que hago??? porque es???
me da lo mismo me conecte por ODBC o le ponga la cadena de conexion
directamente...

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E31)
[Microsoft][ODBC SQL Server Driver]Timeout expired
/Reportes/commercialsummary.asp, line 123

a.. Error Type:
Microsoft OLE DB Provider for SQL Server (0x80040E31)
Timeout expired
/Reportes/commercialsummary.asp, line 123

Por fis... otra ayudita!!! y muchas gracias de nuevo!!
"TobleRone" escribió en el mensaje
news:
Ximena, acabo de leer tu mensaje de nuevo...

El problema es otro. Tu página ASP no esta encontrando el archivo
ADOVBS.INC.
Antes que nada, al principio de la página, trata de que SIEMPRE tengas


esta
linea:

<% Option Explicit %>

... con esto te aseguras de que los errores sean nominales y si hay
problemas con variables inxeistentes (como en este caso), el preprocesador
te lo advierte.

Luego, la linea del include deberia ser:

<!--#include virtual="/adovbs.inc"-->

y asegurarte que el archivo adovbs.inc esté en el directorio raiz (que es
donde apunta el include) de tu website.

Si no tenés el archivo, lo podés bajar de aca:
http://www.asp101.com/articles/john...adovbs.inc

Espero que te sirva.

Saludos


"Ximena" escribió en el mensaje
news:
> Hola por favor ya estoy loca con esto no encuentro el error:
> Cuando ejecuto me sale error en la fila 65 y esto es lo que contiene
> mi pagina ASp ¡por favor ayuda..como hago para que corra el Store
> procedure:
>
> **Alprincipio de la pagina inclui mi archivo asi ¿será por esto?*****
> <!-#INCLUDE FILE ="ADOVBS.INC"->
>
> SET objCmd=Server.CreateObject("ADODB.Command")
> objCmd.ActiveConnection = "DSN=BOLREP;UID=bolrep;PWD=repbol"
> objCmd.CommandType=adCmdStoredProc ******ESTA SUPUESTAMENTE ES LA
> LINEA 65*****
> objCmd.CommandText="CommercialSummary"
> set



objParam1=objcmd.CreateParameter("gest_act",adChar,adParamInput,6,"200306")
> set



objParam2=objcmd.CreateParameter("gest_ant",adChar,adParamInput,6,"200305")
> set


objParam3=objcmd.CreateParameter("mes_ant",adInteger,adParamInput,,5)
> set
objParam4=objcmd.CreateParameter("ano_ant",adInteger,adParamInput,,2003)
> set


objParam5=objcmd.CreateParameter("mes_act",adInteger,adParamInput,,6)
> set
objParam6=objcmd.CreateParameter("ano_act",adInteger,adParamInput,,2003)
> set


objParam7=objcmd.CreateParameter("cod_reg",adChar,adParamInput,2,"01")
> set


objParam8=objcmd.CreateParameter("cod_age",adChar,adParamInput,2,"04")
>
> objCmd.Parameters.Append objParam1
> objCmd.Parameters.Append objParam2
> objCmd.Parameters.Append objParam3
> objCmd.Parameters.Append objParam4
> objCmd.Parameters.Append objParam5
> objCmd.Parameters.Append objParam6
> objCmd.Parameters.Append objParam7
> objCmd.Parameters.Append objParam8
>
> objCmd.Execute
>
>
> tambien intente con la conexion de este tipo!!!****************
>
> set objConexion=server.CreateObject("ADODB.Connection")
> strConex="PROVIDER=SQLOLEDB;UID=bolrep;PWD=repbol;SERVER=" &
> application("server") & ";DATABASE=BOLREP"
> objconexion.Open strConex
> objCmd.ActiveConnection=objconexion
> objCmd.CommandType=adCmdStoredProc ******ESTA SUPUESTAMENTE ES LA
> LINEA 65 Y SIGUE MAL EN ESTA LINEA*****
> objCmd.CommandText="CommercialSummary"
> set



objParam1=objcmd.CreateParameter("gest_act",adChar,adParamInput,6,"200306")
> set



objParam2=objcmd.CreateParameter("gest_ant",adChar,adParamInput,6,"200305")
> set


objParam3=objcmd.CreateParameter("mes_ant",adInteger,adParamInput,,5)
> set
objParam4=objcmd.CreateParameter("ano_ant",adInteger,adParamInput,,2003)
> set


objParam5=objcmd.CreateParameter("mes_act",adInteger,adParamInput,,6)
> set
objParam6=objcmd.CreateParameter("ano_act",adInteger,adParamInput,,2003)
> set


objParam7=objcmd.CreateParameter("cod_reg",adChar,adParamInput,2,"01")
> set


objParam8=objcmd.CreateParameter("cod_age",adChar,adParamInput,2,"04")
>
> objCmd.Parameters.Append objParam1
> objCmd.Parameters.Append objParam2
> objCmd.Parameters.Append objParam3
> objCmd.Parameters.Append objParam4
> objCmd.Parameters.Append objParam5
> objCmd.Parameters.Append objParam6
> objCmd.Parameters.Append objParam7
> objCmd.Parameters.Append objParam8
>
> objCmd.Execute
>
> ****este es el error******
> Error Type:
> ADODB.Command (0x800A0BB9)
> Arguments are of the wrong type, are out of acceptable range, or are
> in conflict with one another.
>
>
> muchas gracias xime






-
-



begin 666 033102bigblink_1_prv.gif
M1TE&.#EA%@`6`-4_`,VF#/W]_.CCT[QK2?W4`/_;`-C-K>>U`LV/$5]#!/JX
M">3;R_5H)L.P;4HM!/_B`/O.`-%E)/B8%+F5+:,N\BHQH`KV09;&5`#8<
M`?7R[/#MY/-[';+J 2OGV\V971/BN"^[HW8M\:;^A)='&H-%Y%O6_`?KY
M]OG%`M:ZKMNK!*1\`LNGEO?(`/B"'??T\/FE$.5:*..^`8]X/,%[*<[ E7Y0
M!/W&"-O.Q<U9*LFBC?W+"/'/`N2+$____R'_"TY%5%-#05!%,BXP`P$````A
M^00%'@`_`"P`````%@`6```&_\"?</@+!%"HSP=E)#J%1HW 8*M42HL-\SG\
M+"H=$F"U`I :ADW@&0!E.H"3"P))9#*KLV!-I&0F!W,0!(0$#@D0``U[0P$E
M@(($!9.4!(D-:D(;- DL!X,%#P\8+!8]!98D!BA%?GL)DJ(.>P$)##2(_
M'PXY;@X0H0\)M1DC,) L_&PX4P"[##L;(R@`E/R(3&2@;%K'$'T:VEBX`
M%=L3%@D6,^+$"1BH. H*Z<X>/C$**<*B`A;@H2"&! D(;/S0<,&$A!@G0 7L
M<2"$A!<8:QCX@:)%! X2_(&:Y "!! X,4GIH%F#!``<F0D0<-",#+0
ML4.#D%</'C/<.#"#A8,,%A2<3"ECP (^`40TO''GT(H4%E$V5;$%BH +"%:<
M&#LV:X0!*C3P:22BPH0Q!^*N0%#(2@^-)\.:-2LY1)@1&L@]
M"0(`(?D$!2@`/P`L`P`!``X`"P``!CW GW X3&0R"Z)RZ$@(888E9#K[?4"9
II9! ^(TR*ZUX6"B7'V-S66SI%0@)#'H)R `LB=E\.<O$"V,_9D)!`#L`
`
end
email Siga el debate Respuesta Responder a este mensaje
Ads by Google
Help Hacer una pregunta AnteriorRespuesta Tengo una respuesta
Search Busqueda sugerida