Viewing 15 posts - 7,531 through 7,545 (of 14,953 total)
Most likely, the DBA wouldn't/couldn't be held accountable in this situation. But that's counting on a sane, reasonable legal system. Definitely not the case in any country I'm...
December 7, 2009 at 7:28 am
GilaMonster (12/4/2009)
Bru Medishetty (12/4/2009)
Gus also replied to the thread, still no good.
Not helped by someone who doesn't appear to know the difference between an operating system kill process and a...
December 4, 2009 at 1:53 pm
Okay, couple of misconceptions there.
First, a "cartesian product" is when you join two tables together without anything telling the code which rows go with which. Your code doesn't do...
December 4, 2009 at 1:47 pm
You could do this:
delete T1
from Table1 T1
inner join Table2 T2
on T1.Main = T2.Main
and T2.Type...
December 4, 2009 at 1:26 pm
Create a cursor that selects all the functions from the system views, have it step through them and build a dynamic SQL command to grant the permissions.
December 4, 2009 at 1:23 pm
Will this do what you need?
select *
from dbo.MyTable
where BLNA = 'True'
and exists
(select *
from dbo.MyTable T2
where FK1 = MyTable.FK1
and BLNA = 'False')
or BLNA = 'False'
and exists
(select *
from dbo.MyTable T3
where FK1 =...
December 4, 2009 at 1:22 pm
Try something like this:
delete T1
from Table1 T1
inner join Table2 T2
on T1.Main = T2.Main
and T2.Type = 2
and T1.FullName = T2.FirstName + ' ' + T2.LastName;
December 4, 2009 at 1:18 pm
Definitely start with the book. Anything else will mostly be an expansion on that.
Books Online has some details (or MSDN), too.
December 4, 2009 at 1:16 pm
There isn't a "trim" function in T-SQL. There are "LTrim" and "RTrim". One takes spaces off of the left side, the other takes them off of the right...
December 4, 2009 at 12:57 pm
Julie Breutzmann (12/4/2009)
December 4, 2009 at 12:55 pm
GilaMonster (12/4/2009)
GSquared (12/4/2009)
December 4, 2009 at 12:52 pm
I guess I'm not sure what you're asking for. Are you asking about the internal workings of the engine (memory addressing, I/O requests, etc.), or about performance characteristics (baseline...
December 4, 2009 at 12:00 pm
Will this do what you need?
select ID
from TableB
inner join TableA
on TableB.SegmentValue = TableA.SegmentValue
group by ID
having count(*) =
(select count(*)
from TableA);
December 4, 2009 at 11:02 am
Viewing 15 posts - 7,531 through 7,545 (of 14,953 total)