SQL Prompt Format removes alias causing ambiguous error
jgonnering
Posts: 36 Bronze 4
in SQL Prompt
when I use Format SQL (using a custom style) on a stored proc, a parameter to a User-Defined Function changes from [c].[ID] to [ID] and when I compile get the error "Ambiguous column name 'ID'.". The strange thing is this only happens on production server which is the exact same SQL version as DEV and QA. So I am thinking is this somehow permission related? I can send you the stored proc and the custom format style file if needed. The SQL Server version is: Microsoft SQL Server 2012 (SP4-GDR) (KB4057116) - 11.0.7462.6 (X64) Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
Comments