Viewing 15 posts - 1 through 15 (of 68 total)
Hi I prefer this syntax:
WITH ItemsToBeDeleted
AS
(
SELECT *
, row_number() over (partition by item_no ORDER BY id) as RowNumber
FROM item_store
)
DELETE FROM ItemsToBeDeleted Where RowNumber = 2
Much more efficient.
Regards,
JP
November 30, 2009 at 2:25 am
Hi
This is quicker:
alter database [db_name] set single_user with rollback immediate
go
October 21, 2009 at 5:20 am
Hi
The 'PATINDEX, convert and the use of the % wildcard will lead to a table scan. (check execution plan). I guess that the execution plan also shows that a (table)...
August 31, 2007 at 1:33 am
Erik
Thanks, that's exactly what I needed. We will be moving that appliation to sql2005 in a few months so let's hope they've correctly implemented the new isolation level!
JP
August 17, 2007 at 2:11 am
Erik,
Yes it is read uncommitted, that's for sure, but then again, why don't we get 'the other' error message? (There is a message stating that 'data chas changed due tot...
August 16, 2007 at 7:51 am
Hi Jayakumar,
We're running on SP4 + fixes up to 2192 and the problem still occurs. This particular post is about a SP3 fix. This should be resolved in SP4.
JP
April 16, 2007 at 4:26 am
Ian,
We tried to get MS Support to fix the problem, but unfortunately they didnt' succeed in finding any solutions. We're still getting the error on a almost daily basis....
JP
April 12, 2007 at 8:33 am
Check the account you use to start SQL Server service. Check the NTFS permissions on drive D. The account should be listed there (or via group membership) and should have...
October 16, 2006 at 12:32 am
Hi
I'm not not quit sure about this issue, but are the NTFS permissions OK?
JP
October 13, 2006 at 4:55 am
Hi
You need to backup the things you like to restore in case of an amergency. It seems that you have diskbackups of your databases, made with a maintenance plan. It...
October 13, 2006 at 4:12 am
Hi
In MSDE autoclose is turned on automatically and you'd better set it to off in SQL 2000.
JP
September 14, 2006 at 1:51 am
Hi
restart of service can take a while when tlog is big...but it will complete eventually and indeed commit all transaction in db.
JP
September 11, 2006 at 1:24 am
Hi,
Just google on error number: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=167068&SiteID=1
JP
September 11, 2006 at 1:21 am
Great article!
I've noticed this behaviour as well on one of my production databases 🙁
There is a good explanation on MS site: http://support.microsoft.com/kb/271566/ and a related article about a fix...
July 14, 2006 at 4:59 am
Ryan,
You're right about the diff processes competing for the same disk when you would use RAID 5. I think that creating 2 arrays (RAID1) is a better choice. If, you...
March 15, 2006 at 6:38 am
Viewing 15 posts - 1 through 15 (of 68 total)