Forum Replies Created

Viewing 15 posts - 8,716 through 8,730 (of 14,953 total)

  • RE: How to Search Name string for space and convert lastname substring

    This will do what you're asking:

    declare @Name varchar(100);

    select @Name = 'Charles Smith';

    select reverse(upper(left(reverse(@Name), charindex(' ', reverse(@Name)))));

    As mentioned, this won't do what you need, because it'll fail the first time someone...

    - 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: Table variables vs. temp tables, and should I use subqueries to minimize # of updates in these?

    In cases where there are critical subtables, it's a good idea to include their definitions and sample data for those too.

    Without that, I can't test any of this, and 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: what is wrong with this Database?

    There are several possibilities. For example, the database could be in single-user mode, and there could be some user with an open connection. That "user" could be SQL...

    - 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: Table variables vs. temp tables, and should I use subqueries to minimize # of updates in these?

    It looks like a fair amount of consolidation could be done on the proc to make it more efficient. For example, there are several update statements early on 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: DBA career advice request

    As far as certs for 2005 vs 2008 go, it's doubtful someone would discount a 2008 cert if they're running 2005.

    First, certs are really mainly a way to get in...

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

    RBarryYoung (8/17/2009)


    GilaMonster (8/17/2009)


    ta.bu.shi.da.yu (8/17/2009)


    For instance, I was asking and saying a lot of dumb things about self-joins and outer joins a few days ago in another thread... 🙂

    Those weren't dumb...

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

    jcrawf02 (8/17/2009)


    GSquared (8/17/2009)


    ta.bu.shi.da.yu (8/17/2009)


    I'm curious as to what would be seen as a dumb question that is acceptable, and a dumb question that isn't acceptable?

    Obviously, the question I saw earlier...

    - 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: Correct Join?

    Like Steve, I'm not sure why you'd have separate tables for projects and jobs if it's a 1:1 relationship. There are reasons to do that kind of thing, mainly...

    - 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: Slicing and Dicing

    Ronald Bruintjes (8/17/2009)


    jcrawf02 (8/13/2009)


    matt stockham (8/13/2009)


    jpowers (8/12/2009)


    Personally, I would prefer to pay only for the channels I watch. I see no reason why they can't allow us to pay just...

    - 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: DBA career advice request

    hshah (8/17/2009)


    Nice link.

    So if i am buying books or enrolling myself on a training course and aiming for some certification (MCTS eventually before i get my first dba job i...

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

    Heh... if the eyes reveal the soul, the blog reveals the mind.

    I'm nearly blind (can see about 6 inches without glasses), and my blog is empty ... the implications are...

    - 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: Need T-SQL statement which will remove "n" spaces

    If you want to remove all spaces, "replace(string, ' ', '')" will do it.

    - 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: Why Should You Network?

    I view every discussion on this site's forums as "networking". It's not just about who you know for a new job, it's also about who you know that you...

    - 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: DBA career advice request

    The first question is what aspect of DBA work are you interested in? Coming from your background, I'd assume actual administration, as opposed to writing database software, but that's...

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

    ta.bu.shi.da.yu (8/17/2009)


    I'm curious as to what would be seen as a dumb question that is acceptable, and a dumb question that isn't acceptable?

    Obviously, the question I saw earlier (how do...

    - 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 - 8,716 through 8,730 (of 14,953 total)