Check if the synonym exists before the insert/update. IF EXISTS (SELECT * FROM sys.synonyms WHERE name = 'VirtualTable') PRINT 'do your stuff'.
確定! 回上一頁