20. April 2010 13:35
select o.name, c.column_id, c.name, c.max_Length from bos2009.sys.columns c
join bos2009.sys.objects o on o.object_id = c.object_id
where NOT EXISTS
(select * from bosfood.sys.columns bc where bc.name = c.name)
name column_id name max_Length
Object Tracking 4 Object Key 16
Object Tracking 5 Object Timestamp 8
Object Metadata 4 Metadata 16
Object Metadata 6 User Code 16
Object Metadata 7 Object Key 16
Profile 2 Profile ID 30
Profile 3 Owner SID 119
Profile 5 Role Center ID 4
Profile 6 Default Role Center 1
User Personalization 2 User SID 119
User Personalization 3 Profile ID 30
Profile Metadata 2 Profile ID 30
Profile Metadata 3 Page ID 4
Profile Metadata 4 Personalization ID 40
Profile Metadata 7 Page Metadata Delta 16
User Metadata 2 User SID 119
User Metadata 3 Page ID 4
User Metadata 4 Personalization ID 40
User Metadata 7 Page Metadata Delta 16
Web Service 3 Service Name 240
Web Service 5 Published 1
Client Add-in 2 Control Add-in Name 220
Client Add-in 3 Public Key Token 20
Page Data Personalization 2 User SID 119
Page Data Personalization 5 Personalization ID 40
Page Data Personalization 6 ValueName 40
Record Link 14 Notify 1
Record Link 15 To User ID 132
$ndo$dbproperty 28 enabledforserver 4
select databaseversionno from bosfood.dbo.[$ndo$dbproperty]
select databaseversionno from bos2009.dbo.[$ndo$dbproperty]
20. April 2010 18:21
20. April 2010 19:02
select o.name, c.object_id, c.column_id, c.name, c.max_Length from bos2009.sys.columns c
join bos2009.sys.objects o on o.object_id = c.object_id
where NOT EXISTS
(select * from bosfood.sys.columns bc
join bosfood.sys.objects bo on bo.object_id = bc.object_id
where c.name = bc.name and bo.name = o.name)