Forum Replies Created

Viewing 15 posts - 4,576 through 4,590 (of 14,953 total)

  • RE: newbee - Having trouble grouping and getting only the 1st 25 instances of a column

    I suspect this will get you closer to what you need:

    SELECT ae.DM_AuditNurseID AS 'Nurse_Code',

    an.NL_NurseFirst 'Nurse_First_Name',

    ...

    - 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: newbee - Having trouble grouping and getting only the 1st 25 instances of a column

    Why are you using Group By in this? I don't see any aggregate functions (Min, Max, Avg, etc.) in the Select clause.

    Move the Top 25 part to the Select,...

    - 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: Date format when "Edit all rows" in SSMS SQL2K8 R2

    Don't use SSMS for that. Don't your databases have applications or web pages as a front-end and presentation layer?

    If you really need to bypass all of the usual layers...

    - 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: Pattern Matching

    Take a look at the "LIKE" operator in the T-SQL string functions section of MSDN or Books Online. It'll do 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: 3rd party SQL performance tools worth it for a newbie?

    Saying that these tools are useless for a "good DBA" is like saying a good carpenter shouldn't need a tablesaw, since you can do everything you need to do 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: read sqlserver trace file

    thbaig1 (3/18/2011)


    I have used profiler. with all performance option checked also deadlock and some other options

    Then Profiler can open the trace file for 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: 3rd party SQL performance tools worth it for a newbie?

    I have found that Confio Ignite is very useful for tracking down the exact SQL statements that are causing the most performance issues on a server.

    Other than that, I really...

    - 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: read sqlserver trace file

    thbaig1 (3/18/2011)


    thanks Lowell, but it is not giving required results.

    where can i find execution plan of queries?

    How did you create the trace? Did you use Profiler, or did 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: SQL Beginner Confusion

    Tech greenie (3/17/2011)


    ...The text is variable and I cannot tell what the lines look like when they are typed....

    I have to admit, this part of your post kind of threw...

    - 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 2008 R2 3rd Party Peer-to-Peer Replication, Global Site Distribution

    If you have all the data in each site, then that handles both your failover and your "person A in location C" issue.

    The only thing I can think of 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: Copying A Very Large Database across the network to a Test Server

    The only thing I can think of with files that size would be compress, copy to a big portable drive (or more than one), and move it that way. ...

    - 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: Invalid length passed to substring!

    If the string doesn't have the delimiter in it, you'll get a LEFT(string, 0) or LEFT(string, -1) essentially, and that is an invalid value for the LEFT function, hence the...

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

    CirquedeSQLeil (3/17/2011)


    Craig Farrell (3/17/2011)


    CirquedeSQLeil (3/17/2011)


    Brandie Tarvin (3/17/2011)


    Craig Farrell (3/17/2011)


    Annnnd, now I have an image of sheep storming the castle. I wonder if they fit their armor before or after...

    - 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 (3/17/2011)


    ...they get ahead of themselves. 🙂

    Annnnd, now I have an image of sheep storming the castle. I wonder if they fit their armor before or after sheerings...

    Time...

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

    Tom.Thomson (3/17/2011)


    Craig Farrell (3/16/2011)


    GilaMonster (3/16/2011)


    I object, I'm a model of good behaviour

    well, compared to others on that list anyway...

    Isn't that like saying you're a 'nice' barbarian because you only rape...

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