When I create a sql statement i usually add a comment header on the top like this
-- =============================================
-- Author: *******
-- Create Date: *******
-- Description: *******
-- =============================================
ALTER VIEW ***.***
AS
--something
But whenever i run it Datagrip cuts out the Comment at the top. Is there a setting that i could disable to keep it from doing this?
I looked through all the settings that alter how comments behave aswell as the sql formatter.
1条答案
按热度按时间disho6za1#
set For selection execute to Exactly as one statement and select a whole query before execution. Then your comments will be in db. Comments-lost-when-saving-View-in-MS-SQL-Server