Viewing 15 posts - 1,156 through 1,170 (of 1,584 total)
March 6, 2012 at 8:55 am
Here's what I use (includes everything that has already been mentioned), I adapted it from an article I read here on SSCCREATE PROC [dbo].[utl_SeeWhatsExecuting]
@Duration int = NULL
AS
/*
exec utl_SeeWhatsExecuting 5000
*/
BEGIN
...
March 5, 2012 at 1:27 pm
To the best of my knowledge SQL Server isn't able to track an external/3rd party application that's calling the stored-procedure, however, it can track the credentials being used that executes...
March 5, 2012 at 1:08 pm
Are you talking about tempdb by chance?
March 5, 2012 at 1:00 pm
kranthi.india123 (3/1/2012)
but that , i can run the scheduled sql job right.automatically,every Time Run scheduled Job so every TRN should...
March 2, 2012 at 7:58 am
Yes "sp_whom2" a modified/better version of "sp_who"
USE [master]
GO
/****** Object: StoredProcedure [dbo].[sp_whom2] Script Date: 03/02/2012 08:30:50 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO
CREATE PROCEDURE [dbo].[sp_whom2] --- 1995/11/03 10:16
@SPID...
March 2, 2012 at 7:33 am
Wow I can honestly say I've never encountered this and usually simply rename the object via SSMS...I am so glad I came across this post!
March 1, 2012 at 9:33 pm
Doesn't the query I posted above give you the results you are looking for?
I don't believe there is a way to access/schedule the SSRS report that's built in to MSSQL...
March 1, 2012 at 2:44 pm
I'll get back with you shortly with an example
March 1, 2012 at 5:40 am
Well said. Yes I was only sharing with the forum the bizarre code I had come across. Once again, not something I would have written or implementee but...
February 29, 2012 at 5:41 pm
Agree with Sean...
You could create some sort of a Lookup table to store details about each client ie.(ServerName, DBName, Schema, etc) and then create queries that use the lookup information...
February 29, 2012 at 8:59 am
okbangas (2/29/2012)
declare @affected int;
set @affected = 1
while @affected > 0
begin
update top 50000
(...)
where <condition matched by non-updated rows only>
set @affected = @@rowcount;
end
Placing the transaction inside the WHILE loop would ensure...
February 29, 2012 at 8:48 am
I checked with the developer who wrote it and apparently this particular syntax is used to delete duplicates from the table so a unique clustered index can be created. ...
February 29, 2012 at 8:26 am
Can you attached a copy of your execution plan?
February 29, 2012 at 4:32 am
Viewing 15 posts - 1,156 through 1,170 (of 1,584 total)