Forum Replies Created

Viewing 15 posts - 391 through 405 (of 1,473 total)

  • RE: Table Update Help Needed

    The setup portion is what I was referring to in my last post. Please provide sample data like this in the future, it makes it easier on us. ...

  • RE: Table Update Help Needed

    Sulaman, could you please provide the sample data in the manner explained by the article in my signature? That would make it much easier for us to work with...

  • RE: Mostly Used Stored Procs

    Unfortunately, there isn't a way that is quite that easy in 2000.

    For a quick and dirty approach, you could do something like:

    SELECT SUM(usecounts) TotalUses, pagesused, sql

    FROM master..syscacheobjects WHERE usecounts >...

  • RE: Reclaiming unused space in a table

    Ian, Manu, thanks for the feedback. I meant to include in the original post that the table did not have any blob columns in it, sorry about that. ...

  • RE: Special characters

    The AND NOT's can get pretty confusing, so just to explain this a bit more:

    The problem is the logic of your where clause. Here's what you're saying(assuming case sensitivity...

  • RE: Return most recent of a sub group of records

    Lynn Pettis (11/24/2009)


    If you're going to "bump" your post, how about posting something usefull, like DDL for your tables, sample data, and expected results. That may actually get you...

  • RE: T-SQL code to group data into comma delimited column

    sharonrao123 (11/24/2009)


    Thanks for your suggestion the "stuff" worked like a charm. You are a star

    Just so that people reading this later don't get the wrong idea, can you confirm the...

  • RE: Update HELP

    Jeff Moden (11/24/2009)


    The biggest reason is that it violates normalization and every time you do that, it will come back to haunt you sometime in the future...

    This strikes...

  • RE: Query with MIN and MAX

    Yep, I changed the aliases a few times and missed that one, my fault. (The parser would have caught that one if I had checked it, so that one...

  • RE: Query with MIN and MAX

    Welcome to the forums. This should get you pretty close, but it's untested; so I may have screwed up an underscore or 12. To get tested code in...

  • RE: Temp Table to Gather Data

    Why do you want to get rid of the temp table? Or do you mean you'd like to get rid of the while loop that relies on the temp...

  • RE: Conversion failure with stored procedure?

    Jeff Moden (11/23/2009)


    It's not the code... it's the data. You need to find out which VARCHAR data isn't valid in that column. Start with using ISDATE and go...

  • RE: How using SQL to generate random string?

    Using that format, you're lowering your pool to 16 from 36, which only gives you a total 16,777,216 possible permutations and increases your rate of failure over what was originally...

  • RE: Left join would not work with a "where" clause

    That seems wrong to me still. I think it should probably be:

    SELECT [CountryCode], sd.name

    FROM MyDB.dbo.Country c

    LEFT JOIN MASTER.dbo.sysdatabases sd (NOLOCK)

    ...

  • RE: How using SQL to generate random string?

    A couple facts about this setup:

    You can never rely on 2 random numbers to be unique, no matter how big the pool. Even in a pool of 40 billion...

Viewing 15 posts - 391 through 405 (of 1,473 total)