Viewing 15 posts - 8,446 through 8,460 (of 14,953 total)
Adding top to this just adds processor cycles without accomplishing anything.
September 3, 2009 at 7:06 am
Pakki (9/2/2009)
GSquared (9/2/2009)
create trigger dbo.NameStuff on dbo.MySourceTableafter insert
as
set nocount on;
insert into dbo.MyTargetTable (Name)
select Name
from inserted
where Name is not null;
It'll look something like that. If you select from the "inserted"...
September 3, 2009 at 7:01 am
Yep. Assuming you mean join the parent_id in sys.triggers to the object_id in sys.all_objects.
September 2, 2009 at 2:09 pm
I'd still need to see at least the execution plans to be able to say much about this.
September 2, 2009 at 2:08 pm
John Rowan (9/2/2009)
September 2, 2009 at 2:05 pm
I'm going to hazard a guess that either something went wrong with the maintenance, or the "maintenance" was actually disaster recovery, but some PR person said, "don't tell them something...
September 2, 2009 at 1:48 pm
sascha (9/2/2009)
September 2, 2009 at 1:45 pm
Jeff Moden (9/2/2009)
Why are we using SQL Server like a...
September 2, 2009 at 1:39 pm
In my case, using With Recompile was tested, and that took longer than the compromise plan that I ended up using. Also, it can end up causing compilation locks...
September 2, 2009 at 1:37 pm
Assuming you're using SQL 2005 (from the forum this is posted in), you have the ability in Management Studio to save the execution plans as .sqlplan files. Please do...
September 2, 2009 at 1:35 pm
Ian Scarlett (9/2/2009)
GSquared (9/2/2009)
September 2, 2009 at 1:33 pm
The ad hoc remote queries option doesn't block sa-level logins.
Edit: And, honestly, if someone has the password to the sa account on your server, locking out OpenRowset is the least...
September 2, 2009 at 1:18 pm
Can you post the two execution plans? Might be able to help more if I see them.
September 2, 2009 at 1:12 pm
I am actually surprised by a few things you said. Years ago I used to work with a database called RDB. There was no way in RDB to influence the...
September 2, 2009 at 1:12 pm
To reiterate, what you're looking at is a classic example of parameter sniffing. At least, I'd bet 9:1 that's the problem. Take a look at Gail's blog entry...
September 2, 2009 at 12:49 pm
Viewing 15 posts - 8,446 through 8,460 (of 14,953 total)