SQL 2014 performance

We have a fresh install of SQL 2014 running on Windows 2012 R2 running in Production. 
We tested this extensively first and most of our code ran as fast as SQL 2012 or slightly better. 
Pure engine processes such as Backup jobs run about 30% faster. 
However, now that we’re in Production for the first day we’re seeing some very sporadic performance. 
For example, 90% of our jobs are running just fine.  10% of the jobs are running significantly longer. 
Jobs that used to take 7-8 minutes are now running in 40 minutes plus. 
Not only is this slowing down our server in general but it’s causing a lot of blocking issues.
We’re convinced this is a SQL 2014 issue and not hardware. 
Using iometer we can tell that this server outperforms our old server. 
SQL doesn’t always substantiate the numbers we’re seeing from iometer as far as performance compared to our old server.
We’re running on RTM, not Cumulative Update 1.
Our hardware is a beast of a server; DL580 G8, 384 GB ram, only 2 physical hard drives (running the OS/SQL) and the rest are Fusion iO cards. 
We have 9 total Fusion cards for the database, log and tempdb. 
Our old server is also a very robust server: DL380 G8, 384 GB ram, 48 physical drives and 2 Fusion iO cards for tempdb.
Has anyone else deployed SQL 2014?  Has anyone else encountered these sporadic performance issues? 
If so, did cumulative update 1 fix the issues?
Separate question: If I put my database in 2012 compatibility mode and do a backup, can SQL 2012 read the SQL 2014 backup?
Thanks in advance,
André
André

We applied CU2 last night.  Things seem to be better this morning but we're still seeing some differences between SQL 2012.  Here are 2 of the biggest issues we're seeing.
1 - views are slow.  We have queries that use views that are taking forever.  In some cases the view might be a simple "select 10 fields from table" type of views.  If we change our query to use the base table instead of the view, the query
finishes very quickly.  As an example, a query using the view takes 3 minutes.  If we change the query to use the base table instead of the view it finishes in 5 seconds.
2 - inner joins are slow compared to "not exists" or "exists".  Back when we migrated from SQL 2000 to 2008 we were told that joins were faster, so we migrated our code to use joins and our code flew.  Now we're seeing performance issues on some,
but not all, queries that use joins.
3 - inner joins are not able to see the outside table.  For example, this query worked just fine in SQL 2012, and it throws an error in 2014
select
top100
fromcustomers c(nolock)
inner
join(selectcorpnumber,fdate,code
fromdbo.FN_Customers_ParseCodes(c.rcode,c.corpnumber,c.fdate))r
onr.corpnumber=c.corpnumber
where
c.importtimestamp='2014-06-30
15:37:17.347'
and
c.customerid='123'
The error it throws is:
Msg 4104
,Level16,State1,Line
2
The multi
-part identifier "c.codes" could
notbe bound.
Msg 4104
,Level16,State1,Line
2
The multi
-part identifier "c.corpnumber" could
notbe bound.
Msg 4104
,Level16,State1,Line
2
The multi
-part identifier "c.fdate" could
notbe bound.
André

Similar Messages

  • Best practice configuration for SQL 2014 to achieve HA when hosted on Hyper-V 2012R2 cluster

    Hi,
    I've had a hunt around but so far I've not found a conclusive answer to my question.  I am currently moving from a SQL 2008R2 (physical tin) failover cluster to a virtual environment build on Hyper-V 2012R2.  I am building everything with SQL 2014
    SP1.
    I want to achieve the same level of high availability that I currently have and at the same time make sure that I can replicate (DR) data offsite (Azure) in the future.  I have two options with SQL which are clustered instance (basically the same as
    I have now) or AlwaysOn Availability Groups for database level HA. 
    I am unsure which is the best method to use when the SQL nodes are highly available guests on Hyper-V, trying to imagine how the guests will all move around in the case of a host server failure is a bit mind boggling to say the least.
    I am leaning towards a instance failover but I would appreciate any input/advice etc.
    Thanks
    Rob

    Hi Rob, 
    To start with I will not be installing SQL Server 2014 with SP1, as SP1 has bugs and Microsoft has disabled its download. See reference: http://www.eweek.com/database/microsoft-halts-sql-server-2014-sp1-downloads.html
    With regards, I would go for AlwaysOn Availability Groups configuration, because it has several benefits:
    You will get same amount of high availability you normally get with native cluster configuration, if you use AlwaysOn configuration. However, AlwaysOn configuration provides more granular high availability, and fail-over are invisible to the application,
    if you using Availability Group listener to connect to server. 
    You can offload read-only workloads to secondary replica.
    You can perform transaction log backups on secondary replica.
    Reduce production downtime during patching or other planned work on the server.
    So in short, you should use AlwaysOn configuration. 
    Regards,
    Basit A. Farooq (MSC Computing, MCITP SQL Server 2005 & 2008, MCDBA SQL Server 2000)
    http://basitaalishan.com
    Please remember to click "Mark as Answer" on the post that helps you, and to click
    "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • SQL Server Data Tools for SQL 2014 setup

    Hello,
    I have been using SQL server 2008 with Visual Studio 2008 to perform the ETL processes.
    I have recently got SQL 2014 and realized that Business Intelligence Development Studio does not come with it so I have to download SQL Server Data Tools for Visual Basics 2012 or 2013 from:
    https://msdn.microsoft.com/en-us/data/hh297027
    Can someone advise what exactly I have to do if I want to start using SQL  2014 with SSDT? I still have VB 2008 installed and all my packages were created with that version.
    Do I need to download VB 2012 or 2013 plus SSDT and then SSDT? Do I also uninstall VB2008?
    Thanks in advnce

    Hello,
    If you want to keep developing packages for SQL Server 2008 then you need to use BIDS 2008, you cannot use SSDT.
    If you want to upgrade BIDS projects to SSDT, then you can use Integration Services Project Conversion Wizard from Visual
    Studio or SSIS Package Upgrade Wizard from SQL Server Management Studio (SSMS).
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Migration of the database from Microsoft SQL 2014 Express to Microsoft SQL 2012 Server

    I posted a similar thread yesterday, and I realized that there was a serious typo.
    Link: https://social.msdn.microsoft.com/Forums/sqlserver/en-US/b3e201ea-6c7c-43a4-8908-842b714ea451/migration-of-the-database-from-microsoft-sql-2014-express-to-microsoft-sql-2012-server?forum=sqlservermigration
    Therefore, I made a decision to post another thread right now.
    I am
    writing to ask if there are any known issues when migration from MS SQL 2014 Express to MS SQL 2012 Server version. Are there any step-by-step instruction on how I can go about doing this?
    Looking forward to your response. Thank you for your time.
    Regards,
    Jeff Yoo 

    Hello,
    SQL Server 2012 setup program won’t allow you to perform a downgrade from SQL Server 2014 Express Edition. Backup/Restore
    and Detach/Attach won’t help you either.
    One option you have left is using SQL Server Import/Export Wizard as explained on the following article.
    http://www.mytechmantra.com/LearnSQLServer/Downgrade_SQL_Server_Database_P1.html
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SQL 2014 RTM and Sql 2008r2 standard side by side installation ..

    We are planning on reconfiguring our database server and then installing SQL 2008 R2 Standard edition in a side by side installation with SQL 2014 RTM. I have researched a little, and have not seen any major issues when planning this type of configuration.
    Are there any issues that may occur with this?
    2008 R2 will be in the default instance, and 2014 will be using a named instance. We do foresee uninstalling 2008 R2 after a period of time, and moving all of our databases to 2014 after testing has been performed. Once we uninstall 2008 R2, will we be able
    to install a default instance of 2014? Are there any special steps that need to be taken to do that?

    Hello,
    If possible install the SQL Server 2008 R2 instance first, then install SQL Server 2014. Through the years, the formula
    of installing the older versions of SQL Server first has proved to be a winner for me.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • SQLEXPRWT_x64_ENU.exe for SQL 2014 express seems to be incomplete?

    Hi,
    I have downloaded the executable SQLEXPRWT_x64_ENU.exe for SQL 2014 express several times, but every time I run the executable, when it is almost done extracting I get the error: Extraction failed.
    When I run the setup.exe in the directory where the extracted files reside, the installation will eventually fail with the error it is missing files (which sounds logical seen the previous error).
    So it occurs to me that the "SQL 2014 Express With Tools" executable (SQLEXPRWT_x64_ENU.exe) found at http://www.microsoft.com/en-us/download/details.aspx?id=42299 is broken.
    Anyone with the same issues or have any idea where I can download the correct executable?
    By the way the total size of the separate downloads of the management tools and the sql express version is larger than the download with the tools included:
    SQLEXPRWT_x64_ENU.exe = 833.2 MB
    SQLEXPR_x64_ENU.exe + SQLManagementStudio_x64_ENU.exe = 880.6 MB
    For me this confirms my suspicion 
    Regards,
    Erik

    Hi,
    Based on your description there IS something wrong with the download. Have you actually downloaded it and tried what I am describing, so you can rather base it on experience than just a description?
    1. If I need a third party application to successfully extract a self-extracting executable, than to me there is something wrong with the download.
    2. the /X makes no sense because I get the same specify location dialogue box if I just run the executable.
    Taken all the above into account including the size differences mentioned in my starting post, to me the self extracting executable is still broken/faulty/incomplete.
    Hi Erik,
    Actually, I have done a test, firstly downloaded the SQLEXPRWT_x64_ENU.exe file from the same website:http://www.microsoft.com/en-us/download/details.aspx?id=42299, and extracted it from the command prompt, and then I installed the SQL 2014 Express on my computer
    successfully.
    Since your self-extracting executable is still incomplete.I recommend you to check if there is an anti-virus software or other third-party software on your computer blocking the process of downloading, also you can try to download the SQLEXPRWT_x64_ENU.exe
    file from a different browser, and check if you can implement the extraction successfully.
    In addition,this issue might also be caused by your Internet Service Providers (ISP). In order to enhance the network performance, some ISPs may deploy cache servers, when you download the SQLEXPRWT_x64_ENU.exe file from Microsoft official website, it
    will redirect your installation media file to the local cache server, and it might cause the download file to be broken, then you encounter the error when extracting file. I recommend you to contact to your ISP to solve the problem, then download again
    and check if it can extract successfully .
    Thanks
    Lydia Zhang

  • Evaluation period has expired SQL 2014

    Today we have started getting this error when we try to open SQL Server 2014 Management Studio.The install was done using the correct media with the appropriate product key.
    I have:
    Gone through the process of an Edition Upgrade on all my Instances and Shared Features
    Uninstalled Shared Features and reinstalled.
    Tried editing the registry key, CommonFiles from 1 to 3 under
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\120\ConfigurationState (120 as this is an install of SQL 2014). I have also tried switching this back to 1 and re-running the Upgrade.
    I have rebooted the server several times but I am still not able to open the Management Studio.
    I notice this was an issue in 2008 but I cannot find any fixes for 2014.
    Thanks.

    Hi,
    Below support article is applicable to 2014 as well
    https://support.microsoft.com/en-us/kb/971268?wa=wsignin1.0
    after changing Registry did you performed points 7 and 8
    7. Rerun the edition upgrade procedure to complete the upgrade of all the components to a licensed edition.
    8. After the edition upgrade is complete, refer to the following Knowledge Base article to prevent issues with future updates to the instance.
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP
    With the exception of point 8 I have followed these steps and am not having any joy. The REG value is changed to 3 and I have rerun on all instances and also the shared components. I have rebooted but still receive the error

  • Sql 2014 std use few memory

    i implement sql 2014 std on server 2012 r2   on hyper-v
    server has memory 30 GB
    but memory use few  about 16%  always
    i setting
    maximum server memory in mb = 2147483647
    minimum server memory in mb = 10240
    why sql service  not use memory more i think if use more is better performance 
    best regards
    chatchai-netd

    If you have 30GB at OS level then please configure the memory correctly...
    maximum server memory in mb = 2147483647
    minimum server memory in mb = 10240
    May be based on the load you can consider using 80% to sql and 20 % to OS or 70% to SQL and 30 % to OS ( but its all based on your SQL and OS usage ).
    If your sql is not using more memory then that means sql instance is not performing too many transactions and load is very less.
    Check what is running on your server and it will take memory and other resources based on the needs and work load.
    http://msdn.microsoft.com/en-nz/library/ms178067.aspx
    http://www.sqlskills.com/blogs/jonathan/how-much-memory-does-my-sql-server-actually-need/
    Configure using scripts :
    sp_configure 'show advanced options', 1;
    GO
    RECONFIGURE;
    GO
    sp_configure 'max server memory', 25000; -- ( 25 GB )
    GO
    RECONFIGURE;
    GO
    Raju Rasagounder Sr MSSQL DBA

  • SQL 2014 cluster shared volume

    Hi,
    I have testing SQL 2014 cluster in my lab to see how it's performing. 2xserver 2012r2 (virtual machines). There are some weird issues that are putting me in dust.
    1. If I try to backup/restore database, I cannot select data path from gui. (I cannot "browse")
    2. I cannot connect applications to databases (sqlclustername\instance)  - permissions denied on cluster shared volume.
    Can you please give me a hand on this?
    Thank you.

    Please check Symantec Backup Exec 2014 it works with CSV. 
    remove the CSV from the failover cluster manager and then try to point the tool and see if it is able to see the volumes without CSV.
    http://www.symantec.com/business/support/index?page=content&id=TECH205833
    Hope this helps.
    Please Mark As Answer if it is helpful. \\Aim To Inspire Rather to Teach 

  • SQL 2014 FCI+AG on Clustered Shared Volumes design

    Hello,
    I was assigned the task to design a new SQL 2014 environment for my company. Our current environment consists of two clusters of 4 nodes each (8 nodes total for the two clusters) in two datacenters (let's say LA & NY).
    Each datacenter is both primary & DR for different applications. Each cluster is active/active and has 9 SQL instances - 1 DEV/2 UAT/4 PROD/2 DR. 
    We are using Windows Server 2008 R2 SP1 + SQL 2008 R2 SP2 FCIs for HA + DBM for DR, storage is symmetric, LUNs are coming from NetApp SAN filers. 
    Due to the consolidated nature of the current SQL clusters (some hold 100+ DBs for different applications), the new platform - Windows 2012 R2 and that one WSFC cluster will be used, I decided to go with a new build instead of upgrade.
    My plan for the migration to SQL 2014 is as follows:
    1. Evict two nodes from each cluster, the 9 SQLs in each datacenter will run on two nodes and I will have two nodes more per site to build the new environment. 
    Average CPU utilization for each node is 10-20%, total max memory of all SQL Servers per site is 256GB RAM, each node has 2 CPUs x 8 cores each with 256GB RAM. SQLs will still run on two nodes with reasonable performance.
    Since the same number of cores is used and we pay SA, there will be no increase in licensing costs for the time of migration to SQL 2014 and to obsolete the SQL 2008 R2 environment.
    2. The new cluster will consists of 4 nodes with Windows 2012 R2 (2 in NY and 2 in LA) and will have Node+FileShare majority quorum model with Cluster Managed voting enabled. 
    3. New SQL 2014 FCIs will be built (9 per site) and will use Clustered Shared Volumes + AlwaysON Availability Groups. Once the new environment is built, databases will be migrated by backup/restore.
    Since we will have AlwaysON FCIs+AlwaysON AGs I'm aware that automatic failover cannot be used and the complications with addition of data files on primary databases, that's fine (file paths will be different of primary and DR SQL instances).
    My question is - is this a supported configuration from Microsoft - AlwaysON AGs running on CSVs in a multi-site cluster? 
    I am aware that CSVs are something new for the SQL world, so what are the things I should take into consideration when building this solution? Are there any pitfalls to be wary of?
    Any suggestions will be much appreciated.
    Thank you in advance,

    First, consider building a separate Hyper-V cluster in each data center, and running SQL Server in VMs. 
    In your proposed configuration if you loose connectivity between your data centers, half of your nodes will loose quorum and go offline.  It's simpler to maintain quorum seperately in each data center when trying to run active-active. 
    Hyper-V adds a bunch of useful stuff, like live migration, storage migration, and basic HA and DR without guest clustering.  And the implementation of Hyper-V on CSV is a very common pattern. 
    You can then present shared hard disks to your SQL VMs to create a FCI on a guest cluster.  See
    Deploy a Guest Cluster Using a Shared Virtual Hard Disk
    Or you can simply use stand-alone instances on the guests, and use AlwaysOn AGs for rolling upgrades and DR.
    That said, you proposed configuration is supported.  It's a variant of the solution outlined here
    AlwaysOn Architecture Guide: Building a High Availability and Disaster Recovery Solution by Using Failover Cluster Instances and Availability Groups
    The cluster would have asymmetric storage, with the nodes in each data center sharing LUNs (whether on CSVs or not), but the LUNs in a data center would not be visible to the nodes in the other datacenter.  You can and should use the same path names
    on the primary and DR instances, as outlined in the whitepaper.  This is important because otherwise file and filegroup operations will suspend the AlwaysOn data movement.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Moving SCCM 2012 R2 SQL 2014 Database to New Server

    Greetings,
    I have a SCCM 2012 R2 server with SQL 2014 installed which has been upgraded from SQL 2008 R2.  My goal is to separate the SCCM and SQL servers.  I am aware that SCCM only supports SQL 2014 if it has been upgraded on new installs, but after installing
    SQL 2014 on a new server and importing the database I get an error from the Configuration Manager Setup stating that I must upgrade the SQL server before I can modify the SQL Server configuration.  
    Does this mean I need to install SQL 2008 or 2012 on the new DB server and from there upgrade to SQL 2014?

    Thank you for your reply.  We have been having several issues with our current server, and have had performance issues with SQL and SCCM installed on the same server mainly during OSD deployments to several machines at the same time.  These servers
    wouldn't necessarily need to be separated since we can allocate more resources, but the overall goal is to move our primary site server to a new server running Server 2012 R2 (current server is 2008 R2).
    I have tried the site recovery option in the installer where you run the SCCM backup and restore maintenance task and I have renamed the new server to the name of the old server.  If I understand correctly, this is the correct method of switching out
    a site server machine?  I experience the same error as my original post when trying this, but I will try the hotfix Torsten provided as this seems to be the issue I'm having.
    Thank you.

  • SQL 2014

    We
    have been going to plan migrate 2005 to 2014, so that what
    is the syntax need to correct ?what are the other dis-compatibility sources available  
    for sample we are getting below issue 
    We're having an issue with SQL Server 2012 due to the presence of =* (RIGHT OUTER JOIN) operator.
    1. there is any auto find  option to which  sps we have used and correct 
     KINDLY ASSIST TO US...
    baskarlakshmi

    Start with
    http://msdn.microsoft.com/en-us/library/ee210467.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Restore Log with Standby Mode on VHDX disk problem - hotfix for SQL 2014 needed

    Restore Log with Standby Mode on Virtual VHDX disk cause a 9004 error in SQL Server 2014 ( test performed on Web edition and Standard version )
    Similar Bug for SQL 2008R2 is already registered with number hotfix
    KB2987585
    Restore operations always fail in Hyper-V R2 Server in situations ( text copied from
    KB2987585 page )
    The primary database has its transaction log file (.ldf) stored on a disk that has "Bytes per Physical Sector" set as 512 bytes.
    You take the transaction log backups of this database, and then you try to restore it by using the standby option on the secondary database.
    The secondary database transaction log file (.ldf) is located on a VHDX disk that has "Bytes per Physical Sector" set as 4,096 bytes.
    In this scenario, the restore operation fails and returns the following error message:
    Error: 9004, Severity: 16, State: 6.
    An error occurred while processing the log for database '<databasename>'. If possible, restore from backup. If a backup is not available, it might be necessary to rebuild the log.
    After this error occurs, the secondary database goes into a suspect state.
    So restore from Generation1 to Generation2 machine ( where only VHDX disk is possible ) always fails and database is not accessible.
    Please create hotfix for SQL 2014 version

    Please create hotfix for SQL 2014 version
    This is a community forum, no one of use can create a hotfix for SQL Server.
    Raise a case at Microsoft Support or create an entry at MS Connect:
    http://connect.microsoft.com/SQLServer
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • SQL 2014 Exp Wont Install Win 8.1

    Hello All,
    Im really struggling to install SQL 2014 express on my windows 8.1  SL pc. x64
    i installed SQL 2008 first but when i tried to install the studio management, it refused to work.
    so i redownloaded the latest setups. ive tried both 32bit and 64bit
    SQLEXPR_x86_ENU.exe 172mb
    SQLManagementStudio_x86_ENU.exe 689mb
    It just stays on the one screen after the landing page. ive left my pc for 6 to 8 hours...
    ive tried this more than once... and no luck...
    Note i have cleaned the registry and directorys each time.
    Logs------------
    http://1drv.ms/1pJFzTq
    http://1drv.ms/1pJFAXC

    I am little confused are you trying to install SQL server 2008 express or SQL server 2014 express.
    You should first refer to
    Hardware and Software requirements for installing SQL server 2014
    You should also read Installing SQL server On windows 8
    Finally when you are ready download
    SQL server 2014 express
    Edit: reg logs you posted it seems your machine where you are installing SQL server does not have internet connection. Internet connection is required for installation of SQL server 2014 express read Hardware and software requirements.
    06) 2014-05-30 03:21:36 Slp: Microsoft.SqlServer.Setup.Chainer.Workflow.ActionExecutionException: SQL Server Setup was not able to scan for product updates within 5 minutes. This can happen when there are Internet or network issues. ---> Microsoft.SqlServer.Configuration.SmartSetupExtension.MuSelectServerTimeoutException: SQL Server Setup was not able to scan for product updates within 5 minutes. This can happen when there are Internet or network issues.
    Please revert if any Issue.
    Hope this helps
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
    My TechNet Wiki Articles

  • (BUG??) Team Foundation Server 2013 Update 4 Support for SQL 2014

    Scenario: On Windows 2012 R2 x64 I have installed SQL, Reporting Services & AS 2014 (applied all updates through Windows Update), SharePoint 2013 Foundation, and installed Team Foundation Server 2013 RTM (did not configure).
    Before configuring TFS, I applied Update 4 to the server (not update 1,2 or 3 directly). When trying to configure I get the following error:
    ==========================
    TF255146: Team Foundation Server requires SQL Server 2012 SP1 (11.00.3000) or greater. The SQL Server instance you supplied is version 12.0.2254.0.
    TF400403: The Report Server instance specified is version 12.0.2254.0, the minimum supported version is 11.0.3000.
    TF400070: A required version of a component is not installed on the application tier. You must exit the Team Foundation Administration Console and install a supported version of either SQL Server Analysis Services of the SQL Server Client Tools on the application
    tier to ensure that the Analysis Services object model is present for warehouse processing.
    ====================================
    My understanding is that as of Update 2 (or was it 3) that SQL 2014 was supported. However it appears if that particular update is not installed directly it bypasses the check. Can someone verify I am seeing the intended result or is this a bug?

    Hi Jazzy,  
    Thanks for your post.
    And thank you for sharing your experience here. It will be very beneficial for other community members having the similar questions.
    All your participation and support are very important to build such harmonious/ pleasant / learning environment for MSDN community.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for