Skip to content Skip to sidebar Skip to footer

Concatenating 2 Rtf Fields Stored In Blobs With A Sql Script

I need to concatenate 2 rtf fields stored in 2 separate blob columns (actually they are nvarbinary(max) in sql server). I need to do this with a database script, not in an applicat

Solution 1:

If you can cleanly remove the headers and fix any CRC/length issues, then a simply string concat (which is valid for binary types too) will do it

eg

NewFixedHeader + HeaderlessnNarbinarymaxcolumn1 + HeaderlessNvarbinarymaxcolumn2

Although, this isn't really a SQL thing at all...

Post a Comment for "Concatenating 2 Rtf Fields Stored In Blobs With A Sql Script"