set ANSI_NULLS ON set QUOTED_IDENTIFIER ON go ALTER PROCEDURE [dbo].[RecordManagement_getCollgeLocation] ( @Category nvarchar(100) ) AS Select Location_Name From Location where Loc_ID IN(Select College_ID From Records WHERE (DocumentCategory LIKE '%'+@Category+'%' OR Document_Name LIKE '%'+@Category+'%' OR Document_Number LIKE '%'+@Category+'%'))
Command(s) completed successfully.
Msg 245, Level 16, State 1, Procedure RecordManagement_getCollgeLocation, Line 7 Conversion failed when converting the nvarchar value 'SM ' to data type int.
WHERE
nvarchar
int
WHERE (DocumentCategory LIKE '''%'+@Category+'%''' OR Document_Name LIKE '''%'+@Category+'%''' OR Document_Number LIKE '''%'+@Category+'%''')
WHERE (DocumentCategory LIKE '%'+@Category+'%' OR Document_Name LIKE '%'+@Category+'%' OR Document_Number LIKE '%'+@Category+'%'))
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)