SQL Server 2014 Always on HA takes 8-14 seconds to fail over. Application side timeouts occur

Hi All,
I have a very similar post in the SQL Server 2014 forums too (https://social.technet.microsoft.com/Forums/sqlserver/en-US/adb5e338-907e-4405-aa62-d3ea93c7a98a/sql-server-2014-always-on-ha-takes-814-seconds-to-fail-over-application-side-timeouts-occur?forum=sqldisasterrecovery) -
advice in the end was to post a question here.
SQL Server Nodes, 2014 (12.0.2480.0)
1 Share witness (on separate subnet)
1 Cluster
1 Listener
I have been testing the response time to failovers – both manual (right-click, fail over in SSMS) and Automatic (shut down the primary host). The way I am testing response is to have a SSMS query running on my desktop, connected to the listener querying
a small table and hit execute.
The Query response time, from execute to receiving the result, has been between 8 and 14 seconds based on my testing. My previous experience (in a separate environment) showed around 2 second fail over times in a very similar configuration.
Availability DB is 200Mb and is not actively used. The nodes are synchronised.
SQL Server Hosts: Windows 2012, 2 cpu, 8gb RAM.
Questions:
1: It’s a big question but what should I expect for a ‘normal’ fail over time. Keep in mind this scenario is about as simple as it gets.
2: As it stands an 8 to 14 second ‘outage’ could cause some applications to time out. Or am I being un-reasonable? I am seeing the very simple query in SSMS to time out with this:
Msg 983, Level 14, State 1, Line 2
Unable to access availability database 'DATABASE' because the database replica is not in the PRIMARY or SECONDARY role. Connections to
an availability database is permitted only when the database replica is in the PRIMARY or SECONDARY role. Try the operation again later.
Cluster logs are long - this section accounts for 8 seconds of the 11 second outage I experienced. I can supply the full log if required. Also this log is just the 2 cluster nodes, I removed the witness share to make sure it was as simple as possible.
00001090.00002128::2015/02/25-03:05:08.255 INFO  [GEM] Node 2: Deleting [1:65 , 1:71] (both included) as it has been ack'd by every node
00001ee4.00002130::2015/02/25-03:05:10.107 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:5b81e7bd-58fe-4be9-a68a-c48ba2aa552b:Netbios
00001090.00002128::2015/02/25-03:05:11.888 INFO  [GEM] Node 2: Deleting [1:72 , 1:73] (both included) as it has been ack'd by every node
00001090.00002698::2015/02/25-03:05:11.889 INFO  [GUM] Node 2: Processing RequestLock 2:49
00001090.00002128::2015/02/25-03:05:11.890 INFO  [GUM] Node 2: Processing GrantLock to 2 (sent by 1 gumid: 67)
00001090.00002698::2015/02/25-03:05:11.890 INFO  [GUM] Node 2: executing request locally, gumId:68, my action: /dm/update, # of updates: 1
00001090.00002128::2015/02/25-03:05:12.890 INFO  [GEM] Node 2: Deleting [1:74 , 1:74] (both included) as it has been ack'd by every node
00001ee4.00002130::2015/02/25-03:05:15.107 INFO  [RES] Network Name: Agent: Sending request Netname/RecheckConfig to NN:5b81e7bd-58fe-4be9-a68a-c48ba2aa552b:Netbios
00001090.00002128::2015/02/25-03:05:16.988 INFO  [GUM] Node 2: Processing RequestLock 1:28
Thanks in advance.
Keegan

Hi Keegan,
From these event log , what I can see is "Sending request Netname" wasted the time .
Could you please tell us the network configuration of that cluster nodes ?
If I recall correctly , it is recommended to only remain Tcp/IP protocol and disable NetBIOS over TCP/IP for "Private Network" , also do not configure DNS/Wins default gateway for "Private Network" :
https://support.microsoft.com/kb/258750?wa=wsignin1.0
After that please test again .
Best Regards,
Elton JI
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] .

Similar Messages

  • SQL Server 2014 active directory requirements

    Hi,
    Does anybody know if there are any issues or changes needed to be made on domain controllers, when installing/using SQL Server 2014 advanced services like Always On and In-Memory OLTP?
    Thanks.
    Calin

    Hello,
    No changes from previous version of SQL Server (2012). You only have to take in consideration the last section of the following
    article.
    https://msdn.microsoft.com/en-us/library/ms143506.aspx#DC_support
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Error when installing SQL Server 2014 Express

    I am running a Win 8.1 desktop 64bit (fully updated) with already installed SQL Server 2012 and Visual Studio 2010 and 2013 (non Express versions). I need to keep SQL Server 2012 for development purposes but also need SQL Server 2014 for a database
    provided to me by others which needs this version. I found out it should be possible to run the two versions side-by-side. During installation of SQL Server 2014 Express I selected all features except 'Local Db' and used a named instanc
    e. The setup runs through without any notice of problems but at the end fails with error code 1638 the reason being 'Error installing Microsoft Visual Studio 2010 Redistributables'. Also at the end a window pops up mention 'The working of SQL Server
    2014 stopped - Trying to find a solution'. Doing nothing on my part the window disappears and nothing else happens. So I uninstalled any 'Redistributable' and ran setup again. Same result though both 'Microsoft Visual C++ 2008 Redistributable
    - x86 9.0.30729.4974' and 'Microsoft Visual C++ 2010 x64 Redistributable - 10.0.40219' re-appear in Control Panel as being
    p
    roperly installed! All features are marked as 'failed' with one and the same error 1638. Even tried just upgrading to see if that would work but also here same error.  
    I have not been able to find the proper solution so I am now stuck. Hopefully someone can give me the right steps to take? Ruud van der Spoel

    Hello,
    Error 1638 means another version of the product is already installed. Probably you have a 32-bit version installed but
    the installation requires a 64-bit version of VC.
    Try to manually install both 32-bit and 64-bit versions of each VC.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Installing SQL Server 2014 Express package as ClickOnce prerequisite

    I'm using clickOnce and deploying an installer with it.
    I have tried various settings. Using SQL Server 2008 Express and SQL Server 2012 Express as prerequisite is all ok (I've dowloaded them and set the option of clickonce "download prerequisites from the same path of app").
    Now I'm trying to do the same thing with SQL Server 2014 Express.
    Since the SQL Server 2014 Express package isn't alredy done line 2008 and 2012 versiones, I'm trying to create it.
    I have done and it seems to work, but while installing it gives error number **-2054422506**. It is a very generic error and I don't understand it.
    It appears a pop up saying the installation is stopped because it is an error installing SQL Server Express 2014 and to look the log for more infos.
    The log only says:
        Installing using command     
        'C:\Users\VIRTUA~1\AppData\Local\Temp\VSD24F4.tmp\SqlExpress2014\
        SQLEXPR32_x86_ITA.EXE' and parameters '/q /action=Install /features=SQL
        /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is  
        /sqlsvcaccount="NT Authority\Network Service'
        Process exited with code -2054422506
        Status of package 'SQL Server 2014 Express' after install is 'InstallFailed'
    So, I've tried to install SQL Server 2014 Express manually, without ClickOnce, and it works. So I think I've made some mess in the xml file of the package.
    My package is so build (in C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\Bootstrapper\Packages\):
        \SqlExpress2014
             \it
                 SQLEXPR32_x86_ITA.exe
                 SQLEXPR_x64_ITA.exe
                 eula.rtf
                 package.xml
             product.xml
             SqlExpressChk.exe
    This is my package.xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <Package
    xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper"
    Name="DisplayName"
    Culture="Culture"
    LicenseAgreement="eula.rtf">
    <PackageFiles CopyAllPackageFiles="false">
    <PackageFile Name="SQLEXPR32_x86_ITA.EXE"/>
    <PackageFile Name="SQLEXPR_x64_ITA.EXE" />
    <PackageFile Name="eula.rtf"/>
    </PackageFiles>
    <InstallChecks>
    <ExternalCheck Property="SQLExpressChk" PackageFile="SqlExpressChk.exe" Arguments="11.0.2100 1040"/>
    </InstallChecks>
    <Commands Reboot="Defer">
    <!-- Defines a new installation (x86)
    /skiprules=RebootRequiredCheck /enableranu=1 /AddCurrentUserAsSqlAdmin /hideconsole
    -->
    <Command PackageFile="SQLEXPR32_x86_ITA.EXE"
    Arguments='/q /action=Install /features=SQL /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is /sqlsvcaccount="NT Authority\Network Service"
    /IAcceptSqlServerLicenseTerms /SQLSVCPASSWORD="234692Is" /SQLSYSADMINACCOUNTS="NT Authority\Network Service" /AGTSVCACCOUNT="NT AUTHORITY\Network Service"'
    EstimatedInstalledBytes="225000000"
    EstimatedInstallSeconds="420">
    <InstallConditions>
    <FailIf Property="VersionNT" Compare="ValueNotExists" String="InvalidPlatformOS"/>
    <FailIf Property="VersionNT" Compare="VersionLessThan" Value="6.0.0" String="InvalidPlatformOS"/>
    <FailIf Property="VersionNT" Compare="VersionLessThan" Value="6.0.2" String="InvalidPlatformOSServicePack"/>
    <FailIf Property="VersionNT" Compare="VersionEqualTo" Value="6.1.0" String="InvalidPlatformOSServicePack"/>
    <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
    <FailIf Property="SQLExpressChk" Compare="ValueEqualTo" Value="-1" String="InvalidUpgradeNotExpress"/>
    <FailIf Property="SQLExpressChk" Compare="ValueEqualTo" Value="-2" String="InvalidUpgradeNotExpressCore"/>
    <FailIf Property="SQLExpressChk" Compare="ValueEqualTo" Value="-3" String="InvalidUpgradeLanguage"/>
    <FailIf Property="SQLExpressChk" Compare="ValueEqualTo" Value="-4" String="InvalidUpgradeWoW"/>
    <FailIf Property="SQLExpressChk" Compare="ValueLessThan" Value="-4" String="GeneralFailure"/>
    <BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel"/>
    <BypassIf Property="SQLExpressChk" Compare="ValueNotEqualTo" Value="1"/>
    </InstallConditions>
    <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
    <ExitCode Value="1641" Result="SuccessReboot"/>
    <ExitCode Value="3010" Result="SuccessReboot"/>
    <!-- 0x84BE0BC2 (1214,3010) -->
    <ExitCode Value="-2067919934" Result="FailReboot"/>
    <!-- 0x84C10BC2 (1217,3010) -->
    <ExitCode Value="-2067723326" Result="FailReboot"/>
    <!-- 0x84BE0007 (1214,7) -->
    <ExitCode Value="-2067922937" Result="Fail" String="AdminRequired"/>
    <!-- 0x84C4001F (1220,31) -->
    <ExitCode Value="-2067529697" Result="Fail" String="AdminRequired"/>
    <!-- 0x84BE0001 (1214,1)-->
    <ExitCode Value="-2067922943" Result="Fail" String="InvalidPlatformOSServicePack"/>
    <!-- 0x84C4000E (1220,14) -->
    <ExitCode Value="-2067529714" Result="Fail" String="InvalidPlatformOSLanguage"/>
    <!-- 0x84C4000B (1220,11) -->
    <ExitCode Value="-2067529717" Result="Fail" String="AnotherInstanceRunning"/>
    <!-- 0x84BE01F8 (1214,504) -->
    <ExitCode Value="-2067922440" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE01FA (1214,506) -->
    <ExitCode Value="-2067922438" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE0202 (1214,514) -->
    <ExitCode Value="-2067922430" Result="Fail" String="InvalidPlatformArchitecture"/>
    <!-- 0x84BE0203 (1214,515) -->
    <ExitCode Value="-2067922429" Result="Fail" String="InvalidPlatformArchitecture"/>
    <ExitCode Value="216" Result="Fail" String="InvalidPlatformArchitecture"/>
    <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
    </ExitCodes>
    </Command>
    <!-- Defines an upgrade installation (x86) -->
    <Command PackageFile="SQLEXPR32_x86_ITA.EXE"
    Arguments="/q /hideconsole /action=Upgrade /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is /IAcceptSqlServerLicenseTerms /skiprules=RebootRequiredCheck"
    EstimatedInstalledBytes="225000000"
    EstimatedInstallSeconds="420">
    <InstallConditions>
    <BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel"/>
    <BypassIf Property="SQLExpressChk" Compare="ValueNotEqualTo" Value="2"/>
    </InstallConditions>
    <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
    <ExitCode Value="1641" Result="SuccessReboot"/>
    <ExitCode Value="3010" Result="SuccessReboot"/>
    <!-- 0x84BE0BC2 (1214,3010) -->
    <ExitCode Value="-2067919934" Result="FailReboot"/>
    <!-- 0x84C10BC2 (1217,3010) -->
    <ExitCode Value="-2067723326" Result="FailReboot"/>
    <!-- 0x84BE0007 (1214,7) -->
    <ExitCode Value="-2067922937" Result="Fail" String="AdminRequired"/>
    <!-- 0x84C4001F (1220,31) -->
    <ExitCode Value="-2067529697" Result="Fail" String="AdminRequired"/>
    <!-- 0x84BE0001 (1214,1)-->
    <ExitCode Value="-2067922943" Result="Fail" String="InvalidPlatformOSServicePack"/>
    <!-- 0x84C4000E (1220,14) -->
    <ExitCode Value="-2067529714" Result="Fail" String="InvalidPlatformOSLanguage"/>
    <!-- 0x84C4000B (1220,11) -->
    <ExitCode Value="-2067529717" Result="Fail" String="AnotherInstanceRunning"/>
    <!-- 0x84BE01F8 (1214,504) -->
    <ExitCode Value="-2067922440" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE01FA (1214,506) -->
    <ExitCode Value="-2067922438" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE0202 (1214,514) -->
    <ExitCode Value="-2067922430" Result="Fail" String="InvalidPlatformArchitecture"/>
    <!-- 0x84BE0203 (1214,515) -->
    <ExitCode Value="-2067922429" Result="Fail" String="InvalidPlatformArchitecture"/>
    <ExitCode Value="216" Result="Fail" String="InvalidPlatformArchitecture"/>
    <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
    </ExitCodes>
    </Command>
    <!-- Defines a new installation (amd64) -->
    <Command PackageFile="SQLEXPR_x64_ITA.EXE"
    Arguments='/q /hideconsole /action=Install /features=SQL /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is /enableranu=1 /sqlsvcaccount="NT Authority\Network Service" /AddCurrentUserAsSqlAdmin /IAcceptSqlServerLicenseTerms /skiprules=RebootRequiredCheck'
    EstimatedInstalledBytes="225000000"
    EstimatedInstallSeconds="420">
    <InstallConditions>
    <BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="amd64"/>
    <BypassIf Property="SQLExpressChk" Compare="ValueNotEqualTo" Value="1"/>
    </InstallConditions>
    <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
    <ExitCode Value="1641" Result="SuccessReboot"/>
    <ExitCode Value="3010" Result="SuccessReboot"/>
    <!-- 0x84BE0BC2 (1214,3010) -->
    <ExitCode Value="-2067919934" Result="FailReboot"/>
    <!-- 0x84C10BC2 (1217,3010) -->
    <ExitCode Value="-2067723326" Result="FailReboot"/>
    <!-- 0x84BE0007 (1214,7) -->
    <ExitCode Value="-2067922937" Result="Fail" String="AdminRequired"/>
    <!-- 0x84C4001F (1220,31) -->
    <ExitCode Value="-2067529697" Result="Fail" String="AdminRequired"/>
    <!-- 0x84BE0001 (1214,1)-->
    <ExitCode Value="-2067922943" Result="Fail" String="InvalidPlatformOSServicePack"/>
    <!-- 0x84C4000E (1220,14) -->
    <ExitCode Value="-2067529714" Result="Fail" String="InvalidPlatformOSLanguage"/>
    <!-- 0x84C4000B (1220,11) -->
    <ExitCode Value="-2067529717" Result="Fail" String="AnotherInstanceRunning"/>
    <!-- 0x84BE01F8 (1214,504) -->
    <ExitCode Value="-2067922440" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE01FA (1214,506) -->
    <ExitCode Value="-2067922438" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE0202 (1214,514) -->
    <ExitCode Value="-2067922430" Result="Fail" String="InvalidPlatformArchitecture"/>
    <!-- 0x84BE0203 (1214,515) -->
    <ExitCode Value="-2067922429" Result="Fail" String="InvalidPlatformArchitecture"/>
    <ExitCode Value="216" Result="Fail" String="InvalidPlatformArchitecture"/>
    <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
    </ExitCodes>
    </Command>
    <!-- Defines an upgrade installation (amd64) -->
    <Command PackageFile="SQLEXPR_x64_ITA.EXE"
    Arguments="/q /hideconsole /action=Upgrade /instancename=SQLEXPRESS /securitymode=SQL /sapwd=234692Is /IAcceptSqlServerLicenseTerms /skiprules=RebootRequiredCheck"
    EstimatedInstalledBytes="225000000"
    EstimatedInstallSeconds="420">
    <InstallConditions>
    <BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="amd64"/>
    <BypassIf Property="SQLExpressChk" Compare="ValueNotEqualTo" Value="2"/>
    </InstallConditions>
    <ExitCodes>
    <ExitCode Value="0" Result="Success"/>
    <ExitCode Value="1641" Result="SuccessReboot"/>
    <ExitCode Value="3010" Result="SuccessReboot"/>
    <!-- 0x84BE0BC2 (1214,3010) -->
    <ExitCode Value="-2067919934" Result="FailReboot"/>
    <!-- 0x84C10BC2 (1217,3010) -->
    <ExitCode Value="-2067723326" Result="FailReboot"/>
    <!-- 0x84BE0007 (1214,7) -->
    <ExitCode Value="-2067922937" Result="Fail" String="AdminRequired"/>
    <!-- 0x84C4001F (1220,31) -->
    <ExitCode Value="-2067529697" Result="Fail" String="AdminRequired"/>
    <!-- 0x84BE0001 (1214,1)-->
    <ExitCode Value="-2067922943" Result="Fail" String="InvalidPlatformOSServicePack"/>
    <!-- 0x84C4000E (1220,14) -->
    <ExitCode Value="-2067529714" Result="Fail" String="InvalidPlatformOSLanguage"/>
    <!-- 0x84C4000B (1220,11) -->
    <ExitCode Value="-2067529717" Result="Fail" String="AnotherInstanceRunning"/>
    <!-- 0x84BE01F8 (1214,504) -->
    <ExitCode Value="-2067922440" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE01FA (1214,506) -->
    <ExitCode Value="-2067922438" Result="Fail" String="BetaComponentsFailure"/>
    <!-- 0x84BE0202 (1214,514) -->
    <ExitCode Value="-2067922430" Result="Fail" String="InvalidPlatformArchitecture"/>
    <!-- 0x84BE0203 (1214,515) -->
    <ExitCode Value="-2067922429" Result="Fail" String="InvalidPlatformArchitecture"/>
    <ExitCode Value="216" Result="Fail" String="InvalidPlatformArchitecture"/>
    <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
    </ExitCodes>
    </Command>
    </Commands>
    <Strings>
    <String Name="DisplayName">SQL Server 2014 Express</String>
    <String Name="Culture">it</String>
    <String Name="SqlExpr32Exe">http://download.microsoft.com/download/1/6/E/16E343FB-7961-457C-A9C9-E6919F2B7188/Express%2032BIT/SQLEXPR_x86_ITA.exe</String>
    <String Name="SqlExpr64Exe">http://download.microsoft.com/download/1/6/E/16E343FB-7961-457C-A9C9-E6919F2B7188/Express%2064BIT/SQLEXPR_x64_ITA.exe</String>
    <String Name="AdminRequired">Non si dispone delle autorizzazioni necessarie per installare SQL Server 2014 Express. Rivolgersi all'amministratore.</String>
    <String Name="GeneralFailure">Errore durante il tentativo di installazione di SQL Server 2014 Express.</String>
    <String Name="InvalidPlatformOS">La versione del sistema operativo corrente non supporta SQL Server 2014 Express.</String>
    <String Name="InvalidPlatformOSServicePack">Il sistema operativo corrente non soddisfa i requisiti di livello di Service Pack per SQL Server 2014 Express. Installare il Service Pack più recente dall'Area download Microsoft all'indirizzo http://www.microsoft.com/downloads prima di continuare l'installazione.</String>
    <String Name="InvalidPlatformOSLanguage">La versione italiana di SQL Server 2014 Express può essere installata unicamente in un sistema operativo Windows nella stessa lingua.</String>
    <String Name="AnotherInstanceRunning">Un'altra istanza del programma di installazione è già in esecuzione. Per continuare, è necessario attendere il completamento di tale istanza.</String>
    <String Name="BetaComponentsFailure">È stata rilevata una versione beta di .NET Framework o SQL Server nel computer. Disinstallare le versioni beta precedenti dei componenti di SQL Server 2014, dei file di supporto di SQL Server o di .NET Framework prima di continuare.</String>
    <String Name="InvalidPlatformArchitecture">Questa versione di SQL Server 2014 Express non è supportata per l'architettura del processore corrente.</String>
    <String Name="InvalidUpgradeNotExpress">L'istanza di SQL Server denominata 'SQLEXPRESS' non è un'istanza di SQL Server Express. Impossibile eseguirne l'aggiornamento a SQL Server 2014 Express.</String>
    <String Name="InvalidUpgradeNotExpressCore">L'istanza di SQL Server Express denominata 'SQLEXPRESS' contiene componenti non inclusi in SQL Server 2014 Express. Impossibile eseguire l'aggiornamento di tale istanza in SQL Server 2014 Express. Utilizzare SQL Server 2014 Express with Advanced Services.</String>
    <String Name="InvalidUpgradeLanguage">L'istanza di SQL Server Express denominata 'SQLEXPRESS' è una versione in una lingua diversa rispetto a SQL Server 2014 Express. Impossibile eseguire l'aggiornamento di tale istanza.</String>
    <String Name="InvalidUpgradeWoW">Impossibile eseguire l'aggiornamento dell'istanza esistente di SQL Server Express (x64 WoW) denominata 'SQLEXPRESS' mediante SQL Server 2014 Express (x64). Disinstallare l'istanza esistente di SQL Server Express e riprovare a installare SQL Server 2014 Express (x64).</String>
    </Strings>
    </Package>
    And this is the product.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <!-- SQL Express 2014 VS Bootstrapper : product.xml : Language neutral information -->
    <Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="Microsoft.SqlServer.Express.12.0">
    <RelatedProducts>
    <EitherProducts>
    <DependsOnProduct Code=".NETFramework,Version=v4.5" />
    <DependsOnProduct Code=".NETFramework,Version=v4.0" />
    </EitherProducts>
    <!-- Also depends on MSI4.5 or greater, which is included on all of the OS levels supported (see package.xml) -->
    <IncludesProduct Code="Microsoft.Sql.Server.Express.1.0" />
    <IncludesProduct Code="Microsoft.Sql.Server.Express.9.2" />
    <IncludesProduct Code="Microsoft.Sql.Server.Express.10.0" />
    <IncludesProduct Code="Microsoft.SqlServer.Express.10.5" />
    <IncludesProduct Code="Microsoft.SqlServer.Express.11.0" />
    </RelatedProducts>
    <PackageFiles>
    <PackageFile Name="SqlExpressChk.exe" />
    </PackageFiles>
    </Product>
    I've copied the SqlExpressChk.exe file from the SQL Server 2012 Express package, hoping it is the same (2008 and 2012 versions seems the same, so I supposed it also for the 2014).
    I've delete the part in package.xml about the publicKey, since I don't know it and, further, I think I don't need it.
    In the same file, I've inserted custom parameters, first like in the 2008 and 2012 versions, then doing some attempts (without success).
    Did anyone have this problem? How did you have manage it?
    **NOTE**: I'm using my clickOnce deploy in an empty virtual machine, so there aren't any conflicts o something similar.
    More attempts, more failures, always the same error! I'm deleting the optional stuff to study better the core of the xml, but still no success.. does microsoft have a package of sql server 2014 express?

    refer to this link
    http://bootstrapper-manifest-generator-for-vs20.software.informer.com/2.0/
    remember make the reply as answer and vote the reply as helpful if it helps.
    thanks! =)
    SqlServer usually runs a file (SqlExpressChk.exe) to see if there is already an installation and a sql instance called sqlExpress (for the express installations). Do you know how can do this test with the bootstrapper manifest generator?
    I am not able to test it currently, but I assume that will also check whether that has installed.
    You have tested it, right?
    remember make the reply as answer and vote the reply as helpful if it helps.

  • SQL Server 2014 Express extract file parameter?

    I am working to bundle SQL Server 2014 Express with an application.  I am using the following command line to install via an InstallShield prerequisite:  /qs /INSTANCENAME=MYINSTANCE /ACTION="Install" /FEATURES=SQLEngine,Conn,SSMS
    /SECURITYMODE=SQL /SAPWD="Password" /TCPENABLED=1 /SQLSVCACCOUNT="NT AUTHORITY\SYSTEM" /IACCEPTSQLSERVERLICENSETERMS
    The installer I am using is SQLEXPRWT_x86_ENU.exe.
    When the installer starts up their is a dialog named:  Choose Directory for Extract Files.  In earlier versions of SQL Server Express this dialog did not require the user to press Ok to continue.  Since it takes several minutes to install
    SQL Server Express I prefer to show the installation to the user, so they can see that something is taking place.  The /q (Quiet) parameter will suppress this dialog, but nothing is seen for several minutes.  Note:  the Installer documentation
    does state that:  The /QS switch only shows progress, does not accept any input, and displays no error messages if encountered. The /QS parameter is only supported when /Action=install is specified.  Consequently, I believe the /QS parameter
    should not be requiring input.
    All that for these questions:
    1) Is there away to suppress this dialog while still using the /qs (Quiet Simple) parameter.
    2) Is there a parameter to tell the installer to extract the files to a specified location?
    Thanks,
    Les

    Hi,
    After you download the installation package of SQL Server Express 2014, and extracts it to the specified location, the dialog of “Choose Directory for Extract Files” will appear when you install the SQL Server Express. Usually, we need to use the following
    steps to extract the setup files to a temporary location.
    1.In the Command Prompt window type %USERPROFILE%\Downloads\ SQLEXPRWT_x86_ENU.exe /x
    2.When prompted to Choose Directory For Extracted Files type C:\SQLEXPR and click OK to extract the files.
    Or suppress the dialog to extract the right location in SQL Server Express 2008 or other lower version. Such as
    c:\temp>SQLEXPRWT_x64_ENU.exe /extract: "c:\temp".
    However, in SQL Server Express 2014, I do a test, we could not suppress the dialog or use the parameters directly to extract in command line. For more information about
    installing SQL Server 2014 from the Command Prompt, you can review the following article.
    http://msdn.microsoft.com/en-us/library/ms144259.aspx
    If necessary, personally, I recommend you can provide Microsoft a feature request at
    https://connect.microsoft.com/SQLServer so that we can try to modify and expand the product features based on your needs.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • TSQL working in 2008 but not in SQL Server 2014

    Hello,
    We recently have been asked to move from SQL Server 2008 to SQL Server 2014. We are trying to run parallel tests and one of our queries that was working perfectly in 2008 is not working in 2014.
    One of the filter on the our query(from 2008) is we convert a varchar field to date and compare it to anotehr calulated filed ("convert(date,Quick_Data_Start_Date) <= convert(date,(Year_ID_to_Use + '-' + Month_ID_to_Use + '-01'))").
    This worked fine in 2008 but when i try to do similar operation in 2014 it returns no result.
    For testing purposes, instead of converting the field to date format, i manully converted the actual value i.e. instead of using "convert(date,Quick_Data_Start_Date)" when i use "convert(date,'8/1/2014')" the code works fine.
    The field "Quick_Data_Start_Date" comes from a pivot query.
    When i create a temporary table for the pivot query and use the temporary table in  my code and then convert the field on fly the code works fine again.
    Seems like the T sql is not able to convert the field from varchar to date on the fly when coming from a different query. We have tried changing the compatbility level to 100 as well and it still would not work.
    Any suggestions and comments will be really helpful. Thanks.
    Regards,
    GM

    Hello, here is my overall review:
    The query is not optimized … agreed!  But that’s not the issue.
    There are a number of indexes that could be created, a number of minor calculations or evaluation criteria that could be improved to make the query more efficient … again – AGREED.
    The query “as is” runs in just under a minute (on SQL 2008 machine with less memory and slower hard drives).  Adding the indexes would take more time to add than they would save.
    NONE of that should make the query NOT WORK.  These deficiencies might make it run more slowly, but should not cause the query to return no results.
    “order by” shouldn’t make any difference because the query plan isn’t assuming or using any special order
    The main table (~10 M rows) is using a clustered index scan (not efficient, but not the point)
    The Time dimension table is using a non-clustered index seek (so the index is sorted but the data in the table is NOT physically sorted that way)
    The pivot subquery is using clustered index scan (it’s only 6 rows, so who cares)
    Once again, the order by might make it less efficient, but shouldn’t make it fail.  We get no errors or warnings – it just returns no rows.
    Because the query DOES return results when we 
    Either dump the Pivot query result into a #temp table(single row) and use the #temp table instead of the pivot query in the big SQL or  
    The “input” tables are limited to X rows but DOES NOT when the inputs have more rows
            This strongly suggests a memory issue.
    The server has 64 GB of RAM, but this probably isn’t enough to hold millions of rows and calculations.
    Can we turn on some traces to see what’s happening to the data in the query?  How and what are we looking for?
    Once the memory capacity is exceeded, SQL should be pushing these results to a temporary table (either in the local database or the tempdb).  Can we test to see if that is happening? 
    How?
    Is there a permissions issue?
    I have successfully done large copies outside of SQL (copied 300+ GB file from one location to another) that had to use the disk instead of just memory … means the disk write operation
    isn’t restricted from my user account.
    I can also confirm that the account that runs the SQL Service (“Network Service” account) has full permissions to the drives and paths where the mdf and ldf files are stored (including
    master and temp).
    If this doesn’t work, our upgrade is basically frozen and cannot proceed.  I’m really out of ideas … anything?

  • Issues enabling AlwaysON in SQL Server 2014 Standard

    Hi 
    I am trying to configure AlwaysOn and having issues enabling in SQL Server configuration manager
    OS : Windows Server 2012 R2
    SQL : SQL Server 2014 Standard Edition
    Here is what i see in config manager : 
    The AlwaysOn Availability Groups feature requires the x86(non-Wow) or x64 Enterprise Edition of SQL Server 2012 (or later version) running on Windows Server 2008 (or later version) with WSFC hotfix KB 2494036 installed. This SQL Server edition and/or Windows
    Server system do not meet one or more of these requirements.
    I patched both the nodes and ran the cluster validation as well which didn't report any missing patches. Couldn't find any documentation/solution for this. 
    Can someone please help me with this ???

    Thanks. 
    Is the configuration of Always on FCI is same as Traditional WSFC ?
    Yes just think of it as a regular clustered sql instance
     An FCI is a single instance of SQL Server that is installed across Windows Server Failover Clustering (WSFC) nodes
    and, possibly, across multiple subnets. 
    https://msdn.microsoft.com/en-us/library/ms189134(v=sql.110).aspx

  • DB-Library BCP issue with SQL Server 2014

    Hello,
    My application uses DB-Library (ntwdblib.dll) to communicate with SQL Server 2014. We are having issues calling bcp related functions like bcp_init which always returns FAIL status. Our application was working fine with SQL Server 2012 and all other previous
    SQL releases. But we are getting below error in SQL 2014,
    msg 4801, state 1, severity 16 : Insert bulk is not supported over this access protocol.
    Can anyone please help ?
    Thanks,
    Himanshu

    Hi Himanshu_kus,
    Is this still an issue, or can we close the thread?
    [Personal Site] [Blog] [Facebook]

  • SQL Server 2014 New T-SQL Features

    I have seen the following new T-SQL features:
    1. In-memory OLTP tables.
    2. Inline specification of CLUSTERED and NONCLUSTERED indexes is now allowed for disk-based tables.
    3. The SELECT … INTO statement is improved and can now operate in parallel.
    Any others?  Thanks.
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

    http://windowsitpro.com/sql-server-2014/top-ten-new-features-sql-server-2014
    http://www.sqlpass.org/sqlserver2014/Webinars.aspx
    Enhanced query processing for better performance without app changes.
    Buffer Pool extension to SSDs for faster paging.
    Resource Governor controls IO along with CPU and memory.
    Enhanced Always On now supports 8 secondary for better HA (High Availability

  • Sql Server 2014 Problem

    Hello,
       Can anyone help me that i installed sql server 2014 after installation when i open it it is asking for server name ,how to solve this problem?

    Hello,
       Can anyone help me that i installed sql server 2014 after installation when i open it it is asking for server name ,how to solve this problem?
    First please tell did you installed named instance or default instance. Did you installed licensed version/evaluation edition  or express edition.
    You always connect to SQL Server using SSMS like
    Hostname\instancename. You can go to Run type cmd and in command prompt type hostname the name returned is your hostname. Instance name is name of SQL Server instance which you created with installation ( if you created one or else it will be default instance)
    If it is default instance and not a SQL Express you can just type dot. Dot like
    . and can connect. If it is SQL express you can connect like Hostame\SQLEXPRESS.
    If it is named instance connect like Hostname\instancename.
    PS: Use account which you have added as administrator while installing SQL server as shown by Javier. if you selected mixed mode authentication you can connect by SA.
    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

  • SQL Server 2014 New Database Design Features

    SQL Server 2014 has three major database design related features:
    1. In-memory OLTP tables (Hekaton)
    2. Inline INDEX declaration in CREATE TABLE
    3. Updateable clustered columnstore index
    Any other new feature? Thanks.
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

    http://windowsitpro.com/sql-server-2014/top-ten-new-features-sql-server-2014
    http://www.sqlpass.org/sqlserver2014/Webinars.aspx
    Enhanced query processing for better performance without app changes.
    Buffer Pool extension to SSDs for faster paging.
    Resource Governor controls IO along with CPU and memory.
    Enhanced Always On now supports 8 secondary for better HA (High Availability

  • SQL Server 2014 reseting isolation level

    Hi,
    Working with C# application accessing SQL Server 2012 and 2014 using ADO.NET.
    There seem to be a change regarding isolation level reset when returning connection to pool.
    Previous versions of SQL Server does not reset the isolation level on the connection (unfortunately) as claimed here (http://support.microsoft.com/?id=972915).
    However it seems this has changed with SQL Server 2014.
    If running the attached code it shows that the isolation level in fact is reset when running against a SQL Server 2014 instance but not 2012.
    Can anyone on the SQL Server team confirm that this is an intended change that is here to stay? I have not seen any documentation on this so far in the behavior changes documented here: http://msdn.microsoft.com/en-us/library/ms143359.aspx
    class Program
    static void Main(string[] args)
    TestIsolationLevelReset();
    Console.ReadLine();
    public static void TestIsolationLevelReset()
    var connectionString = @"Data Source=(local); Integrated Security=true; Initial Catalog=master;";
    var commandText = @"select cast (transaction_isolation_level as nvarchar) + ' - ' + CAST(@@spid as nvarchar) from sys.dm_exec_sessions where (session_id = @@SPID)";
    using (var conn = new SqlConnection(connectionString))
    conn.Open();
    var cmd = new SqlCommand(commandText, conn);
    Console.WriteLine(cmd.ExecuteScalar());
    using (var tran = new TransactionScope(TransactionScopeOption.Required, new TransactionOptions() { IsolationLevel = IsolationLevel.Serializable }))
    using (var conn = new SqlConnection(connectionString))
    conn.Open();
    var cmd = new SqlCommand(commandText, conn);
    Console.WriteLine(cmd.ExecuteScalar());
    tran.Complete();
    using (var conn = new SqlConnection(connectionString))
    conn.Open();
    var cmd = new SqlCommand(commandText, conn);
    Console.WriteLine(cmd.ExecuteScalar());

    Is that possible to know, or must I always ask SQL Server what has been negotiated?
    The negotiated version is the highest version supported by both client and server.  According to
    http://msdn.microsoft.com/en-us/library/dd304523.aspx, the Server versions are:
    SQL Server 7.0 7.0
    SQL Server 2000 7.1
    SQL Server 2000 SP1 7.1 Revision 1
    SQL Server 2005 7.2
    SQL Server 2008 7.3.A
    SQL Server 2008 R2 7.3.B
    SQL Server 2012 7.4
    SQL Server 2014 7.4
    I can't speak to the exact TDS versions supported by SqlClient.  On my PC, .NET 4.0 and above against a SQL 2014 box used TDS 7.4 where as 3.5 and earlier used TDS 7.3. 
    Based on this, I wouldn't expect the isolation level behavior change if SQL Server 2012 and 2014 is the only difference.  What version of .NET are you using?
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • SQL Server 2014 Setup can't find instance configuration

    I was try to install the SQL Server 2014 express but it is not showing Instance Configuration when doing the installation.
    After finish the installation, the SQL Server services is not item listed.
    Could anyone help me?

    I was try to install the SQL Server 2014 express but it is not showing Instance Configuration when doing the installation.
    After finish the installation, the SQL Server services is not item listed.
    Could anyone help me?
    Its not possible that instance configuration page is not coming you must have downloaded wrong installable, I guess you downloaded SSMS installable.Please take help of below link to download and  install SQL Server 2014
    https://shipworks.freshdesk.com/support/articles/4000025881-manually-installing-microsoft-sql-server-2014
    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 Articles

  • SQL Server 2014: Resource pool 'Pool_AdventureWorks2012'

    Message after installing SQL Server 2014 in-memory  OLTP sample:
    A binding has been created. Take database 'AdventureWorks2012' offline and then bring it back online to begin using resource pool 'Pool_AdventureWorks2012'.
    This is the definition:
    CREATE RESOURCE POOL [Pool_AdventureWorks2012] WITH(min_cpu_percent=0,
    max_cpu_percent=100,
    min_memory_percent=0,
    max_memory_percent=80,
    cap_cpu_percent=100,
    AFFINITY SCHEDULER = AUTO
    min_iops_per_volume=0,
    max_iops_per_volume=0)
    GO
    How do I use it exactly?  Thanks.
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

    Hi Kalman Toth,
    According to your description, after you binding the database to the resource pool for binding to take effect via the system function
    sp_xtp_bind_db_resource_pool, You must take the database offline and back online. If your database was bound to an a different pool earlier, this removes the allocated memory from the previous resource pool and memory allocations for your memory-optimized
    table and indexes will now come from the resource pool newly bound with the database. Please refer to the following Transact-SQL statement.
    USE master
    GO
    ALTER DATABASE <your database name> SET OFFLINE
    GO
    ALTER DATABASE <your database name> SET ONLINE
    GO
    USE <database name>
    GO
    There are detail about binding a database with Memory-Optimized tables to a resource pool, you can review the following article.
    http://msdn.microsoft.com/en-us/library/dn465873(v=sql.120).aspx
    http://msdn.microsoft.com/en-us/library/dn465869(v=sql.120).aspx
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • SQL SERVER 2014 SSMS

    All right, I'm at wits end. After three weeks of downloading, installing, uninstalling, downloading … ad nauseam; SQL SERVER 2014 (SQLEXPRADV_64_ENU.exe) in an attempt to obtain Sql  Server Management
    Studio (SSMS). I’m working on a Lenovo Thinkpad with Windows 7 Professional. SQL Server 2014 is working fine. However, no where can I find the SSMS executable. I do find the SSMS icon file (ssms.ico), ssms.pkgdef,  ssms.pkgundef, ssms.splash.bmp, ssms.winprf
    all in C:/Program Files (x86)/Microsoft SQL Server/120/Tools/Binn/MangementStudio; but no ssms.exe.  In desperation I did reload SQL SERVER 2008 in order to have SSMS 2008 and it is up and running but doesn’t open the SQL SERVER 2014 database engine (therefore
    I have no access to my database with the 2008 tool).  How can I get SSMS 2014 up and running? I really hate to have to uninstall the current instance, re-download and install a new instance and then again find the SSMS executable isn’t there (that process
    takes a full day). Any suggestions would be greatly appreciated.

    All right. to wrap things up I finally gave up, uninstalled all the programs associated with SQL Server 2014 (about a one hour job), then again downloaded SQL Server 2014. After reading all I could about the various versions
    of the SQL Server downloads, I selected SQLEXPRWT_x64_ENU version instead of the advanced version that a tutorial suggested the first time I attempted to download the software. The SQLEXORWT is suppose to contain ssms. Once downloaded I went through the
    install process (another 3 hours) and low and behold there was the ssms executable.
    I was able to get everything up and running, able to connect my databases to ssms and able to get access to my database on Visual Studio 2012 through command line code. I decided to use the localDB database. The biggest problem
    I had in writing the connection string was that most of the instructions on the net indicated the Server name to be (localdb)\v11.0. This didn't work for me and after some searching and using the command line found the Server name on my machine was actually
    (localdb)\MSSQLLocalDB.
    I still have one irritating problem. Although I can connect SSMS to my databases, and although I can connect to the databases in Visual Studio through code, I cannot connect Visual Studio itself to the database. I can connect
    Visual Studio to the Server but not to the databases. When I attempt to connect to the database I get numerous error messages the two most prominentbeing "permission denied" and "Could not load file or assembly 'Microsoft.Sdk.Stc, Version=11.0.0.0,
    Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies" . Any thoughts on why Visual Studio 2012 won't connect to the databases would be greatly appreciated.
                T

Maybe you are looking for

  • Need help with project

    Hi all I'm working on a project and need help. I want the "New" button to clear all the fields. Any help? ======================================================= import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Message e

  • Outlook Web App login errors and VZ in-Home-Ag​ent says primary acct is invalid

    Here is some problems Im having with my email 1st the good things: I can access and have full use of my primary/sub accounts via Verizon web site and Outlook. 2nd the bad things: Outlook Web App gives me login in errors on primary and sub accounts VZ

  • HELP - Aperture 3.0.2 brushes are now slllooooowww

    I should have known better... After working somewhat flawlessly, I am now running at a snails pace. When I am reviewing images, everytime I switch to a different image, the "loading" symbol comes up to re-load the image. It's worse when I apply a bru

  • Profit Center Segment Change

    Hi, We have been using a segment on a profit center that is incorrect. There have been many postings to the profit center. I realize that I cannot change the segment directly in the master data of the profit center. What is the best way to approach t

  • Simple html5 image gallery

    Hi, Can anyone point me in the direction of a very simple (need to give this as a tutorial) but effective image gallery which can be added into a html5 website? Thanks