Skip to content

Settings and activity

1 result found

  1. 24 votes
    Vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    You have left! (?) (thinking…)
    How important is this to you?

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)
    An error occurred while saving the comment
    White commented  · 

    Can I add that I believe what's displayed is not what's actually run? I think? I get the following SQL out after updated an nvarchar(max) column...

    DECLARE @p0 Int = 1
    DECLARE @p1 NVarChar(1000) = 'really long string...' -- (first 1000 characters/1610 shown)

    UPDATE [Item]
    SET [Data] = @p1
    WHERE [Id] = @p0
    GO

    If this was in fact a nvarchar(1000) variable, wouldn't my data be truncated?