Viewing 15 posts - 13,591 through 13,605 (of 22,213 total)
I would be very, very, very careful about using NOLOCK. It seems like it solves problems, but it can introduce bad data. By that I mean, repeated rows, missed rows,...
January 14, 2011 at 9:24 am
It sounds like it could be contention, probably blocking, from uncommitted transactions. While you're in that stuck position, run this little query:
SELECT der.blocking_session_id,
...
January 14, 2011 at 7:49 am
Gotta be a difference in the stats. Should be evident by having different execution plans.
January 14, 2011 at 7:44 am
1) Nope, the locks are usually held for the duration of the transaction in case of rollback. If you've got a cursor in a trigger (oy), then the transaction is...
January 14, 2011 at 7:38 am
I would take a look at your execution plans from the merge statement. Something is causing this to slow down. You're working in a very small database, so you shouldn't...
January 14, 2011 at 7:35 am
Nope. Not with the log in simple recovery. Now, if the log were in full recovery you could either backup the log & retrieve it from there, or use one...
January 14, 2011 at 7:29 am
Just so you know, deleting data from a SQL Server database doesn't reduce the file allocations for that database.
January 14, 2011 at 7:26 am
CirquedeSQLeil (1/13/2011)
Grant Fritchey (1/13/2011)
My personal preference for this, Red Gate's SQL Prompt Pro. Fantastic tool. Does a heck of a lot more than just format the code too.
Same recommendation I...
January 13, 2011 at 11:54 am
Sure, you can use a TOP 1 with an ORDER BY. Something like this:
SELECT y.whatever
FROM MyTable
WHERE ID = (select top(1) ID
from mytable
order by mydate desc) as y
--or in a join...
January 13, 2011 at 11:51 am
It basically means that the statement in question is moving lots of data, either in (writes) or out (reads) of the server. What you do about it really depends on...
January 13, 2011 at 10:31 am
TheSQLGuru (1/13/2011)
Not true Grant!! I can ALWAYS make time for...
January 13, 2011 at 10:26 am
My personal preference for this, Red Gate's SQL Prompt Pro. Fantastic tool. Does a heck of a lot more than just format the code too.
January 13, 2011 at 7:54 am
It just has to be a series of TSQL statements. I'd just suggest wrapping it in a transaction so that you know the data was moved successfully prior to deleting...
January 13, 2011 at 7:50 am
Just curious, have you tried using the Import Data Wizard? I'm not sure it will meet your needs or not, but you can frequently get a lot more error information...
January 13, 2011 at 7:47 am
Viewing 15 posts - 13,591 through 13,605 (of 22,213 total)