‎12-18-2009 03:01 PM
‎01-14-2010 12:34 PM
‎01-14-2010 11:57 AM
‎01-14-2010 11:26 AM
USE [lansweeperdb]
GO
/****** Object: StoredProcedure [dbo].[web30compsearch] Script Date: 12/29/2009 12:53:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[web30compsearch](@comp varchar(80))
AS
SELECT dbo.tblComputers.Computername, dbo.tblOperatingsystem.Description, dbo.tblComputers.Domain, dbo.tblOperatingsystem.Caption,
CAST(dbo.web30ProcessorCapacity.NrOfProcessors AS varchar) + ' * ' + CAST(dbo.web30ProcessorCapacity.MaxClockSpeed AS varchar)
+ ' Mhz' AS Processor, CAST(CAST(CAST(dbo.tblComputersystem.TotalPhysicalMemory AS bigint) / 1024 / 1024 AS NUMERIC) AS varchar)
+ ' MB' AS Memory, dbo.tblComputers.Lastseen AS [Last seen], CASE ISNULL(dbo.tblOperatingsystem.Description, 'NOT SCANNED')
WHEN 'NOT SCANNED' THEN 1 ELSE 0 END AS Notscanned
FROM dbo.tblComputers LEFT OUTER JOIN
dbo.tblCompCustom ON dbo.tblComputers.Computername = dbo.tblCompCustom.Computername LEFT OUTER JOIN
dbo.tblComputersystem ON dbo.tblComputers.Computername = dbo.tblComputersystem.Computername LEFT OUTER JOIN
dbo.web30ProcessorCapacity ON dbo.tblComputers.Computername = dbo.web30ProcessorCapacity.Computername LEFT OUTER JOIN
dbo.tblComputerSystemProduct ON dbo.tblComputers.Computername = dbo.tblComputerSystemProduct.Computername LEFT OUTER JOIN
dbo.tblOperatingsystem ON dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername
WHERE (dbo.tblComputers.Domain LIKE @comp + '%') OR
(dbo.tblOperatingsystem.Description LIKE @comp + '%') OR
(dbo.tblComputers.Computername LIKE @comp + '%') OR
(dbo.tblComputerSystemProduct.IdentifyingNumber = @comp) OR
(ISNULL(dbo.tblCompCustom.BarCode, '') LIKE @comp + '%')
ORDER BY dbo.tblComputers.Computername
‎01-14-2010 10:50 AM
‎12-29-2009 01:52 PM
USE [lansweeperdb]
GO
/****** Object: StoredProcedure [dbo].[web30compsearch] Script Date: 12/29/2009 12:53:21 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[web30compsearch](@comp varchar(80))
AS SELECT tblComputers.Computername, tblOperatingsystem.Description, tblComputers.Domain, tblOperatingsystem.Caption,
CAST(web30ProcessorCapacity.NrOfProcessors AS varchar) + ' * ' + CAST(web30ProcessorCapacity.MaxClockSpeed AS varchar) + ' Mhz' AS Processor,
CAST(CAST(CAST(tblComputersystem.TotalPhysicalMemory AS bigint) / 1024 / 1024 AS NUMERIC) AS varchar) + ' MB' AS Memory,
tblComputers.Lastseen AS [Last seen], CASE ISNULL(dbo.tblOperatingsystem.Description, 'NOT SCANNED')
WHEN 'NOT SCANNED' THEN 1 ELSE 0 END AS Notscanned
FROM tblComputers INNER JOIN
tblCompCustom ON tblComputers.Computername = tblCompCustom.Computername LEFT OUTER JOIN
tblComputersystem ON tblComputers.Computername = tblComputersystem.Computername LEFT OUTER JOIN
web30ProcessorCapacity ON tblComputers.Computername = web30ProcessorCapacity.Computername LEFT OUTER JOIN
tblComputerSystemProduct ON tblComputers.Computername = tblComputerSystemProduct.Computername LEFT OUTER JOIN
tblOperatingsystem ON tblComputers.Computername = tblOperatingsystem.Computername
WHERE (tblComputers.Domain LIKE @comp + '%') OR
(tblOperatingsystem.Description LIKE @comp + '%') OR
(tblComputers.Computername LIKE @comp + '%') OR
(tblComputerSystemProduct.IdentifyingNumber = @comp) OR
(tblCompCustom.BarCode LIKE @comp + '%')
ORDER BY tblComputers.Computername
‎12-29-2009 11:39 AM
‎12-29-2009 09:53 AM
USE [lansweeperdb]
GO
/****** Object: StoredProcedure [dbo].[web30searchsoftware] Script Date: 12/29/2009 08:46:44 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[web30searchsoftware](@soft nvarchar(500))
AS SELECT Software, Version, Total
FROM dbo.web30repsoftwaretotal
WHERE (Software LIKE @soft + '%') OR
(Software LIKE '%' + @soft + '%')
ORDER BY Software, Version
‎12-18-2009 10:35 PM
‎12-18-2009 03:30 PM
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now