Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
DECLARE @astr_Item_Ids VARCHAR(8000)DECLARE @astr_Item_Ids_Temp VARCHAR(8000)SET @astr_Item_Ids ='1233,2345,2315,3453,3454,3453,3453,9999';I want the Answer in @astr_Item_Ids_Temp Like '1233,2345,2315,3453,3454,3453,3453,'Avoid the Values After The Last Comma