SQL Server Datagrip deletes Comments before statements

l0oc07j2  于 2023-10-15  发布在  其他
关注(0)|答案(1)|浏览(125)

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.

disho6za

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

相关问题