Forum Replies Created

Viewing 15 posts - 2,371 through 2,385 (of 3,232 total)

  • RE: Wrong index chosen when variable in WHERE clause

    Can you post the full table DDL including the indexes and the execution plans for both queries?

    John Rowan

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

  • RE: SQL2000 Fast Query Slow Insert

    Is this on a server class machine?  Where is your T-Log physically located?  How big is your T-log?  TempDB?  Make sure there is not any virus scanning software running that...

    John Rowan

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

  • RE: Tuning update statement

    'don't quite follow all the query rewrites ?? '

    Colin, I played around with re-writing the IN clause to a JOIN out of habit.  Although the improvement is only slight, I have...

    John Rowan

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

  • RE: NULL-value-aware Update Trigger

    I think you lost me here.  It will be a big help (to you) to include an example including DDL and sample data and your desired result. 

    John Rowan

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

  • RE: Temporarily avoiding writing into trans log

    I would say that your only two real options here would be to use Simple recovery mode or to truncate your log file in between each major data manipulation step. ...

    John Rowan

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

  • RE: Sorting a field

    Here's a good thread to reference....

    http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=328228

    John Rowan

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

  • RE: Could not complete cursor operation because the table schema changed after the cursor was declared.

    This is a pretty straight forward error message and it means exactly what it says.  Something has changed your table schema while the cursor was open.  If you can reproduce this,...

    John Rowan

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

  • RE: Tuning update statement

    PW's correct.  It is difficult without knowing your data.  Along with changing your UPDATE, you may also benefit from a covering index on TableB Root, Status.  Here's an example that...

    John Rowan

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

  • RE: Error Handling

    On another note, you really do not need to be using dynamic SQL here.  I stayed with it for my example, but if you are passing in the object name...

    John Rowan

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

  • RE: Error Handling

    I think for what you want to do here, this is not really a question of handling the error.  What you want to do here is to check for the existance...

    John Rowan

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

  • RE: Cannot restore - Database in use even after kill process

    If you can restore it using EM and your SP_WHO2 does not show connected users, your restore should work.  Are you sure you are restoring to the correct DB?  Are...

    John Rowan

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

  • RE: another about null column question

    Basically, just like you did in the SELECT clause.

    declare @such nvarchar(52)

    set @such = '%' + @Suche + '%'

    SELECT

        ResponsibleNI,

        isnull (ResponsibleBZ1, ' ') as ResponsibleBZ1,

        isnull (ResponsibleBZ2, '1') as...

    John Rowan

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

  • RE: another about null column question

    I'm not real sure what you are trying to do here, but your query will not return any rows if either ResponsibleBZ1 or ResponsibleBZ2 are NULL.  A NULL value +...

    John Rowan

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

  • RE: Noobie help! Weird Schema.

    The table name is Employee.  EmployeeID, FirstName, LastName, and HireDate are all column names.  They've separated the EmployeeID column so that they could mark it as being the Primary Key.

    John Rowan

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

  • RE: Divide by question

    Converting it to an integer will not get you what you want.  The result of COUNT() is an integer.  Since integers are whole numbers, dividing integers by integers will generate a...

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