The only way I see you getting this error with this table definition is if you previously had a large fixed-width column that has since been deleted.
CREATE TABLE [dbo].[Attachments] ( [Id] int IDENTITY(1,1) NOT NULL, [FileName] nvarchar(255) NOT NULL, [Attachment] varbinary(max) NOT NULL, Filler char(8000), Filler2 char(49) ); ALTER TABLE [dbo].[Attachments] DROP COLUMN Filler,Filler2 INSERT INTO [dbo].[Attachments] ([FileName],[Attachment]) VALUES ('Foo',0x010203)
What gives
Msg 511, Level 16, State 1, Line 12 It is not possible to create a line of size 8075 which is larger than the allowable maximum size of line 8060.
If so, try rebuilding the table.
ALTER TABLE [dbo].[Attachments] REBUILD
source share