ypinformation1:--
---------------------
ypid int,companyname nvarchar(100),othersubcategorys nvarchar(100)
subcategories:-=-
------------------
subcategoryid int
subcategory nvarchar(100)
when user selects subcategorys that ids will be stored in other subcategories column..
when user wants to edit the subcategories i want to display all the subcategories from subcategories table with checkboxes along with his selcted subcategorys will be checked..
iam getting a problem in getting subcategory names..plz check the query
declare @subcategorys nvarchar(100)
set @subcategorys =(select othersubcategories from ypinformation1 where ypid=11)
print @subcategorys
select SubCategory from SubCategories where convert(nvarchar,SubCategoryID) in (@subcategorys)
the subcategories are not dispalying error is convert varchar to int
Regards,
Bhanu Prakash Bysani