i have a stored procedure with a input param
and is used in select stmt . how to cast the param rto varchar
i want to stored insert ip address i taable with type= varchar
but it givs me error
cast(@pIP as varchar(50))
Should work fine
declare @p int set @p=12 select cast(@p as varchar(10))
if still does not work paste the select statement and the exact error
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.