ник: FORMAT
Если для скл сервера, то запросом тогда так
CREATE PROCEDURE _spYourProcedure
@Id int
AS
Declare @CursorComm nvarchar(300)
Declare @Com nvarchar(300)
DECLARE CurComm CURSOR FOR
SELECT Comm FROM Ваша таблица WHERE IdObj=@Id
SET @Com=''
OPEN CurComm
FETCH NEXT FROM CurComm INTO @CursorComm
WHILE @@FETCH_STATUS = 0
BEGIN
SELECT @Com = @Com + @CursorComm
FETCH NEXT FROM CurComm INTO @CursorComm
END
CLOSE CurComm
DEALLOCATE CurComm
SELECT @Com
/* SET NOCOUNT ON */
RETURN