Create Assembly fails in SQL Server 2012 SP1 if an assembly is built with Platform Target as AnyCPU

Environment:
Windows 2008 R2.
SQL Server 2012 SP1 64 bit.
I have a .NET assembly built using .NET Framework 4.0 with Platform Target set to AnyCPU and Unsafe options. The assembly has dependency on few other assemblies and has unmanaged code also. When I run CREATE ASSEMBLY for this assembly I get the following
error message.
Assembly '<assembly name>' could
not be installed because existing policy would keep it
from being used.
However if I change the compile option to x64 instead of AnyCPU, I can successfully create the assembly. So my question : Does SQL Server 2012 64 bit requires assemblies that have Unmanaged code or makes calls to native libraries need to be built using x64
bit option? AnyCPU should not be used?
Thanks in Advance

Hello,
The default setting of a Visual Studio project is "Any CPU".SO on a 64 bit system this means the program will automatically run as a 64 bit application and on a 32 bit system it will automatically run as a 32 bit application. But if you have a dependency
assembly which is either x86 or x64, technically your project is therefore not "Any CPU" compatible. 
According to BOL: If the the assembly is 100% type safe which there is no dependencies on native code or COM objects and that there is no 'unsafe' code, it is possible to take the .NET executable
that you run on your 32-bit machine and move it to the 64-bit system and have it run successfully.
In your case, the issue may caused by the unsafe code and you should spcify the platform target to X64 to make is run on the 64 bit system.
Reference:http://www.hanselman.com/blog/BackToBasics32bitAnd64bitConfusionAroundX86AndX64AndTheNETFrameworkAndCLR.aspx
Regards,
Fanny Liu
If you have any feedback on our support, please click here. 
Fanny Liu
TechNet Community Support

Similar Messages

  • Failure to install SQL Server 2012 SP1 CU8/9 with a "Failed to retrieve data for this request." error

    Hi all,
    Has anyone come across SQL Server 2012 SP1 CU8/9 failing to install with a “Failed to retrieve data for this request.” error.
    The error is too generic for a useful search on web, for me at least anyway.
    Had no problems patching a whole bunch of other servers in the same environment.
    I’m no good at reading these error logs. For some reason the primary replica is referenced in the detailed log???
    The CU8/9 patch has been run by both Domain Admins and local Admin with no luck.
    We are trying to patch a secondary failover replica. (SharePoint 2013 is installed on this server.)
    This is from the summary log:
    Overall summary:
      Final   result:                    The patch installer has failed to update the shared features. To determine   the reason for failure,
    review the log files.
      Exit code   (Decimal):             -2146233088
      Exit facility   code:            19
      Exit error   code:                 5376
      Exit   message:                    Failed to retrieve data for this request.
      Start   time:                      2014-04-10 11:51:11
      End   time:                        2014-04-10 11:51:49
      Requested   action:                Patch
      Exception help link:            
    http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3412.0&EvtType=0xB2652E58%400xDC80C325&EvtType=0xB2652E58%400xDC80C325
    Machine Properties:
      Machine   name:                    VMSPDB2
      Machine processor   count:       4
      OS version:                      Future Windows Version
      OS service   pack:                
      OS   region:                       Australia
      OS   language:                     English (United States)
      OS   architecture:                 x64
      Process   architecture:          64 Bit
      OS   clustered:                    Yes
    Product features discovered:
      Product                Instance               Instance ID                     
    Feature                                    Language              
    Edition                Version         Clustered  Configured
      SQL Server   2012        MSSQLSERVER            MSSQL11.MSSQLSERVER              Database
    Engine Services                   1033                   Enterprise Edition  
    11.1.3000.0     No           Yes      
      SQL Server   2012        MSSQLSERVER          MSSQL11.MSSQLSERVER              SQL Server  
    Replication                     1033                   Enterprise
    Edition     11.1.3000.0       No           Yes      
      SQL Server   2012        MSSQLSERVER            MSSQL11.MSSQLSERVER              Full-Text
    and Semantic Extractions for Search   1033                   Enterprise Edition   11.1.3000.0       No        
    Yes        
      SQL Server   2012        MSSQLSERVER            MSSQL11.MSSQLSERVER              Data
    Quality Services                      1033                  
    Enterprise Edition   11.1.3000.0       No           Yes      
      SQL Server   2012                                                           
    Management   Tools -   Basic                   1033                  
    Enterprise Edition   11.1.3000.0       No           Yes      
      SQL Server   2012                                                           
    Management Tools - Complete                1033                   Enterprise Edition  
    11.1.3000.0       No           Yes      
      SQL Server   2012                                                           
    Client Tools Connectivity                  1033                   Enterprise Edition  
    11.1.3000.0     No           Yes      
      SQL Server   2012                                                           
    SQL Server Data   Tools                      1033                  
    Enterprise Edition   11.1.3000.0       No           Yes      
      SQL Server   2012                                                           
    Integration   Services                       1033                  
    Enterprise Edition   11.1.3000.0       No           Yes      
    Package properties:
        Description:                     Microsoft SQL Server 2012 Service Pack 1
        ProductName:                     SQL Server 2012
        Type:                            RTM
        Version:                         11
        SPLevel:                         1
      KBArticle:                       KB2931078
        KBArticleHyperlink:             
    http://support.microsoft.com/?kbid=2931078
        PatchType:                       QFE
        AssociatedHotfixBuild:         0
        Platform:                        x64
        PatchLevel:                      11.1.3412.0
        ProductVersion:                  11.1.3000.0
        GDRReservedRange:                10.0.1000.0:10.0.1099.0;10.0.3000.0:10.0.3099.0
        PackageName:                     SQLServer2012-KB2931078-x64.exe
      Installation   location:           e:\90a192411a98d1f6dc\x64\setup\
    User Input Settings:
        ACTION:                          Patch
        ALLINSTANCES:                    false
        CLUSTERPASSIVE:                  false
        CONFIGURATIONFILE:              
      ENU:                             false
        HELP:                            false
      IACCEPTSQLSERVERLICENSETERMS:    false
        INDICATEPROGRESS:                false
        INSTANCEID:                      <empty>
        INSTANCENAME:                    <empty>
        QUIET:                           false
        QUIETSIMPLE:                     false
        SQMREPORTING:                    false
        UIMODE:                          Normal
        X86:                             false
    Rules with failures:
    Global rules:
    There are no scenario-specific rules.
    Rules report   file:                 The rule result report file is not available.
    Exception summary:
    The following is an exception stack listing   the exceptions in outermost to innermost order
    Inner exceptions are being indented
    Exception type:   Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException
        Message:
            Failed to retrieve data for   this request.
        HResult : 0x80131500
        Data:
          HelpLink.ProdName   = Microsoft SQL Server
            HelpLink.BaseHelpUrl =
    http://go.microsoft.com/fwlink
            HelpLink.LinkId = 20476
            HelpLink.EvtType =
    0xB2652E58@0xDC80C325
          DisableWatson   = true
        Stack:
            at   Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object   connectionInfo, Request request)
            at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.ProcessDTbl(DataTable   dt, Int32 level)
            at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.CollectSqlDiscoveryData(String   machineName)
            at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.CollectDiscoveryData(String   machineName)
            at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.LoadData(IEnumerable`1   machineNames, String discoveryDocRootPath, String   clusterDiscoveryDocRootPath)
            at   Microsoft.SqlServer.Configuration.SetupExtension.RunDiscoveryAction.ExecuteAction(String   actionId)
            at   Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId,   TextWriter errorStream)
            at   Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter   statusStream, ISequencedAction actionToRun, ServiceContainer context)
        Inner exception type:   System.ComponentModel.Win32Exception
            Message:
                    Not   all privileges or groups referenced are assigned to the caller.
            HResult : 0x80004005
            Error : 1300
              Stack:
                    at   Microsoft.SqlServer.Configuration.Sco.AdjustTokenPrivilege.SetPrivilege(Boolean   enable)
                      at Microsoft.SqlServer.Configuration.Sco.AdjustTokenPrivilege..ctor(String   privilege)
                      at Microsoft.SqlServer.Configuration.Sco.SqlRegistry.GetLocallyCachedLocalMachineSubKey(ServiceContainer   ctx, String machineName, SqlRegistryKey
    key)
                      at   Microsoft.SqlServer.Discovery.DiscoveryUtils.TryLocallyCacheRegistryKey(ServiceContainer   ctx, String machineName, SqlRegistryKey
    machineKey, String registryPath,   RegistryView regView, String regPath, RegistryAccess registryAccess,   Boolean& alreadyCached)
                      at   Microsoft.SqlServer.Discovery.DiscoveryUtils.GetLocalMachineSubKey(ServiceContainer   ctx, String machineName, RegistryView regView,
    String regPath, RegistryAccess   registryAccess)
                      at   Microsoft.SqlServer.Discovery.DiscoveryEnumObject.GetSql2kMsiInstanceListInHive(String   machineName, RegistryView regView)
                      at Microsoft.SqlServer.Discovery.DiscoveryEnumObject.LoadSql2kInstanceList(String   machineName)
                      at Microsoft.SqlServer.Discovery.Product.GetData(EnumResult erParent)
                      at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData()
                      at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData(Request req,   Object ci)
                      at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object   connectionInfo, Request request)
                      at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object   connectionInfo, Request request)
    And the tail of the detailed log:
    (01) 2014-04-10 11:51:29 Slp: Completed Action:   InitializeMsiExtension, returned True
    (01) 2014-04-10 11:51:30 Slp:   ----------------------------------------------------------------------
    (01) 2014-04-10 11:51:30 Slp: Running Action:   AddPackageModifierSourcesAction
    (01) 2014-04-10 11:51:30 Slp: Completed Action:   AddPackageModifierSourcesAction, returned True
    (01) 2014-04-10 11:51:30 Slp:   ----------------------------------------------------------------------
    (01) 2014-04-10 11:51:30 Slp: Running Action:   InitializeConfigAction
    (01) 2014-04-10 11:51:30 Slp: Completed Action:   InitializeConfigAction, returned True
    (01) 2014-04-10 11:51:30 Slp:   ----------------------------------------------------------------------
    (01) 2014-04-10 11:51:30 Slp: Running Action:   RunRemoteDiscoveryAction
    (01) 2014-04-10 11:51:31 Slp: Running discovery on local   machine
    (01) 2014-04-10 11:51:33 Slp: Discovery on local machine   is complete
    (01) 2014-04-10 11:51:33 Slp: Running discovery on remote   machine: VMSPDB1
    (01) 2014-04-10 11:51:35 Slp: Discovery on VMSPDB1 failed due to exception
    (01) 2014-04-10 11:51:36 Slp:   Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to   retrieve data for this request. ---> System.ComponentModel.Win32Exception:   Not all privileges or groups referenced are
    assigned to the caller.
      at   Microsoft.SqlServer.Configuration.Sco.AdjustTokenPrivilege.SetPrivilege(Boolean   enable)
       at   Microsoft.SqlServer.Configuration.Sco.AdjustTokenPrivilege..ctor(String   privilege)
       at   Microsoft.SqlServer.Configuration.Sco.SqlRegistry.GetLocallyCachedLocalMachineSubKey(ServiceContainer   ctx, String machineName, SqlRegistryKey key)
       at   Microsoft.SqlServer.Discovery.DiscoveryUtils.TryLocallyCacheRegistryKey(ServiceContainer   ctx, String machineName, SqlRegistryKey machineKey, String registryPath,   RegistryView regView, String regPath, RegistryAccess
    registryAccess,   Boolean& alreadyCached)
       at   Microsoft.SqlServer.Discovery.DiscoveryUtils.GetLocalMachineSubKey(ServiceContainer   ctx, String machineName, RegistryView regView, String regPath, RegistryAccess   registryAccess)
       at   Microsoft.SqlServer.Discovery.DiscoveryEnumObject.GetSql2kMsiInstanceListInHive(String   machineName, RegistryView regView)
       at Microsoft.SqlServer.Discovery.DiscoveryEnumObject.LoadSql2kInstanceList(String   machineName)
       at   Microsoft.SqlServer.Discovery.Product.GetData(EnumResult erParent)
       at   Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData()
       at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData(Request   req, Object ci)
       at   Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object   connectionInfo, Request request)
       at   Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object   connectionInfo, Request request)
       --- End of inner exception stack trace ---
       at   Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object   connectionInfo, Request request)
       at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.ProcessDTbl(DataTable   dt, Int32 level)
       at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.CollectSqlDiscoveryData(String   machineName)
       at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.CollectDiscoveryData(String   machineName)
       at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.LoadData(IEnumerable`1   machineNames, String discoveryDocRootPath, String   clusterDiscoveryDocRootPath)
    (01) 2014-04-10 11:51:36 Slp: Error: Action   "Microsoft.SqlServer.Configuration.SetupExtension.RunDiscoveryAction"   threw an exception during execution.
    (01) 2014-04-10 11:51:36 Slp:   Microsoft.SqlServer.Setup.Chainer.Workflow.ActionExecutionException: Failed   to retrieve data for this request. --->   Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to  
    retrieve data for this request. ---> System.ComponentModel.Win32Exception:   Not all privileges or groups referenced are assigned to the caller.
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Configuration.Sco.AdjustTokenPrivilege.SetPrivilege(Boolean   enable)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Configuration.Sco.AdjustTokenPrivilege..ctor(String   privilege)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Configuration.Sco.SqlRegistry.GetLocallyCachedLocalMachineSubKey(ServiceContainer   ctx, String machineName, SqlRegistryKey key)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Discovery.DiscoveryUtils.TryLocallyCacheRegistryKey(ServiceContainer   ctx, String machineName, SqlRegistryKey machineKey, String registryPath,   RegistryView
    regView, String regPath, RegistryAccess registryAccess,   Boolean& alreadyCached)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Discovery.DiscoveryUtils.GetLocalMachineSubKey(ServiceContainer   ctx, String machineName, RegistryView regView, String regPath, RegistryAccess   registryAccess)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Discovery.DiscoveryEnumObject.GetSql2kMsiInstanceListInHive(String   machineName, RegistryView regView)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Discovery.DiscoveryEnumObject.LoadSql2kInstanceList(String   machineName)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Discovery.Product.GetData(EnumResult erParent)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData()
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData(Request req,   Object ci)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object   connectionInfo, Request request)
    (01) 2014-04-10 11:51:36 Slp:    at   Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object   connectionInfo, Request request)
    (01) 2014-04-10 11:51:36 Slp:    --- End of   inner exception stack trace ---
    (01) 2014-04-10 11:51:39 Slp: Received request to add the   following file to Watson reporting:   C:\Users\HS2\AppData\Local\Temp\tmp6614.tmp
    (01)   2014-04-10 11:51:39 Slp: The following is an exception stack listing the   exceptions in outermost to innermost order
    (01)   2014-04-10 11:51:39 Slp: Inner exceptions are being indented
    (01)   2014-04-10 11:51:39 Slp:
    (01)   2014-04-10 11:51:39 Slp: Exception type:   Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException
    (01)   2014-04-10 11:51:39 Slp:     Message:
    (01)   2014-04-10 11:51:39 Slp:           Failed to retrieve data for this request.
    (01)   2014-04-10 11:51:39 Slp:     HResult : 0x80131500
    (01) 2014-04-10 11:51:39 Slp:       Data:
    (01) 2014-04-10 11:51:39   Slp:       HelpLink.ProdName = Microsoft SQL   Server
    (01) 2014-04-10 11:51:39   Slp:       HelpLink.BaseHelpUrl =
    http://go.microsoft.com/fwlink
    (01) 2014-04-10 11:51:39   Slp:       HelpLink.LinkId = 20476
    (01) 2014-04-10 11:51:39 Slp:       Stack:
    (01) 2014-04-10 11:51:39   Slp:         at   Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object   connectionInfo, Request request)
    (01) 2014-04-10 11:51:39   Slp:         at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.ProcessDTbl(DataTable   dt, Int32 level)
    (01) 2014-04-10 11:51:39   Slp:         at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.CollectSqlDiscoveryData(String   machineName)
    (01) 2014-04-10 11:51:39   Slp:         at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.CollectDiscoveryData(String   machineName)
    (01) 2014-04-10 11:51:39   Slp:         at   Microsoft.SqlServer.Chainer.Infrastructure.SqlDiscoveryDatastoreInterface.LoadData(IEnumerable`1   machineNames, String discoveryDocRootPath,
    String   clusterDiscoveryDocRootPath)
    (01) 2014-04-10 11:51:39   Slp:         at   Microsoft.SqlServer.Configuration.SetupExtension.RunDiscoveryAction.ExecuteAction(String   actionId)
    (01) 2014-04-10 11:51:39   Slp:         at   Microsoft.SqlServer.Chainer.Infrastructure.Action.Execute(String actionId,   TextWriter errorStream)
    (01) 2014-04-10 11:51:39   Slp:         at   Microsoft.SqlServer.Setup.Chainer.Workflow.ActionInvocation.ExecuteActionHelper(TextWriter   statusStream, ISequencedAction actionToRun, ServiceContainer
    context)
    (01)   2014-04-10 11:51:39 Slp:     Inner exception type:   System.ComponentModel.Win32Exception
    (01)   2014-04-10 11:51:39 Slp:           Message:
    (01)   2014-04-10 11:51:39   Slp:                   Not all privileges or groups referenced are assigned to the caller.
    (01)   2014-04-10 11:51:39   Slp:                  
    (01)   2014-04-10 11:51:39 Slp:           HResult : 0x80004005
    (01)   2014-04-10 11:51:39 Slp:           Error : 1300
    (01) 2014-04-10 11:51:39   Slp:         Stack:
    (01) 2014-04-10 11:51:39   Slp:                   at   Microsoft.SqlServer.Configuration.Sco.AdjustTokenPrivilege.SetPrivilege(Boolean  
    enable)
    (01) 2014-04-10 11:51:39   Slp:                   at Microsoft.SqlServer.Configuration.Sco.AdjustTokenPrivilege..ctor(String   privilege)
    (01) 2014-04-10 11:51:39   Slp:                   at   Microsoft.SqlServer.Configuration.Sco.SqlRegistry.GetLocallyCachedLocalMachineSubKey(ServiceContainer  
    ctx, String machineName, SqlRegistryKey key)
    (01) 2014-04-10 11:51:39   Slp:                   at Microsoft.SqlServer.Discovery.DiscoveryUtils.TryLocallyCacheRegistryKey(ServiceContainer   ctx,
    String machineName, SqlRegistryKey machineKey, String registryPath,   RegistryView regView, String regPath, RegistryAccess registryAccess,   Boolean& alreadyCached)
    (01) 2014-04-10 11:51:39   Slp:                   at   Microsoft.SqlServer.Discovery.DiscoveryUtils.GetLocalMachineSubKey(ServiceContainer  
    ctx, String machineName, RegistryView regView, String regPath, RegistryAccess   registryAccess)
    (01) 2014-04-10 11:51:39   Slp:                   at   Microsoft.SqlServer.Discovery.DiscoveryEnumObject.GetSql2kMsiInstanceListInHive(String  
    machineName, RegistryView regView)
    (01) 2014-04-10 11:51:39   Slp:                   at   Microsoft.SqlServer.Discovery.DiscoveryEnumObject.LoadSql2kInstanceList(String   machineName)
    (01) 2014-04-10 11:51:39   Slp:                   at Microsoft.SqlServer.Discovery.Product.GetData(EnumResult erParent)
    (01) 2014-04-10 11:51:39   Slp:                   at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData()
    (01) 2014-04-10 11:51:39   Slp:                   at Microsoft.SqlServer.Management.Sdk.Sfc.Environment.GetData(Request req,   Object ci)
    (01) 2014-04-10 11:51:39   Slp:                   at Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.GetData(Object   connectionInfo, Request request)
    (01) 2014-04-10 11:51:39 Slp:                   at   Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process(Object   connectionInfo, Request request)
    (01) 2014-04-10 11:51:44 Slp: Watson Bucket 2
     Original Parameter Values
    (01) 2014-04-10 11:51:44 Slp: Parameter 0 : SQL Server  
    2012@RTM@KB2931078
    (01) 2014-04-10 11:51:44 Slp: Parameter 1 :   Microsoft.SqlServer.Management.Sdk.Sfc.Enumerator.Process
    (01) 2014-04-10 11:51:44 Slp: Parameter 2 :   Microsoft.SqlServer.Configuration.Sco.AdjustTokenPrivilege.SetPrivilege
    (01) 2014-04-10 11:51:44 Slp: Parameter 3 :
    Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException@-2146233088  
    (01) 2014-04-10 11:51:44 Slp: Parameter 4 :
    System.ComponentModel.Win32Exception@-2147467259  
    (01) 2014-04-10 11:51:44 Slp: Parameter 5 :   RunRemoteDiscoveryAction
    (01) 2014-04-10 11:51:44 Slp: Parameter 8 : 1300
    (01) 2014-04-10 11:51:44 Slp:
     Final Parameter Values
    (01) 2014-04-10 11:51:44 Slp: Parameter 0 : SQL Server  
    2012@RTM@KB2931078
    (01) 2014-04-10 11:51:44 Slp: Parameter 1 : 0x6785B09D
    (01) 2014-04-10 11:51:44 Slp: Parameter 2 : 0xB2652E58
    (01) 2014-04-10 11:51:44 Slp: Parameter 3 : 0x74E34741
    (01) 2014-04-10 11:51:44 Slp: Parameter 4 : 0xDC80C325
    (01) 2014-04-10 11:51:44 Slp: Parameter 5 :   RunRemoteDiscoveryAction
    (01) 2014-04-10 11:51:44 Slp: Parameter 8 : 0xA05EFA62
    (01) 2014-04-10 11:51:45 Slp: Sco: Attempting to write   hklm registry key Microsoft SQL Server to file C:\Program Files\Microsoft SQL   Server\110\Setup   Bootstrap\Log\20140410_115053\Registry_SOFTWARE_Microsoft_Microsoft SQL  
    Server.reg_
    (01) 2014-04-10 11:51:45 Slp: The following exception   occurred while preparing registry logs during Watson failure processing: Not   all privileges or groups referenced are assigned to the caller.
    (01) 2014-04-10 11:51:45 Slp: Sco: Attempting to write   hklm registry key Uninstall to file C:\Program Files\Microsoft SQL   Server\110\Setup   Bootstrap\Log\20140410_115053\Registry_SOFTWARE_Microsoft_Windows_CurrentVersion_Uninstall.reg_
    (01) 2014-04-10 11:51:45 Slp: The following exception   occurred while preparing registry logs during Watson failure processing: Not   all privileges or groups referenced are assigned to the caller.
    (01) 2014-04-10 11:51:45 Slp: Sco: Attempting to write   hklm registry key MSSQLServer to file C:\Program Files\Microsoft SQL   Server\110\Setup Bootstrap\Log\20140410_115053\Registry_SOFTWARE_Microsoft_MSSQLServer.reg_
    (01) 2014-04-10 11:51:45 Slp: The following exception   occurred while preparing registry logs during Watson failure processing: Not   all privileges or groups referenced are assigned to the caller.
    (01) 2014-04-10 11:51:45 Slp: Sco: Attempting to write   hklm registry key Microsoft SQL Server to file C:\Program Files\Microsoft SQL   Server\110\Setup   Bootstrap\Log\20140410_115053\Registry_SOFTWARE_Wow6432Node_Microsoft_Microsoft  
    SQL Server.reg_
    (01) 2014-04-10 11:51:45 Slp: The following exception   occurred while preparing registry logs during Watson failure processing: Not   all privileges or groups referenced are assigned to the caller.
    (01) 2014-04-10 11:51:45 Slp: Sco: Attempting to write   hklm registry key Uninstall to file C:\Program Files\Microsoft SQL   Server\110\Setup   Bootstrap\Log\20140410_115053\Registry_SOFTWARE_Wow6432Node_Microsoft_Windows_CurrentVersion_Uninstall.reg_
    (01) 2014-04-10 11:51:45 Slp: The following exception   occurred while preparing registry logs during Watson failure processing: Not   all privileges or groups referenced are assigned to the caller.
    (01) 2014-04-10 11:51:45 Slp: Sco: Attempting to write   hklm registry key MSSQLServer to file C:\Program Files\Microsoft SQL   Server\110\Setup Bootstrap\Log\20140410_115053\Registry_SOFTWARE_Wow6432Node_Microsoft_MSSQLServer.reg_
    (01) 2014-04-10 11:51:45 Slp: The following exception   occurred while preparing registry logs during Watson failure processing: Not   all privileges or groups referenced are assigned to the caller.
    (01) 2014-04-10 11:51:46 Slp: Failed to retrieve data for   this request.
    (01) 2014-04-10 11:51:46 Slp: Watson bucket for exception   based failure has been created
    (01) 2014-04-10 11:51:46 Slp: Sco: Attempting to create   base registry key HKEY_LOCAL_MACHINE, machine
    (01) 2014-04-10 11:51:46 Slp: Sco: Attempting to open   registry subkey Software\Microsoft\Microsoft SQL Server\110
    (01) 2014-04-10 11:51:46 Slp: Sco: Attempting to get   registry value EnableErrorReporting
    (01) 2014-04-10 11:51:46 Slp: WER: Successfully read app   consent from registry Software\Microsoft\Microsoft SQL   Server\110\EnableErrorReporting=0.
    (01) 2014-04-10 11:51:46 Slp: WER: Application level   consent value '0' was mapped to consent status 'WerConsentDenied'
    (01) 2014-04-10 11:51:46 Slp: WER: Result of the   submission:: 'WerDisabled'
    (01) 2014-04-10 11:51:46 Slp: WER: Submitted 1 of 1   failures to the Watson data repository
    (01) 2014-04-10 11:51:46 Slp: Sco: File   'C:\Windows\system32\Cluster.exe' does not exist
    (01) 2014-04-10 11:51:46 Slp: Failed to collect cluster   logs, cannot find Cluster.exe under system directory.
    (01) 2014-04-10 11:51:46 Slp: Dumping final cluster state.
    (01) 2014-04-10 11:51:49 Slp: Completed dumping final   cluster state.
    (01) 2014-04-10 11:51:51 Slp:
    (01) 2014-04-10 11:51:51 Slp:   ----------------------------------------------------------------------
    (01) 2014-04-10 11:51:51 Slp:
    (01)   2014-04-10 11:51:51 Slp: Error result: -2146233088
    (01)   2014-04-10 11:51:51 Slp: Result facility code: 19
    (01)   2014-04-10 11:51:51 Slp: Result error code: 5376
    (01)   2014-04-10 11:51:51 Slp: SQM Service: Sqm does not have active session.

    Hello SQL Ranger,
    Thanks for posting the detailed log. I dont have exact solution for this but I can give you some hint what could be reason patch has failed below message points to fact that there is some issue with account which is used to install CU patch.Have alook at
    below log.It says that when patch was trying to get details from other node in cluster it was not able to.
    01) 2014-04-10 11:51:33 Slp: Discovery on local machine is complete
    (01) 2014-04-10 11:51:33 Slp: Running discovery on remote machine: VMSPDB1
    (01) 2014-04-10 11:51:35 Slp: Discovery on VMSPDB1 failed due to exception
    (01) 2014-04-10 11:51:36 Slp: Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException: Failed to retrieve data for this request. ---> System.ComponentModel.Win32Exception: Not all privileges or groups referenced are assigned to the caller.
    IMO I strongly feel it is issue with the account. Microsoft has also documented about this for SQL Server 2008 .Have a look at following links
    http://support.microsoft.com/default.aspx?scid=kb;en-US;2000257
    Please also assign privilege mentioned in below link
    http://www.bradg.co.za/?p=12
    Hope this helps
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • SQL Server 2012 SP1 fails to uninstall

    Hi,
    I get the following error message when I try to uninstall 2012 SP1. The repair and install also gives below error
    Could not load type 'System.Xml.Xsl.Xslt.XslVersion' from assembly 'System.Data.SqlXml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=' due to value type mismatch
    Any thoughts? Thanks

    Hi Shiva Gangadhar,
    According to your description, if you want to uninstall SQL Server 2012 SP1 completely, you need to note that the service pack makes changes to the system tables for maintenance reasons, and upgrades
    user and distribution databases that are members of a replication topology. Due to these changes, you cannot easily remove service packs. There is no automated way to remove a service pack, and the process of removing a service pack involves several manual
    steps and risks if not done correctly.
    There are more details about how to remove a SQL Server Service Pack and uninstall SQL Server instance completely.
    http://support.microsoft.com/kb/314823/en-us
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/4d6158a1-b601-428c-aad4-a1716e76de1a/install-sql-server-problem?forum=sqlexpress
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • I get one or the other error when i install SQL server 2012 SP1 in my Lab server

    I get multiple errors when i install SQL server 2012 SP1 In my lab server.
    Not sure why i keep getting different errors all the time when i install SQL server 2012 & 2012 SP1.
    Below are error codes, screen shots and also a log of the error.
    1.  Eror code 0X84B40000
    Also dint understand any thing from this article related to the above error 
    http://social.technet.microsoft.com/Forums/sqlserver/en-US/5b6cc928-0db8-4fe4-a5d3-21672225f0ca/i-get-error-code-0x84b40000-when-trying-to-install-sql-server-mgmt-studio-to-an-existing-sql?forum=sqlexpress
    2. Eror code 0x851A001A
    Can any one plz help as i always get one or the other error.
    ====================================
    Screen shot: 
    Please note the below screen shot has given the error code 0x851A001A which is same in case of failure of all the other features which have failed during this installation. Hence i have uploaded only one screen shot.
    2. Log file content.
    =================================
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2061893606
      Start time:                    2014-05-04 21:15:35
      End time:                      2014-05-04 21:51:45
      Requested action:              Install
    Setup completed with required actions for features.
    Troubleshooting information for those features:
      Next step for RS:              Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for SQLEngine:       Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for FullText:        Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Next step for Replication:     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
    Machine Properties:
      Machine name:                  SERVER1
      Machine processor count:       2
      OS version:                    Windows Server 2008 R2
      OS service pack:               Service Pack 1
      OS region:                     United States
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Product features discovered:
      Product              Instance             Instance ID                    Feature                
                     Language             Edition              Version         Clustered 
      SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            Database Engine Services                 1033      
              Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            SQL Server Replication                   1033      
              Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            Full-Text and Semantic Extractions for Search 1033                
    Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSSQL11.MSSQLSERVER            Data Quality Services                    1033    
                Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSAS11.MSSQLSERVER             Analysis Services                        1033  
                  Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012      MSSQLSERVER          MSRS11.MSSQLSERVER             Reporting Services - Native              1033        
            Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Management Tools - Basic  
                  1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Management Tools - Complete  
               1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Client Tools Connectivity  
                 1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Client Tools Backwards Compatibility
        1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Client Tools SDK      
                      1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Integration Services    
                    1033                 Enterprise Edition   11.0.2100.60    No        
      SQL Server 2012                                                          Reporting Services - SharePoint
                                                       11.0.2100.60    No        
    Package properties:
      Description:                   Microsoft SQL Server 2012 Service Pack 1
      ProductName:                   SQL Server 2012
      Type:                          RTM
      Version:                       11
      SPLevel:                       0
      Installation location:         F:\x64\setup\
      Installation edition:          Enterprise
    Product Update Status:
      None discovered.
    User Input Settings:
      ACTION:                        Install
      ADDCURRENTUSERASSQLADMIN:      false
      AGTSVCACCOUNT:                 ms\sql
      AGTSVCPASSWORD:                *****
      AGTSVCSTARTUPTYPE:             Automatic
      ASBACKUPDIR:                   Backup
      ASCOLLATION:                   Latin1_General_CI_AS
      ASCONFIGDIR:                   Config
      ASDATADIR:                     Data
      ASLOGDIR:                      Log
      ASPROVIDERMSOLAP:              1
      ASSERVERMODE:                  MULTIDIMENSIONAL
      ASSVCACCOUNT:                  <empty>
      ASSVCPASSWORD:                 <empty>
      ASSVCSTARTUPTYPE:              Automatic
      ASSYSADMINACCOUNTS:            <empty>
      ASTEMPDIR:                     Temp
      BROWSERSVCSTARTUPTYPE:         Disabled
      CLTCTLRNAME:                   <empty>
      CLTRESULTDIR:                  <empty>
      CLTSTARTUPTYPE:                0
      CLTSVCACCOUNT:                 <empty>
      CLTSVCPASSWORD:                <empty>
      CLTWORKINGDIR:                 <empty>
      COMMFABRICENCRYPTION:          0
      COMMFABRICNETWORKLEVEL:        0
      COMMFABRICPORT:                0
      CONFIGURATIONFILE:             C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140504_204851\ConfigurationFile.ini
      CTLRSTARTUPTYPE:               0
      CTLRSVCACCOUNT:                <empty>
      CTLRSVCPASSWORD:               <empty>
      CTLRUSERS:                     <empty>
      ENABLERANU:                    false
      ENU:                           true
      ERRORREPORTING:                true
      FEATURES:                      SQLENGINE, REPLICATION, FULLTEXT, RS
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  NT Service\MSSQLFDLauncher$SCOM
      FTSVCPASSWORD:                 <empty>
      HELP:                          false
      IACCEPTSQLSERVERLICENSETERMS:  true
      INDICATEPROGRESS:              false
      INSTALLSHAREDDIR:              C:\Program Files\Microsoft SQL Server\
      INSTALLSHAREDWOWDIR:           C:\Program Files (x86)\Microsoft SQL Server\
      INSTALLSQLDATADIR:             <empty>
      INSTANCEDIR:                   C:\Program Files\Microsoft SQL Server\
      INSTANCEID:                    SCOM
      INSTANCENAME:                  SCOM
      ISSVCACCOUNT:                  NT AUTHORITY\Network Service
      ISSVCPASSWORD:                 <empty>
      ISSVCSTARTUPTYPE:              Automatic
      MATRIXCMBRICKCOMMPORT:         0
      MATRIXCMSERVERNAME:            <empty>
      MATRIXNAME:                    <empty>
      NPENABLED:                     0
      PID:                           *****
      QUIET:                         false
      QUIETSIMPLE:                   false
      ROLE:                          <empty>
      RSINSTALLMODE:                 DefaultNativeMode
      RSSHPINSTALLMODE:              DefaultSharePointMode
      RSSVCACCOUNT:                  NT Service\ReportServer$SCOM
      RSSVCPASSWORD:                 <empty>
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         <empty>
      SECURITYMODE:                  <empty>
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 ms\sql
      SQLSVCPASSWORD:                *****
      SQLSVCSTARTUPTYPE:             Automatic
      SQLSYSADMINACCOUNTS:           MS\Gautam, MS\SCOM Users
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  false
      TCPENABLED:                    1
      UIMODE:                        Normal
      UpdateEnabled:                 true
      UpdateSource:                  MU
      X86:                           false
      Configuration file:            C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140504_204851\ConfigurationFile.ini
    Detailed results:
      Feature:                       Reporting Services - Native
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x851A001A
      Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
      Feature:                       Database Engine Services
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred during the setup process of the feature.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x851A001A
      Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
      Feature:                       Full-Text and Semantic Extractions for Search
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x851A001A
      Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
      Feature:                       SQL Server Replication
      Status:                        Failed: see logs for details
      Reason for failure:            An error occurred for a dependency of the feature causing the setup process for the feature to fail.
      Next Step:                     Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
      Component name:                SQL Server Database Engine Services Instance Features
      Component error code:          0x851A001A
      Error description:             Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
      Error help link:               http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
      Feature:                       SQL Browser
      Status:                        Passed
      Feature:                       SQL Writer
      Status:                        Passed
    Rules with failures:
    Global rules:
    Scenario specific rules:
    Rules report file:               C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140504_204851\SystemConfigurationCheck_Report.htm

    Sorry about the error in the path, but you find the files that's the main thing.
    Indeed it is a certificate problem:
    2014-05-04 21:47:43.56 spid12s Error: 17190, Severity: 16, State: 1.
    2014-05-04 21:47:43.56 spid12s Initializing the FallBack certificate failed with error code: 1, state: 20, error number: 0.
    2014-05-04 21:47:43.56 spid12s Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
    2014-05-04 21:47:43.57 spid12s Error: 17182, Severity: 16, State: 1.
    2014-05-04 21:47:43.57 spid12s TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
    2014-05-04 21:47:43.57 spid12s Error: 17182, Severity: 16, State: 1.
    2014-05-04 21:47:43.57 spid12s TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
    2014-05-04 21:47:43.57 spid12s Error: 17826, Severity: 18, State: 3.
    2014-05-04 21:47:43.57 spid12s Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
    2014-05-04 21:47:43.57 spid12s Error: 17120, Severity: 16, State: 1.
    2014-05-04 21:47:43.57 spid12s SQL Server could not spawn FRunCommunicationsManager thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
    I've recall that I've tried to help people with this error before, but I'm sure they were able to sort it out.
    Anyway, this blog post,
    http://blogs.msdn.com/b/sqljourney/archive/2012/10/09/sql-2008-service-fails-to-come-online-with-a-valid-certificate-could-not-be-found-and-it-is-not-possible-to-create-a-self-signed-certificate.aspx
    suggests the issue is a corrupted user profile, and you should try to use a different service account.
    This blog also seems to have a simple solution, but I cannot vouch for that it will work:
    http://www.beejblog.com/2012/02/sql-server-solved-unable-to-initialize.html
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Install SQL Server 2012 SP1 on a Windows Server 2012 R2 Failover Cluster - hangs at "Running discovery on remote machine" on VMWare VSphere 5.5 Update 1

    <p>Hi,</p><p>I'm trying to install SQL Server 2012 SP1 on the first node of a Windows Server 2012 R2 failover cluster.</p><p>The install hangs whilst displaying the "Please wait while Microsoft SQL Server 2012 Servce
    Pack 1 Setup processes the current operation." message.</p><p>The detail.txt log file shows as follows:</p><p>(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider : Use cached PID<br />(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider
    : NormalizePid is normalizing input pid<br />(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider : NormalizePid found a pid containing dashes, assuming pid is normalized, output pid<br />(01) 2014-07-17 15:36:35 Slp: -- PidInfoProvider : Use cached
    PID<br />(01) 2014-07-17 15:36:35 Slp: Completed Action: FinalCalculateSettings, returned True<br />(01) 2014-07-17 15:36:35 Slp: Completed Action: ExecuteBootstrapAfterExtensionsLoaded, returned True<br />(01) 2014-07-17 15:36:35 Slp: ----------------------------------------------------------------------<br
    />(01) 2014-07-17 15:36:35 Slp: Running Action: RunRemoteDiscoveryAction<br />(01) 2014-07-17 15:36:36 Slp: Running discovery on local machine<br />(01) 2014-07-17 15:36:36 Slp: Discovery on local machine is complete<br />(01) 2014-07-17
    15:36:36 Slp: Running discovery on remote machine: XXX-XXX-01</p><p>After about 4 hours and 10 minutes, the step seems to time out and move on, however it doesn't seem to have discovered what it needs to and the setup subsuently fails</p><p></p>

    Hi,
    Sorry Information you provided did not helped can you post content of both summary file and details,txt file on shared location for analysis.
    Can you download Service pack again and try once more
    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

  • Trying to install WSUS role on Windows Server 2012 R2 using dedicated SQL Instance with static port on remote SQL Server 2012 SP1 CU7 on Windows Server 2012 R2.

    I am trying to install WSUS role on Windows Server 2012 R2 using dedicated SQL Instance with static port on remote SQL Server 2012 SP1 CU7 on Windows Server 2012 R2.
    It verifies the connection and then throws the error:
    The request to add or remove features on the specified server failed. The operation cannot be completed, because the server you specified requires a restart.
    WSUS Server : Windows Server 2012 R2
    Remote SQL Server: 2012 SP1 CU7 hosted on Windows Server 2012 R2
    Please let me know if anyone has experienced this issue.

    We were trying to install WSUS role on Windows Server 2012 R2 using dedicated SQL Instance with static port on remote SQL Server 2012 SP1 CU7 on Windows Server 2012 R2.
    It verifies the connection and then throws the error:
    The request to add or remove features on the specified server failed. The operation cannot be completed, because the server you specified requires a restart.
    Same error even after rebooting the server multiple times.
    WSUS Server : Windows Server Standard2012 R2
    Remote SQL Server: Windows Server 2012 SP1 CU7 hosted on Windows Server 2012 R2
    Event ID 7000:
    The Windows Internal Database service failed to start due to the following error:
    The service did not start due to a logon failure.
    Event ID 7041
    The MSSQL$MICROSOFT##WID service was unable to log on as NT SERVICE\MSSQL$MICROSOFT##WID with the currently configured password due to the following error:
    Logon failure: the user has not been granted the requested logon type at this computer.
    Service: MSSQL$MICROSOFT##WID
    Domain and account: NT SERVICE\MSSQL$MICROSOFT##WID
    This service account does not have the required user right "Log on as a service."
    User Action
    Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this. If this computer is a node in a cluster, check that this user
    right is assigned to the Cluster service account on all nodes in the cluster.
    If you have already assigned this user right to the service account, and the user right appears to be removed, check with your domain administrator to find out if a Group Policy object associated
    with this node might be removing the right.
    I found following article:
    "MSSQL$MICROSOFT##WID service was unable to log on as NT SERVICE\MSSQL$MICROSOFT##WID" error when you install WID in Windows Server 2012
    http://support.microsoft.com/kb/2832204/en-us
    To work around the issue, use one of the following methods:
    Assign the Log on as a service user right to NT SERVICE\ALL SERVICES in the GPO that defines the user right.
    Exclude the computer from the GPO that defines the user right.
    We moved the SCCM server to OU where no policies were getting applied and then applied the new GPO to that OU. Restarted the server and we were able to install WSUS role.
    Regards
    PR

  • [Forum FAQ] Reporting Service Point cannot be installed on a Site System Server running SQL Server 2012 SP1

    Symptom: When you install Reporting Service Point role on a Site System Server running SQL Server
    2012 SP1, you may encounter an issue that the Reporting Service Point role cannot be installed. The error log “srsrpMSI.log” and “srsrpsetup.log” may throw the error as shown in Figure 1 and Figure 2.
    03:32:03:764]:
    MainEngineThread is returning 1618
    Figure 1: Error -1
    <03/03/14 03:32:03>
    srsrp.msi exited with return code: 1618
    Figure 2: Error -2
    Reason: All the two logs indicate an error return code 1618. From the KB below you may know what
    the return code means.
    ERROR_INSTALL_ALREADY RUNNING 
    1618
    Another installation is already in progress. Complete that installation before proceeding with this install.
    KB link:
    http://support.microsoft.com/kb/290158 “it is related to an Office Suite KB, anyway, the MSI return code is the same meaning”
    You can look into Resource Manager and Event Viewer to find the other currently running MSI installation. You may get a warning in Event Log that means the MSI wants to install a SQL Server
    related Component (Figure 3). The Resource Manager confirms this (Figure 4).
    Event Log:
    Event ID: 1004
    Source: Msinstaller
    Level: Warning
    Detection of product '{A7037EB2-F953-4B12-B843-195F4D988DA1}',
    feature 'SQL_Tools_ANS', component '{0CECE655-2A0F-4593-AF4B-EFC31D622982}' failed.  The resource '' does not exist.
    Figure 3: Event Log
    Figure 4: Resource Manager
    Resolution: the error is exactly what the following KB describes.
    KB Link:
    http://support.microsoft.com/kb/2793634
    After we resolve the SQL Server 2012 issue, the Reporting Service Role is installed successfully.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    This implies that ODP.NET does NOT need to be installed on a client. However, I cannot find OraOPs9.dll on a machine with Client Release 9.2 installed. Should OraOps?.dll automatically come with a Client installation of 9.2 or higher?
    ODP.NET needs to be installed on the client. OraOps9.dll is part of ODP.NET, not the Oracle Client.
    Also, if an application is built with the 10g ODP.NET, can it be run from a machine with OraOps9.dll?
    If an application is built with 10g ODP.NET, it can be run with 9.2 ODP.NET as long as you do not use any 10g APIs. The new features in 10g ODP.NET are included in the doc and the ODP.NET FAQ for your reference.

  • Cumulative update 15 for SQL Server 2012 SP1 is released

    Cumulative update 15 for SQL Server 2012 SP1 is released
    http://support.microsoft.com/en-us/kb/3038001
    MDS related fix is:
    FIX: Add three stored procedures to clean up history that is created when you use SQL Server 2012 MDS
    http://support.microsoft.com/en-us/kb/3036601
    After using MDS for a while, the transaction/validation/staging history may grow very large. In this CU we provide 3 store procedure to clean them up manually.
    The fix will be ported over to SQL 2012 SP2 and SQL 2014 CUs in the coming 2 months.
    In next SQL Server release, it will be automated by MDS maintenance job.
    --@ModelID is the model ID that you clean up the log for.
    --@CLeanupOlderThanDate is the date before that the logs or records is deleted.
    DECLARE @CleanupOlderThanDate date = '<Date>', @ModelID INT = <ID>
    --Cleanup Transaction History
    EXEC mdm.udpTransactionsCleanup @ModelID, @CleanupOlderThanDate;
    --Cleanup Validation History
    EXEC mdm.udpValidationsCleanup @ModelID, @CleanupOlderThanDate;
    --Cleanup entity-based staging table
    EXEC mdm.udpEntityStagingBatchTableCleanup @ModelID, @CleanupOlderThanDate;

    Hi SelvaOnline,
    I would recommend to install SP2 and the hotfix that came after it.
    If you don't have a reason to install a CU than don't bother with it.
    SP2:
    http://www.microsoft.com/en-us/download/details.aspx?id=43340
    Hotfix for SP2;
    http://support.microsoft.com/kb/2969896/en-us
    Thanks, 
    Teun

  • Problem installing SQL Server 2012 SP1: "managed sql server installer has stopped working"

    Hello,
    I have a big problem.
    I just downloaded SQL Server 2012 SP1 and I only want to install SSMS. The installer always crashes with an error message "managed sql server installer has stopped working".
    I already tried all solutions from Google for this problem but nothing works.
    Can someone help me plase?
    My System: Window 8 Pro with Visual Studio 2012.
    Thanks
    Sven

    Would you please uplaod/share SQL Server setup logs
    C:\Program
    Files\Microsoft
    SQL Server\110\Setup
    Bootstrap\Log\20130125_133342
    to file sharing service like SkyDrive.com
    FAQ
    Regards,
    Ahmed Ibrahim
    SQL Server Setup Team
    My Blog
    This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
    "Mark as Answer" and "Vote as Helpful"
    on posts that help you.
    This can be beneficial to other community members reading the thread.

  • SSIS modules created with VS2013 fail on SQL Server 2012

    HI all,
    i've just installed SQL Server 2012, VS 2013 (Premium) and SQL Server Data Tools (SSDTBI_VS2012_x86_ENU) on my local workstation (running Win7 x64).
    Creating and debugging of new SSIS modules works well, while execution of the module using DTEXEC fails with:
       Description: Package migration from version 8 to version 6 failed with error 0xC001700A "The version number in the package is not valid. The version number cannot be greater than current version number.".
    How to create SSIS modules with VS2013, which are executable on SQL Server 2012?
    Any help is appreciated!
    Thank you in advance!
    Details:
    D:\tmp>dtexec /f Package_by_vs2013.dtsx
    Microsoft (R) SQL Server Execute Package Utility
    Version 11.0.2100.60 for 64-bit
    Copyright (C) Microsoft Corporation. All rights reserved.
    Started:  12:48:51
    Error: 2014-04-09 12:48:52.69
       Code: 0xC001F02A
       Source: Package
       Description: Cannot create a task from XML for task "Execute SQL Task", type "Microsoft.ExecuteSQLTask" due to error 0x80070057 "Falscher Parameter.".
    End Error
    Error: 2014-04-09 12:48:52.69
       Code: 0xC0010018
       Source: Execute SQL Task
       Description: Failed to load task "Execute SQL Task", type "". The contact information for this task is "Execute SQL Task; Microsoft Corporation; SQL Server 2
    014; ? 2014 Microsoft Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1".
    End Error
    Error: 2014-04-09 12:48:52.72
       Code: 0xC0010026
       Source: Execute SQL Task
       Description: The task has failed to load. The contact information for this task is "Execute SQL Task; Microsoft Corporation; SQL Server 2014; ? 2014 Microsof
    t Corporation; All Rights Reserved;http://www.microsoft.com/sql/support/default.asp;1".
    End Error
    Error: 2014-04-09 12:48:52.72
       Code: 0xC0024107
       Source: Execute SQL Task
       Description: There were errors during task validation.
    End Error
    Error: 2014-04-09 12:48:52.72
       Code: 0xC0010025
       Source: Package
       Description: The package cannot execute because it contains tasks that failed to load.
    End Error
    DTExec: The package execution returned DTSER_FAILURE (1).
    Started:  12:48:51
    Finished: 12:48:52
    Elapsed:  1.123 seconds

    Hi,
    I have moved this thread to
    SQL Server Integration Services forum for better support.
    Best regards,
    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.

  • Unable to upgrade SQL Server 2008 R2 to SQL Server 2012 SP1

    I'm encountering error after error, after successfully installing the upgrade advisor (which took some doing) and running it with essentially no warnings/errors (the one warning was on the connection strings, as I recall -- and all of the warnings had a
    "fix after" status.
    First failure involved SSRS and the inability to create the "managed account". Backed out the upgrade using http://sqldbanotes.blogspot.com/2013/10/how-to-fix-failed-in-place.html
    Now the failure involves SSAS and unable to connect to analysis services with name MSSQLServerOLAPService.  That is the logical name for the service, although it shows up as just MSSQLServer when looking at it in the services list.  I tried
    setting the service account to a local account as  well as to Local System -- did not make a difference, the upgrade couldn't apparently find it regardless.
    Has anybody successfully done an in place upgrade from SQL Server 2008 R2 to SQL Server 2012?

    Hi Bob,
    Thanks for your post and I am glad to hear that the issue is resolved. Thanks for you posting a reply to share your solution and I had marked it as answer. That way, other community members could benefit from your sharing.
    Regards,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • SQL Server 2012 SP2 patch is failling on SQL SERVER 2012 SP1

    Setup failling with below errors:
    Error1 :
    Product: Microsoft SQL Server 2012 Setup (English) -- Error 1935. An error occurred during the installation of assembly 'policy.8.0.Microsoft.VC80.MFC,version="8.0.50727.6229",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="x86",type="win32-policy"'.
    Please refer to Help and Support for more information. HRESULT: 0x8007371B. assembly interface: IAssemblyCacheItem, function: Commit, component: {68B7C6D9-1DF2-54C1-A01F-C8B3B9A1E18E}
    Error2 :
    Product: Microsoft SQL Server 2012 Setup (English) -- Error 1712. One or more of the files required to restore your computer to its previous state could not be found. Restoration will not be possible.
    Am seeking advice if anyone had faced similar issue and it was fixed. Thanks in advance for your advice.

    Hello,
    Please try to manually download and install MS VC ++ 2005 SP1 from the following link:
    http://www.microsoft.com/en-us/download/details.aspx?id=5638
    Run Windows Update to install a security update from 2009 for VC++ 2005 SP1.
    Then try to reinstall SQL Server.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Can't install the Windows Update package KB2674319 (SQL Server 2012 SP1)

    Hi. I need to get the update of my MS SQL Server 2012 installation in order to get the SP1.
    When I run the Windows Update it appears to download well the package.
    Then when it begins to install  I get the error "84C4000E: Se ha producido un error con Windows Update" (our server is in Spanish).
    I have the last updates for Windows Server, a rebooted our server and the issue remains.
    Any idea of what should I do to get the SP1 update?
    Thanks in advance.
    Gustavo.

    Hi Gustavo,
    Based on your description, I suggest you should refer to the following articles. And then check if you can install the update successfully.
    SQL 2012 Server fails in Windows Update with error 84C4000E
    http://techtuxwords.blogspot.in/2013/10/sql-2012-server-fails-in-windows-update.html
    MS SQL Server 2008 R2 SP1 fails with error 84C4000E
    http://techtuxwords.blogspot.in/2011/09/ms-sql-server-2008-r2-sp1-fails-with.html
    If this issue still persists, please don’t hesitate to let me know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Install SharePoint 2013 database on SQL server 2012 SP1 cluster

    Good Day all,
    We are trying to install SharePoint 2013 database on a SQL server 2012 Enterprise with SP1 cluster (configured for mixed mode) but the connection is not working (times out). We can telent the SQL cluster network name on port 1433 and we made
    a UDL connection file, test the connection via windows authentication and it is working, but if we use the sql authentication it is not working.
    Also we have two SharePoint 2013 servers connected via NLB.
    Any idea about this issue guys?  

    event if 3355 means 3 things:
    The SQL Server might be offline.
    The SharePoint Foundation database access account might not have the necessary permissions to communicate with the SQL Server.
    A firewall that runs on either the local server or on SQL Server might be blocking network communications.
    Big question, how you trying to connect SQL  windows or sql authentication? is it throwing error on Config wizard or somewhere else?
    Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog

  • Error when creating a database on SQL Server 2012(Virtual Machine)

    Hi,
    I create a virtual machine on VMWare Workstation 10, then install Windows 7(32bit), then install SQL Server 2012 Enterprise version.
    Then I write a Visual C++2008 program and using ADO to connect to the local SQL Server, with the connection string below:
    “Provider=sqloledb;Data Source=(local);Integrated Security=SSPI;”
    The connect succeed, then I try to create a new SQL Server database by calling:
    m_pConnection->Execute(_T(“create database MyDatabase on primary (name = ‘MyDatabase’, filename = ‘E:\\MyDatabase.mdf’)”), NULL, 0);
    where E: is a USB drive plugged in.
    When running the above statement, I can even see the MyDatabase.mdf file is being created, but finally get an error and error number is 80040e31 when checking the error from m_pConnection, after analyzing the com exception, we find it reports the error as
    “IDispath error #3121”. Both errors seem to indicate a “Timeout error”.
    Then I try to create the database on the local drive in the virtual machine, as follows:
    m_pConnection->Execute(_T(“create database MyDatabase on primary (name = ‘MyDatabase’, filename = ‘C:\\MyDatabase.mdf’)”), NULL, 0);
    Then I get error number: 80040e14 from m_pConnection, and com error is “IDispath error #3092”
    What is the problem?
    Thanks

    Hello chcw,
    SQL Server 2012 Enterprise doesn't support to install on Windows 7 Opeating System. For detail information, please refer to the article below:
    The article shows the operating system requirements for the principal editions of SQL Server 2012:
    http://msdn.microsoft.com/en-us/library/ms143506.aspx#top_principal
    Here is an article for your reference, please see:
    How To  Create a SQL Server Database Programmatically by Using ADO.NET and Visual C# .NET:
    https://support.microsoft.com/kb/307283/en-us
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

Maybe you are looking for

  • How to change the Reconciliation Account of a Customer.

    Hi Everybody, I went through few posts from users regarding the change of Reconciliation Account in Customer Master, but nowhere the complete process of change of Reconciliation Account is explained. Can anyone throw some light on this and tell  the

  • Which os system is compatible with which Mac

    Could anybody produce a list of different Mac models with their compatible OS sytems? We can find on internet the system that comes with a new Mac but nothing about the ones we can upgrade to. Exemple : Let suppose I bought a MacBook Pro with Lion Ma

  • Period-wise sales

    Dear Gurus, Can anyboy explain the detail sale of a material period-wise. If any standard report, then appreciable. For example, <b>Material   Dec   Jan  Feb  Mar   Total   AB         5       4     8       7       24   BB        6        5     6     

  • Can you glitch pictures with the macbook air 11 inch 128 gb 2012

    i was wondering can you glitch videos and images it looks so awesome?

  • How to set radio to 106.00?

    It might be funny and stupid question but when I use the slider I either end up at 105.9 or 106.1 and my radio is at 106.0. How to set it to 106.0? Automatically that radio station is not detectable for some reason :S