Memory Table vs Temporary Table

  • Just wondering if there is any difference (performance or so) between memory table and temporary table when used in stored procedure...

    -- Memory Table

    Declare @MemoryTable table

    (

    ID int identity,

    SomeText varchar(20)

    )

    INSERT INTO @MemoryTable VALUES ('mem')

    SELECT * FROM @MemoryTable

    -- Temporary Table

    CREATE TABLE #TemporaryTable

    (

    ID int identity,

    SomeText varchar(20)

    )

    INSERT INTO #TemporaryTable VALUES ('tmp')

    SELECT * FROM #TemporaryTable

    dusan

  • Just wondering if memory table exceed available memory will SQL / Windows start paging or create a temp table underhood.

    I think there was a previous post saying it's very similar.

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply