Forum Replies Created

Viewing 15 posts - 2,176 through 2,190 (of 3,232 total)

  • RE: Passing expression to an stored procedure

    The exact thing the developer is trying to avoid doing here is the way to do it.  Why would the developer want to avoid creating a variable to hold this...

    John Rowan

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

  • RE: Optimizing Performance of Stored Procedures in SQL Server 2000

    Well, rewriting your work Set based is a bit of a chore without having your core tables, views, and data so please take any work that...

    John Rowan

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

  • RE: Optimizing Performance of Stored Procedures in SQL Server 2000

    Yes, I understand this part as the code is coded this way, but I thought the purpose of this SP was to get the next level if it exists.  Wouldn't you...

    John Rowan

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

  • RE: Optimizing Performance of Stored Procedures in SQL Server 2000

    Yes, that makes perfect sense to me.  Amazingly, this is what I gathered from reading your code.  But the problem is, your 2nd SP does not...

    John Rowan

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

  • RE: Optimizing Performance of Stored Procedures in SQL Server 2000

    Yes, that makes perfect sense to me.  Amazingly, this is what I gathered from reading your code.  But the problem is, your 2nd SP does not...

    John Rowan

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

  • RE: Optimizing Performance of Stored Procedures in SQL Server 2000

    I am a bit confused by the logic in your sp_getnextlevel_single procedure as it appears to always return the same level that is passed into...

    John Rowan

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

  • RE: Optimizing Performance of Stored Procedures in SQL Server 2000

    Also, you are using SELECT INTO to create temporary tables to use in your procedure.  SELECT INTO copies the table structure in terms of columns, but indexes are not copied...

    John Rowan

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

  • RE: Optimizing Performance of Stored Procedures in SQL Server 2000

    Your best bet here will be to post your table DDL and your code.  SQL Server works best by operating on Sets of data, not row-by-row (look up RBAR...a Modenism...

    John Rowan

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

  • RE: CHARINDEX - CAPTURING TEXT TO LEFT

    Yep, you're correct.  Thanks for the catch

    John Rowan

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

  • RE: How to notify a person when there''''s an update done to a table

    I would recommend using the trigger to insert notification rows into another table.  Then set up a job to read that table and send the e-mails.  The reason for this...

    John Rowan

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

  • RE: CHARINDEX - CAPTURING TEXT TO LEFT

    There are a number of methods you could use to do this including, but necessarily limited to, the following example.  All three of these methods are well documented in BOL. ...

    John Rowan

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

  • RE: Blocked task

    A task that shows up as blocking itself is usually a result of the task waiting on I/O.  Check the wait type the next time you see this occur and...

    John Rowan

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

  • RE: max row for each id

    I'm not sure if I'm following you.  Do what a million times?  The solution I provided will obviously need re-written to use your real table/column names, but it will...

    John Rowan

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

  • RE: Impossible to catch error for : Cannot insert duplicate key row in object .......

    jesus,

    In what way is your problem similar?  You would probably have better results in terms of feedback on your problem if you start a new thread.  Also include any...

    John Rowan

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

  • RE: max row for each id

    This may get you going in the right direction.  Keep in mind that in the event you have 2 rows in your table with the same MAX(Date), you'll get more...

    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,176 through 2,190 (of 3,232 total)