We can check if #t1
exists using OBJECT_ID('TEMPDB..#t1')
.
But I have also seen OBJECT_ID(N'TEMPDB..#t1')
many times.
I have searched for that but didn't get any answer.Is there any real difference between them?
If there is any difference then which one to use?