Long time running query

  • Hi guys,

    i'm facing an issue :

    I execute a simple query, select * from mytable, and it takes 3 secondes from my computer.

    But when I execute this query on the server it takes less than a second.

    What could be the problem?

    Thank you,

    regards.

  • 1. Server is dedicated. No other application is running on it.

    2. Different hardware. More memory, Disk, CPU, etc.

    3. Different setup. Data and log file, tempdb, etc.

    4. Index, number of rows, fragmentation, etc.

  • Hello Suresh,

    from my computer I execute the query to the remote server.

    It's a dedicated server.

    Logs an datas files are on separate disks.

  • Network latency

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Yes that is the network setup - if it runs that fast on the server it isnt doing any additiona hops through routers and network traffic. Ask the network team to look into it and priority SQL traffic over over traffic

  • Ok thank you very much

  • Ok thank you very much

Viewing 7 posts - 1 through 6 (of 6 total)

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