這可能是一個非常簡單的問題,但:SSIS填充日期時間格式:「HH毫米SS NNN CC月日」
我試圖命名文件TestSheet.hhmmssnnnccyymmdd
我成立在SSIS在表達式生成器的變量和我的表達被設置爲:
@[User::str_Var] + Right("0" + (DT_STR,4,1252) DatePart("hh",getdate()),2) + Right("0" + (DT_STR,4,1252) DatePart("mi",getdate()),2) + Right("0" + (DT_STR,4,1252) DatePart("ss",getdate()),2) + ".txt"
,我知道:
Right("0" + (DT_STR,4,1252) DatePart("m",getdate()),2) + Right("0" + (DT_STR,4,1252) DatePart("d",getdate()),2)
能不能給我 「mm」 和DD」
我的問題是..我有 「HH毫米SS毫米DD」,我如何才能 「nnnccyy」?
我很無知,nnn代表什麼? – billinkc
nnn代表納秒。 – ROTHUSTLE