Forum Replies Created

Viewing 15 posts - 45,616 through 45,630 (of 49,571 total)

  • RE: How toenable identity insert in a dabase level

    Identity insert has to be set per table, and may only be on for one table at a time.

  • RE: query taking too much time

    My favorite was a java-based messaging app that passed all string literals as N'... despite defining the table with varchar columns.

    Net result, index scan of around a million rows to...

  • RE: query taking too much time

    ALZDBA (7/18/2008)


    We have recently had an issue where the same query on an equal table

    one using nvarchar, the other using varchar. (indexes same indexes on both objects)

    Implicit conversion issues?...

  • RE: query taking too much time

    Thanks for mentioning that you were running on SQL 2000.

    That particular query would be helped by an index on datep, however I thnk you have bigger problems than one query.

    Is...

  • RE: sysprocesses and blocking

    The query being run by the processes is in the st.text column, and it's almost the same as what fn_getSQLHandle would return.

    I've used this query for years to track blocking...

  • RE: sysprocesses and blocking

    roadtrain64 (7/18/2008)


    WEll thanks Gail

    But

    I want to capture blocking_session_id's commands and from where these commands come from?

    Did you run my code? The query been run is...

  • RE: query taking too much time

    Index definitions and execution plan please?

  • RE: query taking too much time

    Can you post the query please, the table definition, the index definitions and the execution plan?

    You get the exec plan by running the query in management studio with the Include...

  • RE: Transaction looking Table

    The following form of code will usually deadlock if run enough times.

    Connection 1:

    WHILE (1=1)

    BEGIN

    BEGIN TRANSACTION

    update Table1 SET SomeNumberField = SomeNumberField +1

    WAITFOR DELAY '00:00:30

    UPDATE...

  • RE: SQL Server does not allow remote connections

    LISETH_T (7/15/2008)


    'Call a function to create the sqlDatareader

    objDataReader = getReader("Select *...

  • RE: sysprocesses and blocking

    For SQL 2005, try this one. Create a table somewhere then have a SQL agent job doing the insert at whatever interval you like

    SELECT er.session_id, blocking_session_id, wait_type, wait_time, wait_resource, database_id,...

  • RE: SQL Server does not allow remote connections

    That error's the generic 'I can't connect' error. It could be because the server doesn't allow remote connections. It could be that the service is stopped, or there could be...

  • RE: Transaction looking Table

    Catcha (7/17/2008)


    Will above while loop causes deadlock?

    Not on its own. Deadlocks require two connections wanting locks that the other connection holds.

    It is a really, really inefficient way to do...

  • RE: Which plan is the most efficient one?

    Unsure (7/17/2008)


    Thank you.

    I will not use 'forceplan'. Will work with just the covering index.

    Thanks again.

    If you want any suggestions on improving the query more, please post the query, along with...

  • RE: Which plan is the most efficient one?

    Shamshad Ali (7/17/2008)


    And what about the style for selecting data between start and end?

    ----------------------------------------------------

    AND 7/14/2008 BETWEEN s.start_date AND s.end_date

    Please start a separate thread for your questions.

Viewing 15 posts - 45,616 through 45,630 (of 49,571 total)