时间:2021-07-01 10:21:17 帮助过:4人阅读
-- 使用前 请修改 老的数据库名称 目前用的是 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
sql脚本判断AM及Mobox的数据库版本
标签:数据库名 bsp var 版本 new declare print file led