Skip to content

Commit

Permalink
Update variousCode.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
rpoche authored Oct 2, 2023
1 parent d545de9 commit 891d808
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions variousCode.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1183,3 +1183,17 @@ select --top 10
, shape.STY as y2
--into temp02
from [GIS].[dbo].[STRUCT83]

-----FIND server name and info
SELECT @@SERVERNAME;
SELECT SERVERPROPERTY('MachineName')
select HOST_NAME()

SELECT dec.local_net_address
FROM sys.dm_exec_connections AS dec
WHERE dec.session_id = @@SPID;

SELECT CONNECTIONPROPERTY('local_net_address') AS [IP]

exec xp_cmdshell 'ipconfig'

0 comments on commit 891d808

Please sign in to comment.