ALTER FUNCTION S_GetComputerName()
RETURNS varchar(50)
AS
BEGIN
declare @returnvalue varchar(50)
select @returnvalue = hostname from master..sysprocesses where spid = @@spid
Return(Rtrim(@returnvalue))
END
MSSQL中取得计算机名
最新推荐文章于 2022-11-24 08:54:34 发布