I am trying to put the contents of a text box into an SQL server ntext field with an UPdate statement and parameters
<code>
...
cmdUpdate.commandtext = "Update table SET comments=@comments"
cmdUpdate.Parameters.Add("@comments",System.Data.SqlDbType.NText, 16).Value = txtcomments.Text
conn.Open()
cmdUpdate.ExecuteNonquery()
</code>
Nothing gets put into the field. What am I doing wrong?
TIA
Oakgrove Computer Grouper
Lansing, MI
<code>
...
cmdUpdate.commandtext = "Update table SET comments=@comments"
cmdUpdate.Parameters.Add("@comments",System.Data.SqlDbType.NText, 16).Value = txtcomments.Text
conn.Open()
cmdUpdate.ExecuteNonquery()
</code>
Nothing gets put into the field. What am I doing wrong?
TIA
Oakgrove Computer Grouper
Lansing, MI