Forum Replies Created

Viewing 15 posts - 2,611 through 2,625 (of 3,232 total)

  • RE: insert the value to the temp table

    Jeff Moden asks a relevent question in his post.  If you answer his questions, you'll get the solution you're after without having to continue this post.  I will look for...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: insert the value to the temp table

    By the way, Sriram, your suggestion will not work either.  Did you try it?  It gives syntax errors.  If you truely want to go the Dynamic route (again, not suggested),...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: insert the value to the temp table

    Since you are concatenating your variables @fromdate and @todate to a string, you need to convert them to a string as well. 

    And for the third time, you do not...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: insert the value to the temp table

    Again, this does not need to be dynamic sql.  You say that you are getting an error, what is the error?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: insert the value to the temp table

    I see a couple of things just by looking at it, but the most important thing here is that you do not need dynamic SQL to populate your temp table. ...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Min value across columns

    I was thinking about using the same approach as Lowel with regards to the derived table using UNION.  You did mention that your table is large so you will need...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Min value across columns

    How many columns are you talking here?  Are they all datetime datatype?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: What causes the speed difference?

    I would recommend running your test multiple times and clearing out the buffers and cache in between.  I get identical execution times (and execution plans) when I run both of...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: syntax error.

    You cannot reference a variable value as part of a DDL statement.  In order to accomplish what you are attempting, you must use Dynamic SQL.  Using your example,

    declare @townID...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Collation Conflict Error

    Can you post the exact error message along with the DDL for the tables involved in your SELECT?

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Auditing Stored Procedure definition

    It is generally not recommended to place triggers on the system tables in SQL Server 2000.  Therefore, managing stored procedure and DDL changes is a manual process.  I would recommend...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: Help with Logic

    Can you post the function definition for your dbo.wordcount function?  Also, post an example of a function call that does not produce the results you are expecting. 

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: SOS - Cursor based Query taking forever

    Ah, you are correct.  I appologize for the incorrect info, that's what I get for comming in early today!!

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: SOS - Cursor based Query taking forever

    In addition, while you are in the process of re-writing this, you may want to consider changing your JOIN on the != operator to an ANSI OUTER JOIN as the...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

  • RE: aggregate functions using time intervals

    Can you give a little more detail as far as what you want your result set to look like and which columns do you want min, max, avg?  Also, if you've...

    John Rowan

    ======================================================
    ======================================================
    Forum Etiquette: How to post data/code on a forum to get the best help[/url] - by Jeff Moden

Viewing 15 posts - 2,611 through 2,625 (of 3,232 total)