When I try to select global temp table from win form application then I am able to read the table from any number of client, when I do the same from WCF service hosted in windows service, I am getting error saying that Invalid object name '##MyTempTable'.
At the same time I am able to select the table from winform with the same piece of code, will anyone explain me what could be possible reasons?
- SP is called from the data adapter dll
- Data Adapter (WCF) service loads this ada adaptor dll when service is started
- Another WCF service requests DA service for data to show the data in web client
- DA service is hosted in windows service as NT AUTHORITY\NetworkService
- Connection string used in both winform and dll is "conString = "Data Source=.\;" + "Initial Catalog=myDB;" + "Integrated Security=SSPI;";" I tried to pass Sa credential also in the connection string, still same behavior.
What ever I am trying to do from the dll can be done from the win form and I am not able to do from the dll used by WCF service.