Viewing 15 posts - 13,051 through 13,065 (of 14,953 total)
http://www.sqlservercentral.com/articles/TSQL/62867/
That article has data on how to split a delimited string efficiently, and a bunch of other good stuff that's related to that.
July 1, 2008 at 3:27 pm
"IF" doesn't work that way. "Where" does.
SELECT A, B, C
FROM table1
where var1 = 1
UNION
SELECT A, B, C
FROM table2
where var2 = 1
UNION
SELECT A, B, C
FROM table3
where var3 = 1
Edit: The...
July 1, 2008 at 3:24 pm
Are the other two columns numeric, or strings?
July 1, 2008 at 3:22 pm
I think you just have to install the instance. Same as installing any instance on a cluster.
July 1, 2008 at 3:04 pm
Is one of the profiles set up as the default? Are they listed as Public?
July 1, 2008 at 3:03 pm
Option 2. Re-index after insert, so you don't fragment the index. Usually faster, too.
July 1, 2008 at 3:01 pm
I've seen the Management Studio "Open Table" method for editing table data fail where there is no primary key. I see an identity column in your table, but I...
July 1, 2008 at 2:59 pm
You can use the Like operator in joins.
select *
from dbo.Table1
inner join dbo.Table2
on Table1.Col1 like '%' + Table2.ColA + '%' -- Table1.Col1 contains Table2.ColA
or Table2.ColA like '%'...
July 1, 2008 at 2:57 pm
Is there a physical relationship between the items? Like, PartA is a component of PartB? (Classic bill of materials.) Or is the connection between items arbitrary? ...
July 1, 2008 at 2:54 pm
Look up "DBCC SQLPERF (LOGSPACE)" in Books Online. That should have what you need.
July 1, 2008 at 2:48 pm
Michael, the original spec said that joins aren't allowed. Loops, If/Else, etc., are, but joins aren't. I'm guessing the person who wrote the question thinks he came up...
July 1, 2008 at 12:56 pm
TRACEY (7/1/2008)
RBAR stands for ?
Row By Agonizing Row (Jeff has it in his signature)
It refers to code that makes the database do row-by-row calculations/instructions, instead of being able to operate...
July 1, 2008 at 12:51 pm
I'm actually trained in using data to gather information about businesses and turn it into management plans. That and marketing.
My last job, the database I built turned into a...
July 1, 2008 at 12:20 pm
I'm very much in favor of more nuclear power. The US Navy has been operating nuclear power plants for decades without, to my knowledge, a single "meltdown". (I...
July 1, 2008 at 12:10 pm
Viewing 15 posts - 13,051 through 13,065 (of 14,953 total)