Blog - SQL Procedure Question
Hello,
When I run the following SQL procedure I get this error:
"Implicit conversion from data type ntext to varchar is not allowed. Use the CONVERT function to run this query."
How can I use CONVERT in this procedure?
CREATE PROCEDURE sprocBlogEntryUpdateSingleItem
@id int,
@title nvarchar(200),
@body nvarchar(4000),
@categoryId int,
@datePublished datetime,
@PostedBy varchar(20),
@searchkeywords varchar(200),
@blogsummary varchar(300)
AS
UPDATE
BlogEntry
SET
Title = @title,
Body = @body,
CategoryId = @categoryId,
DatePublished = @datePublished,
PostedBy = @PostedBy,
searchkeywords = @searchkeywords,
blogsummary = @blogsummary
WHERE
Id = @id
GO
|