Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7752505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:49:06+00:00 2026-06-01T11:49:06+00:00

I have the Execute SQL Script package that contains the script to insert about

  • 0

I have the Execute SQL Script package that contains the script to insert about 150K records.

Problem in here is when I execute the package in the Virtual machine its taking 25 min’s approx and the same package in physical machine its taking 2 min’s

Question 1? Why its taking that much time to load the same data in VM.
Question 2? How to solve this performance issue.

Physical machine configuration has 4GB Ram and 250GB HD + Windows server 2008 R2 + SQL server 2008 R2 Standard Edition.
Virtual machine has the same Configuration

Update: The Problem is with the SQL Server in VM.

Question 1? Why its taking that much time to Run the same script in VM.

Question 2? How to solve this performance issue.

Both the batabases schema in Physical Machine and VM are identical. Other databases are also same. There was no indexing applied for that tables in both machines. Datatypes are same. harddisk as I said has the same configuration.

No RAID is done on both the machines.

Physical machine has the 2.67GHz RAM Quad Core and in the virtual machine has the
2.00GHz RAM Quad Core

Version of SQL PM:

Microsoft SQL Server 2008 R2 (RTM) – 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1)

Version of SQL PM:

Microsoft SQL Server 2008 R2 (RTM) – 10.50.1600.1 (X64) Apr 2 2010 15:48:46 Copyright (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.1 (Build 7601: Service Pack 1) (Hypervisor)

I executed the script Execution plan for both are the same as there is no difference in plan.

Vendor is HP ML350 Machine.

There are almost 20 VM’s on the same physical server out of which 7 servers are active.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:49:07+00:00Added an answer on June 1, 2026 at 11:49 am

    There’s an article about properly setting SQL’s configuration for a VM implementation here: Best Practices for SQL Server. Below is an excerpt, though the article includes other tips and a good performance testing plan:

    Storage configuration problems are the number one cause of SQL performance issues. Usually these problems arise because the DBA requests a virtual disk of the VI admin, the VI admin places the VMDK on a LUN that may or may not meet the DBA’s performance needs. For instance:

    1. VMs’ VMDK files placed on VMFS volumes without enough spindles.
    2. Many VMDK files placed on a single VMFS volume which could use more spindles.
    3. Database and log files placed on the same LUN which, you guessed it, could use more spindles.

    This may be obvious to some, but this problem occurs again and again. The VI administrator should be aware of a few technical items that can help understand and avoid this problem:

    1. Based on the IO demands of the DB files, a certain number of
      spindles should be guaranteed to this file. This means that its
      VMDK must be placed on a VMFS volume to accout for the SQL Server’s
      demands and all of the other demands on that volume.
    2. Mixing sequential activity (such as log file update) and random activity
      (such as database access) results in random behavior. This means
      that the LUN configuration in the pre-virtual physical environment
      may not be sufficient for the consolidated environment. This is
      discussed some in Storage Performance: VMFS and Protocols.
    3. When storage isn’t meeting the SQL Server’s demands, the device latency
      or kernel latency (queueing time) will increase. Read up on these
      counters in Storage Performance Analysis and Monitoring.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a SQL Script that I execute in a job to transform tables
I have this sql script that I would like to execute in a java
In my package, I have an Execute Sql Task that sets the result set
Hello I have a very large SQL script and while trying to execute it
I have a script task that executes a dynamically created SQL restore statement. This
SSIS (SQL 2005) packages that have a script task that invoke custom .NET dlls
I have a sql script file that upon import creates a table in a
I have a KornShell (ksh) script that logins into SQL*Plus and executing a script.
Do I have to parse the SQL-script manually and execute each statement separately or
I have a SQL stored procedure that I need to execute several times with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.