use master ;
declare @HostNameAndInstance nvarchar(30)
set @HostNameAndInstance = 'hostName\POC_QA'
exec sp_configure 'Show Advanced Options', 1
GO
RECONFIGURE
GO
exec sp_configure 'Ad Hoc Distributed Queries', 1
GO
RECONFIGURE
GO
--Drop the table if it exists
IF OBJECT_ID('tempdb.dbo.#UsersList') IS NOT NULL
DROP TABLE #UsersList
SELECT * INTO #UsersList
FROM OPENROWSET('SQLNCLI', 'server=hostName\POC_QA;trusted_connection=yes;Initial Catalog=CAS;',
'set fmtonly off exec sp_helplog')
select UserName , RoleName , LoginName , DefDBName , DefSchemaName from #UsersList
Getting the Client IP Address in ASP.NET Core
-
[image: Client Ip Banner]
When I need to pick up the client IP Address in ASP.NET Core I always
forget where to find the connection information.
It's si...
2 weeks ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!