cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
t2support
Engaged Sweeper
Dear Lansweeper Developer,

Can i use unicode query in web interface ? (Like type chinese words in Software search)

My system was upgraded 3.5 from 3.2 version. Thanks.
5 REPLIES 5
t2support
Engaged Sweeper
I find solution.

Is modify [dbo].[web30searchsoftware] ? Right ?

Thanks a lot.
Hemoco
Lansweeper Alumni
t2support wrote:
I find solution.

Is modify [dbo].[web30searchsoftware] ? Right ?

Thanks a lot.


Yes, change varchar to nvarchar

ALTER PROCEDURE dbo.web30searchsoftware
(@soft nvarchar(1000))
AS SELECT Software, Version, Total
FROM dbo.web30repsoftwaretotal
WHERE (Software LIKE @soft + '%') OR
(Software LIKE '%' + @soft + '%')
ORDER BY Software, Version
GO

ALTER PROCEDURE dbo.web30softwarepercomputer
(@software nvarchar(1000),
@theversion nvarchar(200))
AS SELECT TOP 100 PERCENT dbo.tblComputers.Computername AS Computer, dbo.tblOperatingsystem.Description, dbo.tblOperatingsystem.Caption AS OS,
dbo.tblComputers.Domain, dbo.tblComputers.Lastseen
FROM dbo.tblComputers INNER JOIN
dbo.tblSoftware ON dbo.tblComputers.Computername = dbo.tblSoftware.ComputerName LEFT OUTER JOIN
dbo.tblOperatingsystem ON dbo.tblComputers.Computername = dbo.tblOperatingsystem.Computername LEFT OUTER JOIN
dbo.tblComputersystem ON dbo.tblComputers.Computername = dbo.tblComputersystem.Computername
WHERE (dbo.tblSoftware.softwareName = @software) AND (ISNULL(dbo.tblSoftware.softwareVersion, '') = @theversion)
ORDER BY dbo.tblComputers.Computername
GO

ALTER PROCEDURE dbo.web30searchuser
(@name nvarchar(300))
AS SELECT dbo.tblADusers.Displayname, dbo.tblADusers.Title, dbo.tblADusers.Company, dbo.tblADusers.Department, dbo.tblADusers.Username,
dbo.tblADusers.Firstname, dbo.tblADusers.Lastname, dbo.tblADusers.Telephone, dbo.tblADusers.email, dbo.tblADusers.Userdomain,
dbo.tblADusers.Mobile, dbo.web30lastlogontop.lastlogon, dbo.web30lastlogontop.Computername
FROM dbo.tblADusers LEFT OUTER JOIN
dbo.web30lastlogontop ON dbo.tblADusers.Username = dbo.web30lastlogontop.lastuser AND
dbo.tblADusers.Userdomain = dbo.web30lastlogontop.lastdomain
WHERE (dbo.tblADusers.Username LIKE @name COLLATE SQL_Latin1_General_Cp1_CI_AI + '%') OR
(dbo.tblADusers.Firstname LIKE @name COLLATE SQL_Latin1_General_Cp1_CI_AI + '%') OR
(dbo.tblADusers.Lastname LIKE @name COLLATE SQL_Latin1_General_Cp1_CI_AI + '%') OR
(dbo.tblADusers.Displayname LIKE @name COLLATE SQL_Latin1_General_Cp1_CI_AI + '%') OR
(dbo.tblADusers.Displayname LIKE '%' + ' ' + @name COLLATE SQL_Latin1_General_Cp1_CI_AI + '%') OR
(dbo.tblADusers.Department LIKE @name COLLATE SQL_Latin1_General_Cp1_CI_AI + '%')
ORDER BY dbo.tblADusers.Displayname
GO
Hemoco
Lansweeper Alumni
This is a confirmed bug and will be fixed in the next update.
t2support
Engaged Sweeper
Hi Lansweeper Develor,

the screenshot like below



Can I type "桌面" (English mean:Desktop) to search software ?
Hemoco
Lansweeper Alumni
Can you post a screenshot of where exactly that you have problems