473,386 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

SQL2005

B
Hi,

I have developed a .NET application in ASP.NET 2.0.
The website consists of administration module (sort like CMS) where users
can update data and images that I store into an SQL DB.

One of my tables has a Column Type = Image to store the images into my DB
and I would like to have the possibility to update and insert new images into
my DB associated with the text info the user provides.

When updating or inserting new info, I receive the following error :

"Operand type clash: nvarchar is incompatible with image"

Could someone help me with this ?

Thanks,
Bart
Nov 22 '05 #1
2 2073
how are you updating the Image column?
you should pass image data to stored proc( if you are using stored proc) as
image data type only.

av.
http://avnrao.blogspot.com

"B" wrote:
Hi,

I have developed a .NET application in ASP.NET 2.0.
The website consists of administration module (sort like CMS) where users
can update data and images that I store into an SQL DB.

One of my tables has a Column Type = Image to store the images into my DB
and I would like to have the possibility to update and insert new images into
my DB associated with the text info the user provides.

When updating or inserting new info, I receive the following error :

"Operand type clash: nvarchar is incompatible with image"

Could someone help me with this ?

Thanks,
Bart

Nov 22 '05 #2
1. Create a SQL Server stored procedure that accepts the image type.
2. Have the image converted to a byte array
3. Attach this byte array to the image parameter

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***********************************************
Think Outside the Box!
***********************************************
"B" <B@discussions.microsoft.com> wrote in message
news:6C**********************************@microsof t.com...
Hi,

I have developed a .NET application in ASP.NET 2.0.
The website consists of administration module (sort like CMS) where users
can update data and images that I store into an SQL DB.

One of my tables has a Column Type = Image to store the images into my DB
and I would like to have the possibility to update and insert new images
into
my DB associated with the text info the user provides.

When updating or inserting new info, I receive the following error :

"Operand type clash: nvarchar is incompatible with image"

Could someone help me with this ?

Thanks,
Bart

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: ad | last post by:
The user of my asp.net program use Sql2005 or Sql2005 express as database, both are possible. I have try both version of data base, I found: If I use Sql2005 express, the Data Source in...
2
by: ad | last post by:
Hi, As title, After I install Sql2005 SepCTP, can I install VS2005 Beta2 in the same machine?
1
by: r1100r98 | last post by:
I am having a problem moving the data from a datatable to the SQL2005 table (using VB2005). See code below. The SQL2005 table is empty, the datatable is being filled from a text file, not from...
5
by: Mike | last post by:
I'm having trouble accessing SQL2005 Standard Edition as a second instance of SQL Server where the first instance is SQL 2000 Enterprise Edition. I installed SQL 2005 as a named instance...
9
by: Nemisis | last post by:
Hi everyone, hope your all looking forward to xmas. I am setting up a Sql2005 database on a Windows Server, running Windows Server 2003. The database is going to be accessed via users using an...
8
by: Radu | last post by:
Hi. This code worked fine with SQL2005, but has a problem with SQL2000.... Which one ???? cnSQL = New SqlConnection(System.Configuration.ConfigurationManager.AppSettings("ConnectionString"))...
7
by: Earl | last post by:
Can anyone point me to some good references for coding a Winforms app to trigger replication (merge preferably) on SQL2005? I'm setting up a scenario where I want my app to allow multiple laptops...
2
by: Roger | last post by:
I've got two tables in sql2005 which have an 'ntext' field when I linked the first table in access97 last week using an odbc data source the access-field type was 'memo' when I link the 2nd...
3
by: Michael Schöller | last post by:
Hello, First of all english is not my natural language so please fogive me some bad mistakes in gramatic and use of some vocables :). I have a great problem here. Well I will not use it...
0
by: nic829 | last post by:
Hi, I was upgrading a instance from SQL2000 to SQL2005. During SQL2005 setup I accidently allow the files to be installed in C drive, but I should have them all installed in D drive. My databases...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.