Viewing 15 posts - 31 through 45 (of 106 total)
Hi
so any query which is not part of procedure or function is considered as adhoc?
Dose this means if we have written such queries in our front end applications these...
September 26, 2013 at 5:51 am
Hi All
declare @id int
set @id = 100
select * from xxx where id =@id
if we run this through SSMS , is it considered as adhoc query?
Regrads
September 26, 2013 at 5:13 am
Hi Gail
Thanks. My requirement is to get the last few queries which were ran on a particular DB.
How to find it. Note : these quereies could be form application/procedures/SSMS
Regards
September 22, 2013 at 9:45 pm
Hi Gail
Sorry did not understand your reply.
Regards
September 22, 2013 at 5:53 am
Hi
script for extended event is as follows
CREATE EVENT SESSION [xx] ON SERVER
ADD EVENT sqlserver.sql_statement_recompile(SET collect_object_name=(1),collect_statement=(1)
ACTION(sqlserver.database_id,sqlserver.database_name,sqlserver.session_id,sqlserver.sql_text,sqlserver.username))
WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB,MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=OFF,STARTUP_STATE=OFF)
GO
Regards
September 21, 2013 at 11:14 pm
Thanks.
To chekc it, i kept extended event capturing on and executed the procedure. The sql returned 5 rows as "create procedure...". (from your explanation it must be the...
September 19, 2013 at 3:23 am
I agree with you. but the query given shows create procedure....So what is it means?
September 19, 2013 at 1:29 am
But these quereis are also ran against specific db ( like slect count(*) from xxx) then what does the null db id menas?
September 18, 2013 at 10:53 pm
dear all
with existing settings when i create new procedure by default quoted identifier for this is 1.
created procedure using -
create procedure aa as
print 'sss'
Checked quoted identifier using -
select *...
September 11, 2013 at 12:13 am
chekced it was showing cpu usage more tahn 90% for the sqlserver.exe and the menory ussage was full. We stoped the sql service and restarted then the usage reduced.
This situation...
July 18, 2013 at 2:27 am
out put of the query is
10.50.2550.0 SP1 Express Edition with Advanced Services
July 17, 2013 at 10:02 pm
Thanks. But some times we notics that the server memeory utilization is more then 90%.
How can we check if its due to the SQL db or some other reason. (we...
July 17, 2013 at 2:33 am
folloing link shows maximum memory as 1GB http://msdn.microsoft.com/en-us/library/ms143685(v=sql.105).aspx
July 17, 2013 at 1:30 am
Dear Hanshi
Thanks for your reply. But if you see my query it has got differnt where clasues for the 2 query hence can not use roll up.
There is no performace...
June 27, 2013 at 3:27 am
Viewing 15 posts - 31 through 45 (of 106 total)