Forum Replies Created

Viewing 15 posts - 4,396 through 4,410 (of 14,953 total)

  • RE: Need Help with Join

    select distinct T1.Product_name, Product_budget, T1.Month

    from [Product Table] as T1

    inner join [Product Budget] as T2

    on T1.Product_ID = T2.Product_name

    and T1.Month = T2.Month

    where T1.Product_ID = 10001;

    Looks like that should...

    - 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: Life is Short

    Condolences and prayers to your friend's family and all who knew him.

    On the subject of living for the present as well as the future, I like to remind people 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: Are the posted questions getting worse?

    Craig Farrell (4/20/2011)


    You know, this is why I'm never quite sure if I should write tech articles. ...

    So for the rest of you tech article writer/bloggers, instead of helping...

    - 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 understand some sql statement

    If the code doesn't later use the @rc variable for anything, then no, there's no reason to store the return-value in it.

    You can use the Return command to return any...

    - 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: db_owner cannot grant select to database role?

    K. Brian Kelley (4/20/2011)


    Cannot find the user 'DOMAIN\domainuser'

    That seems to be the real issue. Are you sure the username wasn't mistyped and that it existed in the database as a...

    - 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 understand some sql statement

    EXEC @rc = Mydb.dbo.Usp_mytable_Insert

    @ProcessId,

    @dEnddate,

    @sMessage,

    NULL, NULL, NULL, 0, 1, 'Error', NULL, NULL

    All of that is the command to execute the stored procedure. These are parameter values:

    @ProcessId,

    @dEnddate,

    @sMessage,

    NULL, NULL, NULL, 0, 1,...

    - 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: Retrieving Data

    You could use Min() or Max() on the name, and group by the rest of it. Won't control which one you show, but will only show 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: db_owner cannot grant select to database role?

    So far as I can tell, you'll need to check if he's been denied any rights in that direction. Those would override the role.

    - 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: Foreign Key Error thrown

    I'd have to see details before I could recommend anything. Table structures, et al, will be needed in order to recommend anything sensible.

    - 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: Are the posted questions getting worse?

    GilaMonster (4/20/2011)


    LutzM (4/20/2011)


    Is there any other method than using the mouse pointer? There are so many words on the screen. How else to keep track where the next word is...

    - 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: DDL TRIGGER SQL SERVER 2000

    I would say the better solution is to properly protect the server login credentials.

    - 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: Convert Military date to standard

    This has options for formatting dates and times: http://msdn.microsoft.com/en-us/library/ms187928.aspx

    - 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: The Mentoring Experiment

    I'm always interested when people rediscover the master-journeyman-apprentice system, or pieces of it. It solves so many problems.

    - 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: DDL TRIGGER SQL SERVER 2000

    I'd do that with the firewall, not in SQL Server. That's what firewalls are 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: I need a query for getting avg from the below table.

    WayneS (4/19/2011)


    GSquared (4/19/2011)


    Joe ... if you're trying to set an example, please start doing so.

    Oh, he's setting an example all right - just not the kind that is appreciated out...

    - 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 - 4,396 through 4,410 (of 14,953 total)