close
  一、先用Vistual Studio Utimate的SQL Schema比對測試機DB和正式機DB差異。
二、與PM討論是否需要停機
三、例如要新增欄位『前台顯示』

alter table [History_DepositLog2] add [t2] nchar(10) null ALTER TABLE [dbo].[History_DepositLog2] ADD CONSTRAINT [DF_History_DepositLog2_t2] DEFAULT ('1') FOR [t2] update [TEST].[dbo].[History_DepositLog2] set t2 = '' where t2 is null alter table [History_DepositLog2] alter column [t2] nchar(10) not null

四、再修改預存,比對後貼上差異執行,即可。
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 amychang2014 的頭像
    amychang2014

    工作需要筆記

    amychang2014 發表在 痞客邦 留言(0) 人氣()