Viewing 15 posts - 14,566 through 14,580 (of 14,953 total)
You really have two options for this currently. One is XML, the other is a delimited list.
On any significant number of records, XML will be better. Yes, puting...
March 14, 2008 at 8:03 am
Adam Haines (3/13/2008)
There might be a single-update command for this, but I think it would be so incredibly complex, since it would have to determine how many zeroes there are...
March 14, 2008 at 7:24 am
You can do this in SQL 2005. Where, Having and Order By can all use the column alias from the Select clause.
March 14, 2008 at 7:16 am
Joe, I haven't been able to work out an efficient way to use your nested sets structure on dynamic hierarchies. On relatively static data, it works great, but I...
March 14, 2008 at 7:00 am
That's odd. I've tested CTEs vs loops on hierarchy data and ended up with slightly better performance in the CTE than the loop. Directly contradicts what you ended...
March 14, 2008 at 6:49 am
Full join means include all rows from both tables. Cross join means include all combinations of rows from both tables.
A full join has a key relationship between the tables....
March 13, 2008 at 1:45 pm
(As a side note, "Hall of Fame" and other such titles are ranks on this page, the name of the person writing the post is above that, in the pale...
March 13, 2008 at 1:41 pm
ALZDBA!! Thank you! I knew I was missing an easier way to do this.
cast(cast(field as int) as char(15))
That does the whole thing. (I knew my loop idea was...
March 13, 2008 at 1:38 pm
s gupta (3/13/2008)
The number of rows returned are correct... but somehow the count is messed up. I am trying to figure out why. The total number...
March 13, 2008 at 1:35 pm
The only way I can think of to do this is with a loop.
while exists
(select *
from dbo.Table
where Field like '0%')
update dbo.Table
set Field = right(field, len(field)-1) + ' '
where Field like...
March 13, 2008 at 1:18 pm
select city.name as City, group.name as [Group],
isnull(subqty.qty, 0) as Qty
from dbo.City
cross join dbo.Group
left outer join
(select cityid, groupid, count(*) as Qty
from dbo.User
where joindate >= @startdate
and joindate < @enddate
group by...
March 13, 2008 at 1:10 pm
rbarryyoung (3/12/2008)
GSquared (3/12/2008)
Oh, and good Beatles references. 🙂Actually mine was from Month Python. :laugh:
"Help me if you can, I'm feeling down
and I do appreciate you're being 'round
Help me get my...
March 13, 2008 at 10:48 am
Differential backups are only useful if the prior full backup is good. So in the case we're discussing, where the full backup was lost, your differential backups would be...
March 13, 2008 at 10:46 am
Seth (3/13/2008)
March 13, 2008 at 10:42 am
Viewing 15 posts - 14,566 through 14,580 (of 14,953 total)