Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Query SQL Logs to get time

$
0
0

Hello folks, I am connected to a SQL database using Microsoft SQL Server Management Studio. I am querying ISA logs for traffic by running following query;

select distinct (clientusername)
from webproxylog
where logtime > '2014-03-12'

Now this query returns list of servers accessing the ISA boxes and I can play with dates. What I want is the logs to also show me time, is that possible? Is there something like where logtime > '2014-03-12' AND date, something like that, I am not sure. I am new to SQL so any help will be highly appreciated.



Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>