Ask a Question related to ASP Database, Design and Development.
-
Christian Perthen #1
param.type issue with Store procedure
Hi,
I am getting following error
Microsoft OLE DB Provider for SQL Server error '80040e07'
Operand type clash: nchar is incompatible with image
When using
....
Set ThumbParam = Server.CreateObject("adodb.parameter")
ThumbParam.Name = "image_thumb"
ThumbParam.Type = 128 ' adBinary
ThumbParam.Value = ThumbFile.Binary
ThumbParam.Size = ThumbFile.Size
Command.Parameters.Append ThumbParam
....
The datatype for @image_thumb is image in the SPROC.
I assume the type parameter is wrong. Where can I find a list of the types.
Thanks in advance
Christian
Christian Perthen Guest
-
Store Procedure Oracle
Hello, I have a problem for access with store procedure on oracle with a JDBC driver for oracle from Oracle. Somebody would have a solution to do... -
Return value from store procedure
http://www.adopenstatic.com/faq/SprocsAndParameters.asp Cheers Ken "Marcin" <guzio77@poczta.onet.pl> wrote in message... -
ALTER and UPDATE in store procedure
> How come SQL skip running the ALTER TABLE command Nothing is executing either command. The parser is checking the existing table, while... -
Store Procedure plus parameter where condition..
Hi, I am new programming in SQL Serever, and, I need to write a STORE PROCEDURE that recives a parameter to be used in the where statement,... -
Store Procedure Help
Comments embedded. Aaron Rouse wrote: I sure hope you don't have a lot of records in LOCATIONS_DTL. Are you really storing *every*... -
oj #2
Re: param.type issue with Store procedure
This might help:
[url]http://support.microsoft.com/default.aspx?scid=kb;EN-US;q258038[/url]
--
-oj
RAC v2.2 & QALite!
[url]http://www.rac4sql.net[/url]
"Christian Perthen" <cperthen@dreamactive.com> wrote in message
news:ebKoZTkgDHA.2748@TK2MSFTNGP11.phx.gbl...types.> Hi,
>
> I am getting following error
>
> Microsoft OLE DB Provider for SQL Server error '80040e07'
> Operand type clash: nchar is incompatible with image
>
> When using
> ...
> Set ThumbParam = Server.CreateObject("adodb.parameter")
> ThumbParam.Name = "image_thumb"
> ThumbParam.Type = 128 ' adBinary
> ThumbParam.Value = ThumbFile.Binary
> ThumbParam.Size = ThumbFile.Size
> Command.Parameters.Append ThumbParam
> ...
>
> The datatype for @image_thumb is image in the SPROC.
>
> I assume the type parameter is wrong. Where can I find a list of the>
>
> Thanks in advance
> Christian
>
>
oj Guest
-
Bob Barrows #3
Re: param.type issue with Store procedure
Christian Perthen wrote:
[url]http://www.able-consulting.com/ADODataTypeEnum.htm[/url]> Hi,
>
> I am getting following error
>
> Microsoft OLE DB Provider for SQL Server error '80040e07'
> Operand type clash: nchar is incompatible with image
>
> When using
> ...
> Set ThumbParam = Server.CreateObject("adodb.parameter")
> ThumbParam.Name = "image_thumb"
> ThumbParam.Type = 128 ' adBinary
> ThumbParam.Value = ThumbFile.Binary
> ThumbParam.Size = ThumbFile.Size
> Command.Parameters.Append ThumbParam
> ...
>
> The datatype for @image_thumb is image in the SPROC.
>
> I assume the type parameter is wrong. Where can I find a list of the
> types.
>
You may also benefit from my stored procedure code generator available at:
[url]http://www.thrasherwebdesign.com/index.asp?pi=links&hp=links.asp&c=&a=clear[/url]
I'm not sure, but you might have to use AppendChunk to set the parameter's
value.
Bob Barrows
Bob Barrows Guest



Reply With Quote

