-- 使用前 请修改 老的数据库名称 目前用的是 OIOrg.dbo AM8.dbo OIFile.dbo DMS.dbo
declare @OIOrgDBVer varchar(40)
declare @AMDBVer varchar(40)
declare @OIFileDBVer varchar(40)
declare @DMSDBVer varchar(40)
select @OIOrgDBVer = ‘OIOrgDB ‘ +(select S_C1 from OIOrg.dbo.OI_ORG_DBVER) + ‘ New- 20170327‘
select @AMDBVer = ‘AM8DB ‘ +(select S_C1 from AM8.dbo.OI_STK_DBVER) + ‘ New- 20170509‘
select @OIFileDBVer = ‘OIFileDB ‘ +(select S_C1 from OIFile.dbo.OI_FILE_DBVER) + ‘ New- 20151106‘
select @DMSDBVer = ‘DMSDB ‘ +(select S_C1 from DMS.dbo.OI_DMS_DBVER) + ‘ New- 20170601‘
print ‘列出目前所有数据库版本日期‘
print @OIOrgDBVer
print @AMDBVer
print @OIFileDBVer
print @DMSDBVer
时间: 2024-10-05 03:15:17