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