Forum Replies Created

Viewing 15 posts - 2,521 through 2,535 (of 14,953 total)

  • RE: To VIEW or Not To VIEW ... That is the Question.

    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...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: What is the meaning of WHERE *= COLUMN NAME

    Dev (12/22/2011)


    Refresh your memories please 😉

    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...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: What is the meaning of WHERE *= COLUMN NAME

    SQLRNNR (12/21/2011)


    Those are the old non-ansi style Outer Join references. This was deprecated in SQL 2005. The upgrade advisor in 2005 will inform you of this joins and...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Index created date

    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.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: How to get result(output) column values based on given group with conditions

    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...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: Best practices connecting to remote server instance

    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)...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: How to get result(output) column values based on given group with conditions

    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...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: help with SQL Join

    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...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: SQL Server Schema Change Management.

    WangcChiKaBastar (12/21/2011)


    I explored Red Gate. My concern is more about how to maintain a proper sequence of scripts ...what goes when... if we have many drop columns and add columns...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: How to get result(output) column values based on given group with conditions

    Something like this?

    IF OBJECT_ID(N'tempdb..#MyParTable') IS NOT NULL

    DROP TABLE #MyParTable ;

    CREATE TABLE #MyParTable

    (MotherGrid VARCHAR(40),

    ChildGrid VARCHAR(40),

    ...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: To VIEW or Not To VIEW ... That is the Question.

    David Moutray (12/21/2011)


    That was a well considered reply, G-Squared. The point you closed with (don't use this feature unless you know what you are doing) could be extended to...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: & (Bitwise AND).

    WangcChiKaBastar (12/21/2011)


    GSquared,

    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...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: & (Bitwise AND).

    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...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: To VIEW or Not To VIEW ... That is the Question.

    David Moutray (12/21/2011)


    GSquared (12/21/2011)


    I've also had a few cases where dozens of stored procedures all needed the same three columns from the same two tables, and that kind of thing....

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • RE: CLR procedure to export xml file ?

    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. ...

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

Viewing 15 posts - 2,521 through 2,535 (of 14,953 total)