腾工(2015-09-11).sql 1.2 KB

123456789101112131415161718
  1. -------------------2015-09-05------------------------
  2. if not exists
  3. (select * from syscolumns where id=object_id('tb_ErpPrinterSet') and name='ps_SmallTicketPrintName')
  4. begin
  5. alter table tb_ErpPrinterSet add ps_SmallTicketPrintName nvarchar(200) NULL
  6. end
  7. IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'tb_ErpPrinterSet', N'COLUMN',N'ps_SmallTicketPrintName'))
  8. EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'小票打印机名称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'tb_ErpPrinterSet', @level2type=N'COLUMN',@level2name=N'ps_SmallTicketPrintName'
  9. GO
  10. if not exists
  11. (select * from syscolumns where id=object_id('tb_ErpPrinterSet') and name='ps_SmallTicketPrintPath')
  12. begin
  13. alter table tb_ErpPrinterSet add ps_SmallTicketPrintPath nvarchar(200) NULL
  14. end
  15. IF NOT EXISTS (SELECT * FROM ::fn_listextendedproperty(N'MS_Description' , N'SCHEMA',N'dbo', N'TABLE',N'tb_ErpPrinterSet', N'COLUMN',N'ps_SmallTicketPrintPath'))
  16. EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'小票打印机路径' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'tb_ErpPrinterSet', @level2type=N'COLUMN',@level2name=N'ps_SmallTicketPrintPath'
  17. GO