Forum Replies Created

Viewing 15 posts - 8,146 through 8,160 (of 14,953 total)

  • RE: Overwriting function sped it up... why?

    Overwriting it probably just forced a rebuild on the execution plan. That's probably the only difference. I'd have to see the function and any related tables to get...

  • RE: Need Help on Query

    If you have a Numbers table, you can select from that, and join it to a count from your reports table.

    select Number as Hour,

    (select count(*)

    from reports

    where report_date >= '1/1/2009'

    and report_date...

  • RE: Joining onto a table specified as a parameter into a Stored Procedure?

    It's looking for a table variable in that case. That's why you're getting the specific error.

    Yes, you can do this, but what you have to do is build the...

  • RE: Stored Procs and Unused Parameters

    Iterating through the parameters would definitely be better. Heck, even I managed to do that in an Access app I used to operate, and I'm far from a skilled...

  • RE: Double Recursion?

    You'll need to modify this a bit to get exactly what you want for columns, but it does the job on the sequence and should be easy enough to make...

  • RE: Double Recursion?

    Why does James come before Kevin in the desired output? Why split that department (Development) in two and interject Web in the middle?

  • RE: Are the posted questions getting worse?

    chris.warriner (10/14/2009)


    Hi, this is an interesting post for me as I am one of the "newbies" that perhaps one or two of you may be referring to. I am not...

  • RE: T-sql to XML( can any one help me out plz ...:( )

    "For XML" should be able to do the XML conversion you need. Then (as mentioned), bcp would allow you to automate the export.

    I'd need more details on table structure...

  • RE: Trying to get this to work in one select statement

    You could use the Pivot operator to turn the rows into columns and then you'd get rid of the sub-queries. I don't see a way to get rid of...

  • RE: Double Recursion?

    That seems like a fairly trivial issue for a recursive CTE to handle. It also looks like homework, though that could just be a side-effect of you annonymizing the...

  • RE: Trying to get this to work in one select statement

    What problem are you having with it? I just tested a variation (since I don't have your table or your data, I can't test exactly what you're testing), and...

  • RE: Column and Table Alias issue

    In the upgrade process, are you setting up a test environment and putting the database and all its procs through their paces?

    If so, you'll know with total certainty that this...

  • RE: Stored Procs and Unused Parameters

    You have valid points. It does cost some bandwidth, and resources. RAM does have to be allocated to hold null values that will never be populated. I...

  • RE: Are the posted questions getting worse?

    Grant Fritchey (10/13/2009)


    Since most of the denizens of The Thread are not on Twitter, I should spread the word here as well. In my absolute dictatorial power as no one...

  • RE: Stored Procs and Unused Parameters

    I'd say go ahead and include them. It means a little extra RAM being allocated, but it doesn't hurt anything beyond that.

    It allows the dev to build a more...

Viewing 15 posts - 8,146 through 8,160 (of 14,953 total)