当我为我的项目生成我的数据库脚本时,我想管理SQLScript中注释中使用的日期格式。有没有一种方法来指定与SQLServer管理对象脚本一起使用的日期格式
我有我的区域设置设置为澳大利亚格式,但他们似乎被忽视。
Imports Microsoft.SqlServer.Management
...
Dim scr As Smo.Scripter
Dim opt As Smo.ScriptingOptions
...
opt = New Smo.ScriptingOptions
opt.???? = //Is there something that I can set to control the date?
opt.Encoding = Encoding.ASCII
opt.DriAll = True
opt.ClusteredIndexes = True
opt.Default = True
opt.Indexes = True
opt.IncludeHeaders = True
opt.AppendToFile = True
结果在一个脚本的评论看起来像这样...注意日期是美国格式。
/****** Object: Table [dbo].[AAAExampleData] Script Date: 06/17/2009 10:08:38 ******/
SET ANSI_NULLS ON
我知道评论只是为了可读性,但我想完全控制我的输出。
如果这是不可能的,请说出来。
错误提交连接为 https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=467690 – 2009-06-17 03:39:15