Forum Replies Created

Viewing 15 posts - 2,131 through 2,145 (of 3,232 total)

  • RE: T-SQL question

    Nested cursors on large tables, awesome!!  If speed is your concern, scrap the cursors.  I agree with Peter, post your code and work towards creating a SET-based solution. 

    John Rowan

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

  • RE: Query suddenly runs slowly

    They do look good, but I still think it is extremely important to capture the execution plan using profiler. 

    John Rowan

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

  • RE: How to Unit Test SQL Changes

    Everyone's favorite answer....it depends.  Roger has given you some very useful info here, but much of what you are after depends on what you are trying to accomplish.  You say...

    John Rowan

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

  • RE: Query suddenly runs slowly

    Dave,

     

    You mention that you believe that your index strategy is sound, but nowhere throughout this thread do I see that you’ve verified that your execution plan...

    John Rowan

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

  • RE: Deadlocks question

    Roger beat me to this, but here's my answer too.  I'm in agreement with Roger, but I will add that the trace flags in SQL Server 2000 do work!

    There’s...

    John Rowan

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

  • RE: DTS Package failing to start when scheduled via a job

    What happens if you set the job owner to 'sa'?

    John Rowan

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

  • RE: Front-end Integration (Newbie Question)

    I would recommend that you become an expert in T-SQL.  While you can spend as much time as you want on the front-end coding, you will want as much of...

    John Rowan

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

  • RE: DTS Package failing to start when scheduled via a job

    Nimesh,

    This is usually due to permissions.  When you execute the package manually, it will run under the context of the user account that you are logged in as.  When...

    John Rowan

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

  • RE: Using table-variables in dynamic sql

    Why does this need to be dynamic SQL?  I don't see anything in your code that would require dynamic SQL to accomplish.

    John Rowan

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

  • RE: Slow writing query

    I'm not sure if this is much more efficient and there is probably a better method to this madness, but here's an example of code that will produce the same...

    John Rowan

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

  • RE: Slow writing query

    When I run your code with your sample data, I do not get the results that you show here.  Here's what I get, can you clarify?

    CallID      UCID       GroupID    

    ----------- ----------...

    John Rowan

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

  • RE: st.proc convert to sql script

    Just curious, but what advantages are you trying to get by running this as a script over a stored procedure?

    John Rowan

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

  • RE: Slow writing query

    It would help if you could show an example of how the new column's data should look.  Can you take your sample data and show how the data for the...

    John Rowan

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

  • RE: Urgent! - How to extract number from a string

    Here it is with the PATINDEX used also:

    DECLARE @string varchar(100)

    SET @string = '12345 Test Address Dr.'

    SELECT LEFT(@String,CHARINDEX(' ', @string)),

        LEFT(@string,PATINDEX('%[^0-9]%',@string))

    John Rowan

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

  • RE: Urgent! - How to extract number from a string

    DECLARE @string varchar(100)

    SET @string = '12345 Test Address Dr.'

    SELECT LEFT(@String,CHARINDEX(' ', @string))

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