And where is the relation to SQL Server Database Engine, the subject of this forum?
You should post you question to a more related forum. Unfortunatly I can't guess what you are doing and where the problem occurs, so I can't suggest a better forum for our question.