hi
i m writting following code
declare @i as numeric(18,0)
declare @sql as varchar(8000)
set @i =4
set @sql ='select top '+@i+' * from dbo.tbl_ls_feed_data'
exec(@sql)
i mgetting error to Error converting data type varchar to numeric.
how to cast @i in this case