This query taking long time for execution inthis case what should i do

  • HI all

    SELECT Rtrim(CUST_ACID),rtrim(pmt_id),rtrim(AC_NAME),rtrim(txn_amt),rtrim(pmt_rmks) from payawdb.dbo.pmts,acmt where payawdb.dbo.pmts.cust_acid=acmt.acid and bill_ref_info in

    ('57263259')

    1.this query is taking long time for execution and what should i do ?[production server ]

    2. it actually takes form one table to another from two databases

    3. can i check the indexes of these tables and if i rebuild will it increase performance ?

    4 or whether it will effect on production ??

    Thanks
    Naga.Rohitkumar

  • Please read this article. http://www.sqlservercentral.com/articles/SQLServerCentral/66909/[/url]

    At minimum, please post DDL for all involved tables including the indexes and an actual execution plan for the query.

    There are no special teachers of virtue, because virtue is taught by the whole community.
    --Plato

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply