Question
Insert into nText field on SQL Server
Hi,
I'm trying to use the 'insert' behaviour in Dreamweaver 8 to insert a field
into an 'ntext' type field in SQL Server 2000. I get the following error :
Application uses a value of the wrong type for the current operation.
I know this refers to the following line in which I have the wrong parameter
type :
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param4", 201, 1,
4000, Request.Form("Answer"))
However, parameter 201 is a long string value and it's been given a maximum
length of 4000. How can I change this so it will be complatible with a
'text' format in SQL Server?
I'm trying to use the 'insert' behaviour in Dreamweaver 8 to insert a field
into an 'ntext' type field in SQL Server 2000. I get the following error :
Application uses a value of the wrong type for the current operation.
I know this refers to the following line in which I have the wrong parameter
type :
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param4", 201, 1,
4000, Request.Form("Answer"))
However, parameter 201 is a long string value and it's been given a maximum
length of 4000. How can I change this so it will be complatible with a
'text' format in SQL Server?