‎01-21-2010 04:42 AM
USE [lansweeperdb]
GO
/****** Object: View [dbo].[web30repNoNAVCorp] Script Date: 01/21/2010 13:31:15 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[web30repNoNAVCorp]
AS
SELECT DISTINCT TOP 100 PERCENT
dbo.tblfileversions.Computername AS Computer,
dbo.tblComputers.Username,
dbo.tblComputers.Domain
from dbo.tblfileversions inner join dbo.tblcomputers on
dbo.tblfileversions.ComputerName = dbo.tblcomputers.ComputerName
where dbo.tblfileversions.FilePathFull like '%vpc32%'
and dbo.tblfileversions.computername not in (
select dbo.tblfileversions.computername
from dbo.tblfileversions
where dbo.tblfileversions.FilePathFull like '%vpc32%'
and dbo.tblfileversions.found = 1
)
USE [lansweeperdb]
GO
/****** Object: View [dbo].[web30repNAVCorpVer] Script Date: 01/21/2010 13:32:18 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[web30repNAVCorpVer]
AS
SELECT TOP 100 PERCENT
dbo.tblfileversions.Computername AS Computer,
dbo.tblfileversions.FileVersion,
dbo.tblComputers.Username,
dbo.tblComputers.Domain
from dbo.tblfileversions inner join dbo.tblcomputers on
dbo.tblfileversions.ComputerName = dbo.tblcomputers.ComputerName
where dbo.tblfileversions.FilePathFull like '%vpc32%' and dbo.tblfileversions.found = 1
USE [lansweeperdb]
GO
/****** Object: View [dbo].[web30repNAVCorpOldVer] Script Date: 01/21/2010 13:33:46 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[web30repNAVCorpOldVer]
AS
SELECT TOP 100 PERCENT
dbo.tblfileversions.Computername AS Computer,
dbo.tblfileversions.FileVersion,
dbo.tblComputers.Username,
dbo.tblComputers.Domain
from dbo.tblfileversions inner join dbo.tblcomputers on
dbo.tblfileversions.ComputerName = dbo.tblcomputers.ComputerName
where dbo.tblfileversions.FilePathFull like '%vpc32%'
and dbo.tblfileversions.found = 1
and (not (dbo.tblfileversions.fileversion like '10.1.7.7000'))
order by dbo.tblfileversions.fileversion
USE [lansweeperdb]
GO
/****** Object: View [dbo].[web30repNAVCorpDefVer] Script Date: 01/21/2010 13:36:37 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[web30repNAVCorpDefVer]
AS
SELECT TOP 100 PERCENT
dbo.tblregistry.Computername AS Computer,
RIGHT (dbo.tblregistry.value, 12) AS DefVer,
dbo.tblComputers.Username,
dbo.tblComputers.Domain
from dbo.tblregistry inner join dbo.tblcomputers on
dbo.tblregistry.Computername = dbo.tblcomputers.Computername
where dbo.tblregistry.valuename like '%defwatch%'
USE [lansweeperdb]
GO
/****** Object: View [dbo].[web30repNAVCorpDefOldVer] Script Date: 01/21/2010 13:38:05 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[web30repNAVCorpDefOldVer]
AS
SELECT TOP 100 PERCENT
dbo.tblregistry.Computername AS Computer,
RIGHT (dbo.tblregistry.value, 12) AS DefVer,
dbo.tblComputers.Username,
dbo.tblComputers.Domain
from dbo.tblregistry inner join dbo.tblcomputers on
dbo.tblregistry.Computername = dbo.tblcomputers.Computername
where dbo.tblregistry.valuename like '%defwatch%'
and
RIGHT (dbo.tblregistry.value, 12) not in
( select max((RIGHT (dbo.tblregistry.value, 12)))
from dbo.tblregistry
where dbo.tblregistry.valuename like '%defwatch%')
‎07-03-2023 11:52 AM
Hello everyone,
Due to the age of this post, it has been archived. Please feel free to start a new post if you wish to continue to discuss this topic.
Thank you for understanding.
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now