N
news
(Posting to: public.sqlserver & public.asp.general)
Please someone help.
I have ran out of options, nothing I try, and I have tried a lot.
It is like everything that I through at my SQL Server 2005 Database gets
thrown back at me.
This is the [Error] that I am receiving.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ADODB.Command error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
test.asp, line 22
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This is the code(s) that I have tried.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Set sqlGal = Server.CreateObject("ADODB.Command")
sqlGal.ActiveConnection=objConn
sqlGal.Prepared = true
sqlGal.CommandText = "SELECT GalID, MemID, GalName, GalPath, GalDate FROM
Gal WHERE MemID=@MemID"
sqlGal.Parameters.Append sqlGal.CreateParameter("@MemID", ad_Int,
adParamInput, , sqlID) ' This line gets the error
Set rsGal = CreateObject("ADODB.Recordset")
set rsGal = sqlGal.execute
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This is the other code that I have tried as well. (This was just a test
script)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
<%
Set objCommand = Server.CreateObject("ADODB.Command")
objCommand.ActiveConnection=objConn
objCommand.Prepared = true
With objCommand
.CommandText = "usp_RecordsetAndOutputParams"
.Parameters.Append .CreateParameter("@GalName", advarchar, adParamOutput,
255) ' this line gets the same error.
.Parameters.Append .CreateParameter("@GalPath", advarchar, adParamOutput,
255)
End With
%>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Thanks in advance for any help.
Wayne
Please someone help.
I have ran out of options, nothing I try, and I have tried a lot.
It is like everything that I through at my SQL Server 2005 Database gets
thrown back at me.
This is the [Error] that I am receiving.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ADODB.Command error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in
conflict with one another.
test.asp, line 22
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This is the code(s) that I have tried.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Set sqlGal = Server.CreateObject("ADODB.Command")
sqlGal.ActiveConnection=objConn
sqlGal.Prepared = true
sqlGal.CommandText = "SELECT GalID, MemID, GalName, GalPath, GalDate FROM
Gal WHERE MemID=@MemID"
sqlGal.Parameters.Append sqlGal.CreateParameter("@MemID", ad_Int,
adParamInput, , sqlID) ' This line gets the error
Set rsGal = CreateObject("ADODB.Recordset")
set rsGal = sqlGal.execute
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This is the other code that I have tried as well. (This was just a test
script)
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
<%
Set objCommand = Server.CreateObject("ADODB.Command")
objCommand.ActiveConnection=objConn
objCommand.Prepared = true
With objCommand
.CommandText = "usp_RecordsetAndOutputParams"
.Parameters.Append .CreateParameter("@GalName", advarchar, adParamOutput,
255) ' this line gets the same error.
.Parameters.Append .CreateParameter("@GalPath", advarchar, adParamOutput,
255)
End With
%>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Thanks in advance for any help.
Wayne