sql server - Read another's uncommitted session - temp table data -
the thing is..
my sp throws error: string or binary data trunkated.
i traced down code snippet sql profiler find line occurs, need data being inserted.
i added code insert data temp table , thought able read content session (while session still in progress - not committed) , ...
unfortunately select statement hangs nolock hint... under not committed isolation level.
generally data rolledback because of error.
is possible? how it?
temp tables session scoped. if check sys.tables
in tempdb, see #t table caled
#t__________________________________________________________________________________________________________________000000000006
so, couldn't read session.
what's more, temp tables don't survive rollback of transaction. able read data after rollback, use table variable, , after rollback save permanent table can query.
Comments
Post a Comment