Viewing 15 posts - 16 through 30 (of 34 total)
Hi Dietmar
First thing that immediately I can think of is "Open transactions". If at all a big transaction is going on and not yet comitted or rolled back, then the...
December 31, 2009 at 6:27 am
DECLARE @Date datetime
SELECT @Date = @StartDate
WHILE (@Date <= @EndDate)
BEGIN
-- Process for @Date value
SELECT @Date = dateadd(d,1,@Date)
END
December 31, 2009 at 2:42 am
I believe this approach is fine because it may not make sense manually adding the condition for account type (which would be required if derived column transform done above conditional...
December 28, 2009 at 2:31 am
Here's the query:
select convert(datetime,convert(varchar(100),run_date) + ' '
+ convert(varchar(2),run_time/10000)
+ ':' + convert(varchar(2),(run_time/100) % 100)
+ ':' + convert(varchar(2),run_time % 100))
FROM MSDB..sysjobhistory
Thanks
Satish...
December 22, 2009 at 5:20 am
Wandrag (12/21/2009)
Hi,What about updating the stats for the rest of that tables that's being used?
Yes Could you please update the stats for Products table as well? Also please mention whether...
December 21, 2009 at 6:28 am
CREATE DATABASE statement does not accept variables. You can try dynamic query instead. Check these links:
http://www.umachandar.com/technical/sql6x70scripts/UtilitySPs(6x)/Main9.htm
http://www.databasejournal.com/scripts/article.php/1546441/spcreatedatabaseSQL.htm
Satish
December 21, 2009 at 12:13 am
qiyuef (10/14/2009)
Each process will lock different sets...
October 14, 2009 at 11:18 pm
Kevin.McEvoy (10/12/2009)
Could the clean up process use something like sp_who to find out if a process was currently running or orphaned. I'm always a bit dubious about things...
October 12, 2009 at 7:06 am
mohd.nizamuddin (10/12/2009)
I think Sunny is using this "WHERE 1 = 2" for creating the #LockHelp table only, having no data.
But not sure why, because he has not refer #LockHelp in...
October 12, 2009 at 3:52 am
Hi iermis
Thanks for the comments.
The query you mentioned is only for getting a Table Lock on the table. We dont actually need any records from the table but at the...
October 12, 2009 at 3:16 am
Thanks a lot again Paul for the detailed information. Your every post gets me fresh and new useful tips.:-)
August 10, 2009 at 12:28 am
Hi Paul
I executed the script and it does prove your point. The script is indeed an intelligent and efficient option. It has made me rethink over our XML implementation which...
August 8, 2009 at 7:39 am
Thanks to all for the comments and suggestions. Really appreciate them.
Paul - Thanks for the script. I shall go through it during the weekend and let you know.
August 5, 2009 at 4:52 am
Thanks Santhi
You are awesome. Your statements put together did my job rightaway. Thanks a lot really
Satish
March 2, 2009 at 7:49 am
Viewing 15 posts - 16 through 30 (of 34 total)