 IF OBJECT_ID('tempdb..#LookupLinks') IS NOT NULL      DROP TABLE #LookupLinks  CREATE TABLE #LookupLinks(         [SyncID] uniqueidentifier,         [Name] nvarchar(00),         [SQLTable] nvarchar(00)     ) 