the TmpLedgerConsDimensionValueItem is an inmemory table which will create a file when exceeding 128kb. It will do this on the tier it is running (so either client or server side). You could:
find out what tier is used, if client then run it on server.
or change the tabletype from inmemory to tempdb. then your SQL will be used instead of your memory.