Viewing 15 posts - 8,461 through 8,475 (of 14,953 total)
The random number piece should perform well, but it's no good as a primary key or as the leading edge of a clustered index, which kind of defeats the purpose...
September 2, 2009 at 12:48 pm
Is it possible it doesn't have stats on the heap? That might make a scan less expensive than a set of seeks, if it has to generate stats on-the-fly....
September 2, 2009 at 12:45 pm
iruagawal (9/2/2009)
September 2, 2009 at 12:37 pm
You're welcome. Glad I could help.
September 2, 2009 at 12:32 pm
I'd go with this:
select id, pubKey
from xpt
inner join
(select ADSX.Nodes.value('(.)[1]','varchar(100)') as ADSXValue
from @adsx.nodes('/R/AD') ADSX(Nodes)) Sub
on xpt.pubKey = Sub.ADSXValue;
Edit: Actually, I'd probably do...
September 2, 2009 at 11:56 am
I can think of a couple of ways to achieve that. Easiest would be checksum and newID. But I have to ask what that could possibly have to...
September 2, 2009 at 11:49 am
Definitely not something you want to try to do with T-SQL stored procs. That kind of thing is much easier to achieve in .NET, and it'll do a better...
September 2, 2009 at 11:48 am
Looks like what you're aiming at is a slight variation on a pretty normal tree-view.
Usually, the way you generate those, is have an XML query that produces the data you...
September 2, 2009 at 11:46 am
jcrawf02 (9/2/2009)
Grant Fritchey (9/2/2009)
(paranoia is a good thing).You're just saying that because you want us to be brainwashed into being paranoid!
Ack!! Get outta my head!!!!
Trust me, my brain is beyond...
September 2, 2009 at 11:44 am
Generally speaking, shrinking your database every day is a bad idea. It results in index and table fragmentation, which causes the whole database to slow down. It also...
September 2, 2009 at 11:36 am
That should work fine for log shipping. Just not for clustered virtualization.
September 2, 2009 at 9:06 am
create trigger dbo.NameStuff on dbo.MySourceTable
after 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" table where...
September 2, 2009 at 9:03 am
Without access to your database, I can't be certain, but most likely, because there aren't any rows that satisfy all your criteria.
September 2, 2009 at 7:57 am
Silverfox (9/2/2009)
not sure if it helps but i think that if you create a clustered index or recreate it on a different Filegroup. the data is moved as well
You're correct...
September 2, 2009 at 7:56 am
This is why I keep suggesting a FAQ page, where we can post common answers to common questions. Like "How do I start out as a DBA?", "Why was...
September 2, 2009 at 7:53 am
Viewing 15 posts - 8,461 through 8,475 (of 14,953 total)