با سلام
دستور

CREATE TABLE #MyTempTable ([CodeBolokk] char(7) not NULL,
[CodeMabarr] char(12) not NULL,BaiganyID smallint not null)
select CodeMabar from BolokMabar where CodeBolok=#MyTempTable.CodeBolokk

خطای

The multi-part identifier "#MyTempTable.CodeBolokk" could not be bound.

علت را در چه میدانید؟