Viewing 15 posts - 2,521 through 2,535 (of 14,953 total)
Jeff Moden (12/21/2011)
David Moutray (12/21/2011)
I probably shouldn't ask, but I can't help myself: what, pray tell, is a "high velocity pork chop?" :unsure:
Several years ago, some manager posted about...
December 22, 2011 at 6:11 am
Dev (12/22/2011)
Below is NON-ANSI outer join example for Oracle. Was it working for SQL Server as well?
SELECT T1.ID
FROM
T1,
T2
WHERE
T1.ID = T2.ID(+) -- OUTER...
December 22, 2011 at 6:06 am
SQLRNNR (12/21/2011)
December 22, 2011 at 6:05 am
I do that kind of thing through source control and DDL logs. I'm assuming you don't have those in place, so really can't help you on this one.
December 21, 2011 at 1:13 pm
If it's truly limited to three levels, just take what I wrote, and add another Outer Apply to get to the data for the third level, and add that to...
December 21, 2011 at 1:11 pm
If you can get SSMS to connect, it's usually okay to do so. Probably will need to use an SQL Server login since your domain login (even through VPN)...
December 21, 2011 at 1:09 pm
Can this cascade more levels than that? Like a hierarchy? If so, you'll need to query it with a recursive function. Take a look at "Common Table...
December 21, 2011 at 1:05 pm
Your first Inner Join goes to a derived table with no Select statment:
FROM stg_history_ira i
INNER JOIN (--dates properties became inactive
(SELECT pa.fk_property_id, s.max_date_event
FROM oe_mf_data_mart..mf_history_property_active pa, oe_mf_data_mart..mf_property p
WHERE pa.fk_property_id = p.pk_property_id)
If that...
December 21, 2011 at 1:01 pm
WangcChiKaBastar (12/21/2011)
December 21, 2011 at 12:28 pm
Something like this?
IF OBJECT_ID(N'tempdb..#MyParTable') IS NOT NULL
DROP TABLE #MyParTable ;
CREATE TABLE #MyParTable
(MotherGrid VARCHAR(40),
ChildGrid VARCHAR(40),
...
December 21, 2011 at 12:26 pm
David Moutray (12/21/2011)
December 21, 2011 at 12:12 pm
WangcChiKaBastar (12/21/2011)
I was reviewing code written by another developer and came across scenarios
where is he has been checking AND of two columns
Application ID and Application Mask
===========
..WHERE ApplicationMask & Application_ID...
December 21, 2011 at 12:05 pm
Only where you need to do bitwise comparisons.
I've been working with databases and their code for about 11 years, and I've never yet needed to use one.
They're mainly used for...
December 21, 2011 at 11:39 am
David Moutray (12/21/2011)
GSquared (12/21/2011)
December 21, 2011 at 11:33 am
I'm not exactly expert at CLR, but I've bumbled my way through writing a text file using VB.NET's file operations just by digging through Bing searches on the subject. ...
December 21, 2011 at 9:37 am
Viewing 15 posts - 2,521 through 2,535 (of 14,953 total)