Install log parser Create a bat file like (change server accordingly): echo off cls c: cd "c:\Program Files\Log Parser 2.2\" logparser.exe file:TSLoginsDetails_More.sql?source=\\server\Security -o:DATAGRID Create a sql file like : SELECT timegenerated, EXTRACT_TOKEN(Strings,0,'|') AS User, EXTRACT_TOKEN(Strings,4,'|') AS ClientName, EXTRACT_TOKEN(Strings,5,'|') AS ClientAddress FROM %Source% WHERE EventID=682 ORDER BY timegenerated desc Run the bat file as admin |
Friday, 30 April 2010
Windows : Trace recent rdp sessions
Posted by
Ook
at
03:42
0
comments
Thursday, 29 April 2010
MS Sql : Ctas = SELECT INTO
In Oracle create table T1 as select * from T1 The equivalent of that in Sql Server is SELECT INTOselect * into T2 from T1 |
Posted by
Ook
at
09:02
0
comments
Labels: Oracle
Wednesday, 28 April 2010
Windows : Audit recent RDP logins
If the login/logoff is being audited in group policy (default?)
|
Posted by
Ook
at
06:29
0
comments
Monday, 26 April 2010
Excel: Worksheet splitter vb
Sub SalesmanToSheet() |
Posted by
Ook
at
07:35
0
comments
Thursday, 22 April 2010
WIndows : Stop Robocopy trying forever
robocopy srcDir destDir /R:2 /W:10 /MIR' retry and wait between attempts - default is 1million and 30 seconds |
Posted by
Ook
at
07:53
0
comments
SQL Server: Listing sessions in 2000
SELECT DB_NAME(dbid) as 'Database Name', COUNT(dbid) as 'Total Connections' FROM master.dbo.sysprocesses WITH (nolock) WHERE dbid > 0 GROUP BY dbid SELECT DB_NAME(dbid) as 'Database Name', a.* FROM master.dbo.sysprocesses a WITH (nolock) WHERE dbid > 0 |
Posted by
Ook
at
01:21
0
comments
Subscribe to:
Posts (Atom)