删除使用 SSMS 生成的 SQL 脚本中的日期/时间? [英] Remove the date/time in SQL script generated using SSMS?

查看:25
本文介绍了删除使用 SSMS 生成的 SQL 脚本中的日期/时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在 SQL Server 2008 Management Studio 中生成脚本时,它似乎也在脚本中插入了日期/时间.

When I generate scripts in SQL Server 2008 Management Studio, it seems to insert the date/time in the script also.

例如:

USE [AdventureWorks]
GO

/****** Object:  View [dbo].[vw_test]    Script Date: 18/01/2017 3:27:10 PM ******/
SET ANSI_NULLS ON
GO
<rest of script goes here>

我怎样才能删除它?

推荐答案

Tools.. Options.. SQL Server Object Explorer..Scripting

Tools.. Options.. SQL Server Object Explorer..Scripting

可能需要设置Include Descriptive Headers"= false

Probably need to set "Include Descriptive Headers" = false

但是,您的问题不清楚,所以这是一个猜测.

However, your question is unclear so this is a guess.

这篇关于删除使用 SSMS 生成的 SQL 脚本中的日期/时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆