In you SQL just write database name as prefix 1 time ,I think in your sql you use prefix more then one
'tempdb..tempdb..#table98E6C6F0x5172x44A6xB93Fx21994202966' c
it should be
'tempdb..#table98E6C6F0x5172x44A6xB93Fx21994202966'
Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/