sigh, same situation here. things I have DIY so far: 3 tiered felt cake, silk flower bouquet, will you be my bridesmaid card, save the date card, wedding website, and photobook... and your best friend will be Michael's.... bought a lot of materials from them. things that i have given up to DIY is the invitations because the hotel includes them... I still need to figure out where to tailor my gown and also wedding favors...
there is no direct way or features to do this. google is your friend. see the quote below: SQL Server doesn't really track this information. You would have to use Profiler or a custom tracing mechanism to audit all of the queries. There are some built-in reports in Management Studio that will show you top 10 queries by cpu, i/o etc., and you can also write your own against the new DMVs (which provide much more real-time information than sp_who/sp_who2 etc ). See the following for some ideas:
y*e
5 楼
我看到mm自己做得cards非常非常好看。。 我的婚礼可能会比较简单。。
you ...
【在 o**w 的大作中提到】 : sigh, same situation here. : things I have DIY so far: 3 tiered felt cake, silk flower bouquet, will you : be my bridesmaid card, save the date : card, wedding website, and photobook... : and your best friend will be Michael's.... bought a lot of materials from : them. : things that i have given up to DIY is the invitations because the hotel : includes them... : I still need to figure out where to tailor my gown and also wedding favors...
B*L
6 楼
Thanks!
o*w
7 楼
you can check out michael's for some wedding ideas... or check out martha stewart website for inspirations too! if there is a papersource in your area, check that out too, they have some nice papers and ideas!
as upstairs suggested, and also you can use a log reader good "log reader". not sure if there are any free ones out there, but Quest has one that's pretty good.
select t.[text] as query_last3hours from sys.dm_exec_query_stats s cross apply sys.dm_exec_sql_text (s.sql_handle) t where datediff(hh, last_execution_time , getdate())<1
【在 B*********L 的大作中提到】 : 谢谢!
o*w
11 楼
if you would like to come to HK in may, you are more than welcome to attend our banquet, then you can see the feltcake in real life~~~ haha!
【在 z***y 的大作中提到】 : select t.[text] as query_last3hours from sys.dm_exec_query_stats s : cross apply sys.dm_exec_sql_text (s.sql_handle) t : where datediff(hh, last_execution_time , getdate())<1
y*e
13 楼
Thanks mm! Your wedding is scheduled next year too?
【在 o**w 的大作中提到】 : you can check out michael's for some wedding ideas... : or check out martha stewart website for inspirations too! : if there is a papersource in your area, check that out too, they have some : nice papers and ideas!
B*L
14 楼
太猛了!
【在 z***y 的大作中提到】 : select t.[text] as query_last3hours from sys.dm_exec_query_stats s : cross apply sys.dm_exec_sql_text (s.sql_handle) t : where datediff(hh, last_execution_time , getdate())<1
o*w
15 楼
we actually signed the papers last year, but we still need an actual reception/banquet to do... scheduled to be at home in May of 2010...
【在 y*******e 的大作中提到】 : Thanks mm! : Your wedding is scheduled next year too?
B*L
16 楼
太猛了!
【在 z***y 的大作中提到】 : select t.[text] as query_last3hours from sys.dm_exec_query_stats s : cross apply sys.dm_exec_sql_text (s.sql_handle) t : where datediff(hh, last_execution_time , getdate())<1
j*7
17 楼
Cool. 已经收藏。
【在 z***y 的大作中提到】 : select t.[text] as query_last3hours from sys.dm_exec_query_stats s : cross apply sys.dm_exec_sql_text (s.sql_handle) t : where datediff(hh, last_execution_time , getdate())<1
j*n
18 楼
受教。 LOL
【在 z***y 的大作中提到】 : select t.[text] as query_last3hours from sys.dm_exec_query_stats s : cross apply sys.dm_exec_sql_text (s.sql_handle) t : where datediff(hh, last_execution_time , getdate())<1
One thing we need clear is many DMVs or DMVs were generated internally from processes. So if cmptlevel was set to 80, some of processes had to be adjusted or changed as well.
【在 z***y 的大作中提到】 : One thing we need clear is many DMVs or DMVs were generated internally from : processes. : So if cmptlevel was set to 80, some of processes had to be adjusted or : changed as well.
B*g
24 楼
SELECT h.user_id, s2.username, s1.sql_text, FROM v$active_session_history h, v$sqlarea s1, v$session s2 WHERE h.sample_time > sysdate-1/24 AND h.sql_id = s1.sql_id AND h.user_id = s2.user_id
【在 k***e 的大作中提到】 : oracle里面怎么查过去一小时里run过的所有query? : : from
m*d
25 楼
嘿嘿,有点问题,v$session 如果1秒采样没有遗漏任何sql的话 SELECT sql_text FROM v$sqlarea where sql_id in (select distinct sql_id from v$active_session_history where sample_time > sysdate-1/24); 下面这个sql, 不知道我对 LAST_ACTIVE_TIME理解有没有错 SELECT sql_text FROM v$sqlarea where LAST_ACTIVE_TIME > sysdate-1/24;
【在 B*****g 的大作中提到】 : SELECT h.user_id, : s2.username, : s1.sql_text, : FROM v$active_session_history h, : v$sqlarea s1, : v$session s2 : WHERE h.sample_time > sysdate-1/24 : AND h.sql_id = s1.sql_id : AND h.user_id = s2.user_id
B*g
26 楼
这只是个意思,其实我都不会用v$xxxxx.
【在 m****d 的大作中提到】 : 嘿嘿,有点问题,v$session : 如果1秒采样没有遗漏任何sql的话 : SELECT sql_text : FROM v$sqlarea : where sql_id : in (select distinct sql_id : from v$active_session_history : where sample_time > sysdate-1/24); : 下面这个sql, 不知道我对 LAST_ACTIVE_TIME理解有没有错 : SELECT sql_text
B*g
27 楼
忘了问了,v$session有什么问题?
【在 m****d 的大作中提到】 : 嘿嘿,有点问题,v$session : 如果1秒采样没有遗漏任何sql的话 : SELECT sql_text : FROM v$sqlarea : where sql_id : in (select distinct sql_id : from v$active_session_history : where sample_time > sysdate-1/24); : 下面这个sql, 不知道我对 LAST_ACTIVE_TIME理解有没有错 : SELECT sql_text