Msg 8152, Level 16, State 30, Procedure dbo.PruneDeletedHosts, Line 25 [Batch Start Line 2] String or binary data would be truncated. The statement has been terminated.
SELECT * INTO #Temphostmain_bak FROM hostmain_bak
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[hostmain]') AND type in (N'U')) DROP TABLE [dbo].[hostmain] GO
[users] [nvarchar](max) NULL,
SELECT * INTO hostmain_bak FROM #Temphostmain_bak
exec dbo.PruneDeletedHosts