microsoft / mssql-scripter

Repository for the new SQL cross-platform command line tools
Other
742 stars 148 forks source link

Option to remove Script Date #267

Closed jeremiahmoree-adot closed 2 years ago

jeremiahmoree-adot commented 2 years ago

We are dumping the schema and comparing to previous dumps. Since the output includes timestamps it looks like every file changed every time. It would be very useful to add an argument such as --no-scriptdate that leaves out all of the Script Dates in the output.

 -/****** Object:  User [##MS_AgentSigningCertificate##]    Script Date: 3/10/2022 10:04:20 AM ******/
 +/****** Object:  User [##MS_AgentSigningCertificate##]    Script Date: 3/10/2022 10:04:31 AM ******/
swoodman commented 2 years ago

I believe the flag you're looking for already exists, try using --exclude-headers.

jeremiahmoree-adot commented 2 years ago

Correct. Thank you.