Forum Replies Created

Viewing 15 posts - 3,136 through 3,150 (of 14,953 total)

  • RE: Challenging table join problem

    Like this:

    select *

    from MyValuesTable

    inner join MyScalesTable

    on MyValuesTable.ValueFloat >= MyScalesTable.Scale

    and MyValuesTable.ValueFloat < MyScalesTable.Scale + 1 ;

    That assumes the scale range is 1 in all cases. If...

    - 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: IN list with a variable

    I'll just add to the "ignore Joe" votes. So far as I can tell, he has a template for all of his posts, and it plugs in every complaint...

    - 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: Cannot change back to Multi User

    Can you access it via a connection window? (Where you type queries and all that.)

    If so:

    alter database MyDatabaseName set multi_user;

    - 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: Saving automatically

    Sorry, I can't help you on that one. I script my DDL actions. If I want to add a key, I just do it with an Alter 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: Saving automatically

    I'm not sure what you mean.

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

    Ninja's_RGR'us (10/13/2011)


    GSquared (10/13/2011)


    Ninja's_RGR'us (10/13/2011)


    GSquared (10/13/2011)


    Ninja's_RGR'us (10/13/2011)


    BrainDonor (10/13/2011)


    I know a few users I'd like to send into space.

    Yup but the thing is they'll come back. Not really the best option...

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

    Ninja's_RGR'us (10/13/2011)


    GSquared (10/13/2011)


    Ninja's_RGR'us (10/13/2011)


    BrainDonor (10/13/2011)


    I know a few users I'd like to send into space.

    Yup but the thing is they'll come back. Not really the best option for that.

    I'd...

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

    Ninja's_RGR'us (10/13/2011)


    BrainDonor (10/13/2011)


    I know a few users I'd like to send into space.

    Yup but the thing is they'll come back. Not really the best option for that.

    I'd go with...

    - 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: MERGE STATMENT Error :Cannot Contain multi-part identifiers.

    Looks correct to me, and I don't get any error on it when I check it in SSMS. I can't run it, because I don't have the tables, but...

    - 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: Call a function in another DB?

    You're welcome.

    - 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: Execute multiple values from a trigger against a stored procedure.

    If it's that complex, a loop through the inserted table is probably the best bet.

    But I can't imagine what running a 2000+ line proc on each row of a multi-row...

    - 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: MERGE STATMENT Error :Cannot Contain multi-part identifiers.

    Since it can only insert into the target table, you can't use object.column naming in that context. Just the column names.

    - 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: UnknownTraces Running?

    Have you tried fn_trace_geteventinfo to see what they're capturing?

    - 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: sum in sql different to sum in Excel

    eseosaoregie (10/11/2011)


    My Apologies. I was counting the rows instead of summing them in the excel pivot. My Bad:blush:

    That'd do it.

    We all have those moments.

    - 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: Problem with STUFF

    It's because run_date is an integer, and you're trying to add a string to it. Wrap h.run_date in a Cast/Convert to varchar, and it will do what you want.

    - 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 - 3,136 through 3,150 (of 14,953 total)