Viewing 15 posts - 14,401 through 14,415 (of 14,953 total)
Antonio:
My tests with XML vs Numbers/Tally table have shown similar CPU time results, but have had interesting IO differences. Did you include IO stats in your runs? (If...
April 2, 2008 at 1:37 pm
Steve Jones - Editor (4/2/2008)
April 2, 2008 at 1:29 pm
TheSQLGuru (4/2/2008)
April 2, 2008 at 1:24 pm
Jeff Moden (4/1/2008)...
Heh... I know I'm not supposed to cheat, but I do... I maintain the adjacency model... when there's a change move (not just an insert), the whole...
April 2, 2008 at 1:13 pm
Jeff Moden (4/1/2008)
April 2, 2008 at 12:52 pm
Not sure what you're doing here. I tried this:
create table #TvsRecords (
LastUpdate datetime,
TvsRecordID int identity primary key)
insert into #TvsRecords (lastupdate)
select '4/1/2005' union all
select '4/1/2005' union all
select '4/1/2005' union all
select...
April 2, 2008 at 12:48 pm
Trader Sam (4/2/2008)
Deleting the...
April 2, 2008 at 11:13 am
It looks to me like you're most of the way to where you want to go.
Turn your logic on the Riders into a function, with @PID as an input, and...
April 2, 2008 at 11:10 am
This is actually a significantly complex subject.
First, you have to define rules for what "matches any part". For example, "Tub" and "Target" both have the letter "t" in them,...
April 2, 2008 at 11:06 am
If there are any null values in the id field in table B, "not in" will return 0 rows. Since "null" means unknown, you're telling to select all values...
April 2, 2008 at 10:54 am
I'm not clear on what the end result of this is. I see the tables, I see a the queries, but without a sample of the starting data and...
April 2, 2008 at 10:44 am
sblock (4/2/2008)
- Windows accounts can force password changes on a regular basic
- You don't have imbed passwords in programs or force users to...
April 2, 2008 at 9:05 am
The article is a reasonably good introduction to the subjects, even though it does have the common flub of assuming table variables are RAM and temp tables are HDD. ...
April 2, 2008 at 7:31 am
Try this:
create trigger dbo.updateSettingsTrigger
after update
as
if update(pagename) or update(parentid)
begin
;with CTE (ID, ParentID, Pagename, Breadcrumbs, URLPath) as
(select id, parentid, pagename, breadcrumbs, urlpath
from inserted
union all
select sitepages.id, sitepages.parentid, sitepages.pagename,
cte.breadcrumbs + (breadcrumb string),
cte.urlpath +...
April 1, 2008 at 4:33 pm
TheSQLGuru (4/1/2008)
April 1, 2008 at 4:20 pm
Viewing 15 posts - 14,401 through 14,415 (of 14,953 total)