Welcome Guest, you are in: Anmelden

CP Wiki

RSS RSS

Navigation



  1. Administration

Suche im wiki
»
Domain per TSQL ermitteln

DECLARE @Domain varchar(100), @key varchar(100)

SET @key = 'SYSTEM\ControlSet001\Services\Tcpip\Parameters\' EXEC master..xp_regread @rootkey='HKEY_LOCAL_MACHINE', @key=@key,@value_name='Domain',@value=@Domain OUTPUT SELECT 'Server Name: '+@@servername + ' Domain Name:'+convert(varchar(100),@Domain)

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam.