Forum Discussion
Refresh Failure Due to Temp Database Already Existing
- Anonymous1 year ago
We added code to drop the temp table at the start of each source query that we had used temp tables in.
IF OBJECT_ID(N'tempdb..#tTempTableName') IS NOT NULL
BEGIN
DROP TABLE #tTempTableName
ENDAnother solution one of my team mates found was to convert their temp tables to ctes.
This is a work around we implemented but does not adress the core issue.
Hi McGran
I have the same problem with some of my reports, I don't know how to solve it,
I have tried restaring the Gateway, changing the privacy level and changing the name of the Temporary tables
but the problem persist,
Do you solved this problem?
I hope that you can help me
Daniel
- Anonymous1 year agoNot applicable
We added code to drop the temp table at the start of each source query that we had used temp tables in.
IF OBJECT_ID(N'tempdb..#tTempTableName') IS NOT NULL
BEGIN
DROP TABLE #tTempTableName
ENDAnother solution one of my team mates found was to convert their temp tables to ctes.
This is a work around we implemented but does not adress the core issue.