Instance failure, in System.Data in sql 2012

On Win Server 2012 Standard I have a C# app that runs fine with sql 2008 express. When I installed sql 2012 express I get "instance Failure" source: System.data. when the following LYNQ query executes:
//MessageBox.Show("Starting GetInitialPortStatus.");
db =new
DataClasses1DataContext();   //establish
dataconnection to CALMasterSQL
// 2. Query creation.
var PortsQuery =from
portrecord in db.Channels
select portrecord;
// 3. Query execution.
int count = 0;
// MessageBox.Show("Starting >portrecord in PortsQuery<.");
foreach (var
portrecord in PortsQuery)           
// add rows to the grid for each record in the database Ports table
Otherwise the app works fine. The closet fix in the forum I could find was to run
exec sp_configure 'user instances enabled',
1.
Go
Reconfigure
Which I did but no change.
How can this be corrected. It seems like it is a known issue but no fix for sql 2012?
Thanks
Morris
Thank you Morris

Thanks for your reply.
The connection string is:
<add name="CMMainWindow.Properties.Settings.CALLMASTERConnectionString"
            connectionString="Data Source=HLA2012\\SQL2012EXP;Initial Catalog=CALLMasterSQL;Integrated Security=True;Connect Timeout=5"
            providerName="System.Data.SqlClient" />
The SQl instance is call "SQL2012EXP". There is also SQL 2008 Express on the same machine called SQLExpress.
Both engines work fine in every other way.
Thanks
Morris
Thank you Morris
Hi MoCoder,
According to your description, if it contains a double-slash between the server name and the database instance name in your connection string, it should be localhost\SQLEXPRESS. There is a similar issue about instance failure when connecting to SQL Server
Express in C# application. You can review the following article.
http://www.hanselman.com/blog/FixingInstanceFailureWhenConnectingToSQLServer2005Express.aspx
In addition, Make sure your SQL Server instance(MSSQLSERVER) is running via the services management console.
Thanks,
Sofiya Li
If you have any feedback on our support, please click here.
Sofiya Li
TechNet Community Support

Similar Messages

  • Error openin configuration of Master Data Serice SQL 2012

    Hi,
    after installation of Master Data Services (SQL 2012 EE) I can't open Configuration Manager because of error:
    "An unexpected error occured: Could not find file 'C:\Windows\assembly\GAC_MSIL\Microsoft.MasterDataServices.Configuration\11.0.0.0__89845dcd8080cc91\Microsoft.MasterDataServices.Configuration.InstallState'.."
    already tried to run repair but no sucess
    how repair that ?

    Hi MariuszBu,
    Have you got any error/warning information during install Master Data Services in your environment. Based on the error message, it seems that the Master Data Services didn't install successfully.
    Please try to reinstall Master Data Services to see if this helps.
    Uninstall and Remove Master Data Services:
    http://technet.microsoft.com/en-us/library/ff487065.aspx
    Install Master Data Services:
    http://technet.microsoft.com/en-us/library/ee633752(v=sql.110).aspx
    Regards,
    Elvis Long
    TechNet Community Support

  • Can we change the system date using Sql

    can we change the system date using Sql statement..
    can anyone help
    Tariq.

    There is an initialization parameter called FIXED_DATE which lets you set a fixed sysdate for testing purposes, and you can alter that date using the ALTER SYSTEM command, but as implied by the name you are setting a data/time that doesn't change. Since the normal sysdate is derived from the O/S it cannot be altered through SQL

  • Building table for graph data in SQL 2012

    I am on Windows 7 x64 with SQL 2012.  I am new to SQL server and need some guidance.  I have raw data I would like to store.  The raw data is Amplitude vs. Time.  there are 3600 rows 2 columns.  What is the best way to design a table
    to hold this information.  The data will be linked to a primary key of date taken.
    Thank you in advance for your time.

    Thank you for your quick response.  I have tried this and got two tables but only input per given time.  Her is an example below of what data needs to be inputted. 
    Todays date
    112.5
    0.004758855
    225
    0.003022459
    337.5
    0.005110742
    450
    0.006503629
    562.5
    0.008989879
    675
    0.007626316
    787.5
    0.003847718
    900
    0.00263287
    1012.5
    0.001321671
    1125
    0.00139917
    1237.5
    0.00314185
    1350
    0.006394711
    1462.5
    0.012263686
    1575
    0.010973433
    1687.5
    0.001998216
    1800
    0.001878826
    1912.5
    0.002599357
    There are 3600 lines of this...all grouped in one moment in time.

  • Can we change system date from sql prompt

    hi everyone
    can someone tell if we can change the system date from the sql
    prompt??
    Tariq.

    I don't think that the date/time last modified is accessible.  You could use the SummaryInfo of the report to maintain this information yourself.  This is part of the RAS SDK.  There is a comments section available that you could use for this.

  • Why would SMO WMI not return SQL 2012 Services in the ManagedComputer.Services collection when the instances are in ServerInstances

    The following code
    var comp = new Microsoft.SqlServer.Management.Smo.Wmi.ManagedComputer();
    var bob = comp.Services;
    Only returns the 2008R2 instances on my machine not the sql 2012 instances.
    Oddly the ServerInstances includes all the instances.
    This means I can't get the StartupParameters for the instance.
    I've checked and its definitely using the sql 2012 version of SMO. All services are using the same user account (Network Service)
    Can anyone think why this would be.
    @simon_sabin -
    SQL Know How - SQL Server Consultancy and Real world training - SQLBits - Largest SQL Server Conference in Europe and its free

    2014-09-08T20:23:33.1175952+02:00 *** Test of the default constructor of ManagedComputer
    Name of the ManagedComputer : USER-PC
    - 3 ClientProtocols
    - 0 ServerAliases
    - 3 ServerInstances
    - Instance : EXPRESS_ADV_2014
    - Instance : EXPRESSADV2014
    - Instance : SQLEXPRESS
    - 12 Services
    List of the available services :
    - Service : MSSQL$EXPRESS_ADV_2014
    - DisplayName : SQL Server (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\sqlservr.exe" -sEXPRESS_ADV_2014
    - ProcessId : 1972
    - ServiceState : Running
    - Type : SqlServer
    - StartMode : Auto
    - Service : MSSQL$EXPRESSADV2014
    - DisplayName : SQL Server (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\sqlservr.exe" -sEXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlServer
    - StartMode : Disabled
    - Service : MSSQL$SQLEXPRESS
    - DisplayName : SQL Server (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\sqlservr.exe" -sSQLEXPRESS
    - ProcessId : 356
    - ServiceState : Running
    - Type : SqlServer
    - StartMode : Auto
    - Service : MSSQLFDLauncher$EXPRESS_ADV_2014
    - DisplayName : SQL Full-text Filter Daemon Launcher (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\fdlauncher.exe" -s MSSQL12.EXPRESS_ADV_2014
    - ProcessId : 1708
    - ServiceState : Running
    - Type : 9
    - StartMode : Manual
    - Service : MSSQLFDLauncher$EXPRESSADV2014
    - DisplayName : SQL Full-text Filter Daemon Launcher (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\fdlauncher.exe" -s MSSQL12.EXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : 9
    - StartMode : Manual
    - Service : MSSQLFDLauncher$SQLEXPRESS
    - DisplayName : SQL Full-text Filter Daemon Launcher (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\fdlauncher.exe" -s MSSQL11.SQLEXPRESS_ADV
    - ProcessId : 3980
    - ServiceState : Running
    - Type : 9
    - StartMode : Manual
    - Service : ReportServer$EXPRESSADV2014
    - DisplayName : SQL Server Reporting Services (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSRS12.EXPRESSADV2014\Reporting Services\ReportServer\bin\ReportingServicesService.exe"
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : ReportServer
    - StartMode : Auto
    - Service : ReportServer$SQLEXPRESS
    - DisplayName : SQL Server Reporting Services (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSRS11.SQLEXPRESS_ADV\Reporting Services\ReportServer\bin\ReportingServicesService.exe"
    - ProcessId : 2516
    - ServiceState : Running
    - Type : ReportServer
    - StartMode : Auto
    - Service : SQLAgent$EXPRESS_ADV_2014
    - DisplayName : SQL Server Agent (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\SQLAGENT.EXE" -i EXPRESS_ADV_2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLAgent$EXPRESSADV2014
    - DisplayName : SQL Server Agent (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\SQLAGENT.EXE" -i EXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLAgent$SQLEXPRESS
    - DisplayName : SQL Server Agent (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\SQLAGENT.EXE" -i SQLEXPRESS
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLBrowser
    - DisplayName : SQL Server Browser
    - ErrorControl : Normal
    - PathName : "C:\Program Files (x86)\Microsoft SQL Server\90\Shared\sqlbrowser.exe"
    - ProcessId : 2628
    - ServiceState : Running
    - Type : SqlBrowser
    - StartMode : Auto
    Hello Simon ,
    For SMO assemblies : the version is 11 for SQL Server 2012 , and 10 for SQL Server 2008 R2 ( and not 10.5 , so when you have SQL Server 2008 and 2008 R2 , the SMO assemblies for 2008 are replaced by the SMO assemblies for 2008 R2 ). I faced this
    problem when I installed SQL Server 2008 R2 aside a left 2008 install.
    On my current computer , I have only 2012 and 2014 instances and I have no problem.
    To check the version of the assemblies ( Microsoft.Smo.SqlWmiManagement mainly ) in your Visual Studio , click on the name of this assembly and look at the Version : it should be 11.0.0 ( for SQL Server 2012 ).
    Yesterday , I have written a little application to view the instances and services on my computer.
    using System.Collections.Specialized;
    using System.Data;
    using System.Linq;
    using System.Management;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows.Forms;
    using Microsoft.SqlServer.Management.Common;
    using Microsoft.SqlServer.Management.Dmf;
    using Microsoft.SqlServer.Management.Facets;
    using Microsoft.SqlServer.Management.Sdk.Sfc;
    using Microsoft.SqlServer.Management.Smo;
    using Microsoft.SqlServer.Management.Smo.SqlEnum;
    using Microsoft.SqlServer.Management.Smo.Wmi;
    namespace Test_ManagedComputer_SMO2014_VCS2014
    /// <summary>
    /// Class for fields/properties/methods used in the Main method
    /// </summary>
    class Program
    private static ManagedComputer m_mc = null;
    public static ManagedComputer Mc
    get
    return m_mc;
    private set
    m_mc = value;
    static void Main( string[] args )
    String _s = "";
    if ( !CommonCls.AppInit("en-US" , true ) )
    return;
    _s = "Test of the default constructor of ManagedComputer";
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(true , _s);
    m_mc = new ManagedComputer();
    _s = String.Format("Name of the ManagedComputer : {0}" , m_mc.Name );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false , _s);
    _s = String.Format(" - {0} ClientProtocols" , CommonCls.Int32ToString( m_mc.ClientProtocols.Count , 5 ));
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false , _s );
    _s = String.Format(" - {0} ServerAliases" , CommonCls.Int32ToString( m_mc.ServerAliases.Count , 5 ) );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false , _s);
    _s = String.Format( " - {0} ServerInstances" , CommonCls.Int32ToString( m_mc.ServerInstances.Count , 5 ) );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    foreach ( ServerInstance _serverinstance in Mc.ServerInstances )
    _s = String.Format(" - Instance : {0}" , _serverinstance.Name );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = String.Format( " - {0} Services" , CommonCls.Int32ToString( m_mc.Services.Count , 5 ) );
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = "List of the available services : ";
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    foreach ( Service _service in Mc.Services )
    _s = " - Service : " + _service.Name;
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - DisplayName : " + _service.DisplayName;
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - ErrorControl : " + _service.ErrorControl.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - PathName : " + _service.PathName;
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - ProcessId : " + _service.ProcessId.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - ServiceAccount : " + _service.ServiceAccount;
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false ,_s);
    _s = " - ServiceState : " + _service.ServiceState.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - Type : " + _service.Type.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    _s = " - StartMode : " + _service.StartMode.ToString();
    Console.WriteLine(_s);
    CommonCls.AppWriteLog(false,_s);
    EndOfProgram :
    CommonCls.AppClose();
    I am getting the following results
    2014-09-08T20:23:33.1175952+02:00 *** Test of the default constructor of ManagedComputer
    Name of the ManagedComputer : USER-PC
    - 3 ClientProtocols
    - 0 ServerAliases
    - 3 ServerInstances
    - Instance : EXPRESS_ADV_2014
    - Instance : EXPRESSADV2014
    - Instance : SQLEXPRESS
    - 12 Services
    List of the available services :
    - Service : MSSQL$EXPRESS_ADV_2014
    - DisplayName : SQL Server (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\sqlservr.exe" -sEXPRESS_ADV_2014
    - ProcessId : 1972
    - ServiceState : Running
    - Type : SqlServer
    - StartMode : Auto
    - Service : MSSQL$EXPRESSADV2014
    - DisplayName : SQL Server (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\sqlservr.exe" -sEXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlServer
    - StartMode : Disabled
    - Service : MSSQL$SQLEXPRESS
    - DisplayName : SQL Server (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\sqlservr.exe" -sSQLEXPRESS
    - ProcessId : 356
    - ServiceState : Running
    - Type : SqlServer
    - StartMode : Auto
    - Service : MSSQLFDLauncher$EXPRESS_ADV_2014
    - DisplayName : SQL Full-text Filter Daemon Launcher (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\fdlauncher.exe" -s MSSQL12.EXPRESS_ADV_2014
    - ProcessId : 1708
    - ServiceState : Running
    - Type : 9
    - StartMode : Manual
    - Service : MSSQLFDLauncher$EXPRESSADV2014
    - DisplayName : SQL Full-text Filter Daemon Launcher (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\fdlauncher.exe" -s MSSQL12.EXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : 9
    - StartMode : Manual
    - Service : MSSQLFDLauncher$SQLEXPRESS
    - DisplayName : SQL Full-text Filter Daemon Launcher (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\fdlauncher.exe" -s MSSQL11.SQLEXPRESS_ADV
    - ProcessId : 3980
    - ServiceState : Running
    - Type : 9
    - StartMode : Manual
    - Service : ReportServer$EXPRESSADV2014
    - DisplayName : SQL Server Reporting Services (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSRS12.EXPRESSADV2014\Reporting Services\ReportServer\bin\ReportingServicesService.exe"
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : ReportServer
    - StartMode : Auto
    - Service : ReportServer$SQLEXPRESS
    - DisplayName : SQL Server Reporting Services (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSRS11.SQLEXPRESS_ADV\Reporting Services\ReportServer\bin\ReportingServicesService.exe"
    - ProcessId : 2516
    - ServiceState : Running
    - Type : ReportServer
    - StartMode : Auto
    - Service : SQLAgent$EXPRESS_ADV_2014
    - DisplayName : SQL Server Agent (EXPRESS_ADV_2014)
    - ErrorControl : Normal
    - PathName : "F:\Install_SQLServerExpress2014\MSSQL12.EXPRESS_ADV_2014\MSSQL\Binn\SQLAGENT.EXE" -i EXPRESS_ADV_2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLAgent$EXPRESSADV2014
    - DisplayName : SQL Server Agent (EXPRESSADV2014)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL12.EXPRESSADV2014\MSSQL\Binn\SQLAGENT.EXE" -i EXPRESSADV2014
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLAgent$SQLEXPRESS
    - DisplayName : SQL Server Agent (SQLEXPRESS)
    - ErrorControl : Normal
    - PathName : "C:\Program Files\Microsoft SQL Server\MSSQL11.SQLEXPRESS_ADV\MSSQL\Binn\SQLAGENT.EXE" -i SQLEXPRESS
    - ProcessId : 0
    - ServiceState : Stopped
    - Type : SqlAgent
    - StartMode : Disabled
    - Service : SQLBrowser
    - DisplayName : SQL Server Browser
    - ErrorControl : Normal
    - PathName : "C:\Program Files (x86)\Microsoft SQL Server\90\Shared\sqlbrowser.exe"
    - ProcessId : 2628
    - ServiceState : Running
    - Type : SqlBrowser
    - StartMode : Auto
    CommonCls.AppWriteLog is only a method which has 2 parameters , the 2nd one is the string to write in a application log , the 1st if true , the current datetime is written before the content of the 1st parameter. It is useful to simulate a hardcopy of the screen
    , especially when the application is a console one.
    I have not tested to write the startup parameters but it was working in a previous application
    As you can see , I have 3 instances , 1 SQL Server 2012 and 2 SQL Server 2014 ( but one is "ill" it's why the startup of the SQL Server service is disabled , it will be repaired when I will reinstall W7 or install W8 )
    I don't see any reason why you are not seen the 2012 instances except if the version of your assembly is 10 instead 11 ( a little tip :when you are adding a reference , in the box after a browse , you are sorting the names of the
    assemblies in the selection box , as the assemblies 2008/2008 R2 are appearing before the assemblies 2012 , it' minimizing the risk of confusion of assemblies and try to increase the visibility of the full path by double-clicking the title of the Path
    column , if you don't do that , you should not see the version number included in the path name ).
    Don't hesitate to post again for more help or explanations.
    Have a nice day
    Patrick
    Mark Post as helpful if it provides any help.Otherwise,leave it as it is.

  • Backup Sharepoint 2013 Farm with SQL 2012 "Always On" using System Center 2012 R2 Data Protection Manager

    Is backing up and Restoring SharePoint 2013 Farm with SQL 2012  "Always On" High Availability now supported using "System Center 2012 R2 Data Protection Manager"?
    I cannot find confirmation anywhere.
    Regards,
    John

    Per this thread
    http://social.technet.microsoft.com/Forums/en-US/0c047737-4733-4ad5-a24d-3e6e6ff42f70/dpm-2012-sp1-and-sharepoint-2013-on-a-sql-2012-alwayson-ag?forum=dpmsharepointbackup, no it does not look like this is supported.
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Hyper-V guest SQL 2012 cluster live migration failure

    I have two IBM HX5 nodes connected to IBM DS5300. Hyper-V 2012 cluster was built on blades. In HV cluster was made six virtual machines, connected to DS5300 via HV Virtual SAN. These VMs was formed a guest SQL Cluster. Databases' files are placed on
    DS5300 storage and available through VM FibreChannel Adapters. IBM MPIO Module is installed on all hosts and VMs.
    SQL Server instances work without problem. But! When I try to live migrate SQL VM to another HV node an SQL Instance fails. In SQL error log I see:
    2013-06-19 10:39:44.07 spid1s      Error: 17053, Severity: 16, State: 1.
    2013-06-19 10:39:44.07 spid1s      SQLServerLogMgr::LogWriter: Operating system error 170(The requested resource is in use.) encountered.
    2013-06-19 10:39:44.07 spid1s      Write error during log flush.
    2013-06-19 10:39:44.07 spid55      Error: 9001, Severity: 21, State: 4.
    2013-06-19 10:39:44.07 spid55      The log for database 'Admin' is not available. Check the event log for related error messages. Resolve any errors and restart the database.
    2013-06-19 10:39:44.07 spid55      Database Admin was shutdown due to error 9001 in routine 'XdesRMFull::CommitInternal'. Restart for non-snapshot databases will be attempted after all connections to the database are aborted.
    2013-06-19 10:39:44.31 spid36s     Error: 17053, Severity: 16, State: 1.
    2013-06-19 10:39:44.31 spid36s     fcb::close-flush: Operating system error (null) encountered.
    2013-06-19 10:39:44.31 spid36s     Error: 17053, Severity: 16, State: 1.
    2013-06-19 10:39:44.31 spid36s     fcb::close-flush: Operating system error (null) encountered.
    2013-06-19 10:39:44.32 spid36s     Error: 17053, Severity: 16, State: 1.
    2013-06-19 10:39:44.32 spid36s     fcb::close-flush: Operating system error (null) encountered.
    2013-06-19 10:39:44.32 spid36s     Error: 17053, Severity: 16, State: 1.
    2013-06-19 10:39:44.32 spid36s     fcb::close-flush: Operating system error (null) encountered.
    2013-06-19 10:39:44.33 spid36s     Starting up database 'Admin'.
    2013-06-19 10:39:44.58 spid36s     349 transactions rolled forward in database 'Admin' (6:0). This is an informational message only. No user action is required.
    2013-06-19 10:39:44.58 spid36s     SQLServerLogMgr::FixupLogTail (failure): alignBuf 0x000000001A75D000, writeSize 0x400, filePos 0x156adc00
    2013-06-19 10:39:44.58 spid36s     blankSize 0x3c0000, blkOffset 0x1056e, fileSeqNo 1313, totBytesWritten 0x0
    2013-06-19 10:39:44.58 spid36s     fcb status 0x42, handle 0x0000000000000BC0, size 262144 pages
    2013-06-19 10:39:44.58 spid36s     Error: 17053, Severity: 16, State: 1.
    2013-06-19 10:39:44.58 spid36s     SQLServerLogMgr::FixupLogTail: Operating system error 170(The requested resource is in use.) encountered.
    2013-06-19 10:39:44.58 spid36s     Error: 5159, Severity: 24, State: 13.
    2013-06-19 10:39:44.58 spid36s     Operating system error 170(The requested resource is in use.) on file "v:\MSSQL\log\Admin\Log.ldf" during FixupLogTail.
    2013-06-19 10:39:44.58 spid36s     Error: 3414, Severity: 21, State: 1.
    2013-06-19 10:39:44.58 spid36s     An error occurred during recovery, preventing the database 'Admin' (6:0) from restarting. Diagnose the recovery errors and fix them, or restore from a known good backup. If errors are not corrected or expected,
    contact Technical Support.
    In windows system log I see a lot of warnings like this:
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
      <Provider
    Name="Microsoft-Windows-Ntfs" Guid="{3FF37A1C-A68D-4D6E-8C9B-F79E8B16C482}" />
      <EventID>140</EventID>
      <Version>0</Version>
      <Level>3</Level>
      <Task>0</Task>
      <Opcode>0</Opcode>
      <Keywords>0x8000000000000008</Keywords>
      <TimeCreated
    SystemTime="2013-06-19T06:39:44.314400200Z" />
      <EventRecordID>25239</EventRecordID>
      <Correlation
    />
      <Execution
    ProcessID="4620" ThreadID="4284" />
      <Channel>System</Channel>
      <Computer>sql-node-5.local.net</Computer>
      <Security
    UserID="S-1-5-21-796845957-515967899-725345543-17066" />
      </System>
    - <EventData>
      <Data Name="VolumeId">\\?\Volume{752f0849-6201-48e9-8821-7db897a10305}</Data>
      <Data Name="DeviceName">\Device\HarddiskVolume70</Data>
      <Data Name="Error">0x80000011</Data>
      </EventData>
     </Event>
    The system failed to flush data to the transaction log. Corruption may occur in VolumeId: \\?\Volume{752f0849-6201-48e9-8821-7db897a10305}, DeviceName: \Device\HarddiskVolume70.
    ({Device Busy}
    The device is currently busy.)
    There aren't any error or warning in HV hosts.

    Hello,
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
    Thank you for your understanding and support.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click 
    here.
    Fanny Liu
    TechNet Community Support

  • SQL 2012 install fails with 'Object reference not set to an instance of an object.'

    Hi, I'm trying to install SQL 2012 RTM Enterprise on a Windows 2008 R2 single node cluster.
    The installer starts goes through some checks and then fails with the message 'Object reference not set to an instance of an object.' It happens while the small 'wait while...' dialog box is
    showing, another window pops up briefly (I think the feature selection window - can't really tell as it doesn't draw before disappearing). Then the ‘Object reference not set’ message comes up.
    From the summary log file..
    Overall summary:
    Final result:                 
    Failed: see details below
    Exit code (Decimal):          
    -2147467261
    Exit facility code:           
    0
    Exit error code:              
    16387
    Exit message:                 
    Object reference not set to an instance of an object.
    Start time:                   
    2012-09-26 08:52:53
    End time:                     
    2012-09-26 08:54:08
    Requested action:             
    InstallFailoverCluster
    Exception help link:          
    http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.2100.60&EvtType=0x9AF1AE5E%400x44A889F9&EvtType=0x9AF1AE5E%400x44A889F9
    Exception summary:
    The following is an exception stack listing the exceptions in outermost to innermost order
    Inner exceptions are being indented
    Exception type: System.NullReferenceException
    Message:
    Object reference not set to an instance of an object.
    Data:
    HelpLink.EvtType = 0x9AF1AE5E@0x44A889F9
    DisableWatson = true
    Stack:
    at Microsoft.SqlServer.Configuration.RulesEngineExtension.RulesEngine.ShouldRuleRun(Rule rule)
    at Microsoft.SqlServer.Configuration.RulesEngineExtension.RulesEngine.IsRuleSkipped(Rule rule)
    at Microsoft.SqlServer.Configuration.RulesEngineExtension.RulesEngine.LoadRule(String ruleId, List`1 ruleProperties, XmlSchema ruleSchema, XmlElementParserFactory elementParser)
    at Microsoft.SqlServer.Configuration.RulesEngineExtension.RulesEngine.LoadRules(IEnumerable`1 ruleIds)
    at Microsoft.SqlServer.Configuration.InstallWizard.RunRuleProgressController.Initialize()
    I have rebooted, tried different media, tried uninstalling the setup files and rerunning but always get the same result.
    Any help would be gratefully accepted.
    Thanks,
    Bruce.

    Hi Alberto,
    Whenever I am trying to install SQL 2012 with SP1 clustering, I am getting below error. Can you please advise on this. 
    Additional information are
    Windows Servers Version and Edition - Windows 2012 Strandedition
    SQL Server Version and Edition - SQL 2012 with SP1
    All the machines are running on Hyper-V and Passed the cluster validation test successfully. there is no issue. The servers' (Nodes) names are;
    DomainServerName - ACONDomainGroup (1gb ram allocated)
    Node1 - AconNODE1W2K12STD (2.5gb ram allocated )
    Node2 - AconNODE2W2K12STD (1.5 ram allocated allocated)
    WindowsClusterName - AconWinCLTR
    Below is  Summary.txt Error
      Update Source:                 MU
    User Input Settings:
      ACTION:                        InstallFailoverCluster
      AGTDOMAINGROUP:                <empty>
      AGTSVCACCOUNT:                 <empty>
      AGTSVCPASSWORD:                <empty>
      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
      COMMFABRICENCRYPTION:          0
      COMMFABRICNETWORKLEVEL:        0
      COMMFABRICPORT:                0
      CONFIGURATIONFILE:             
      ENU:                           true
      ERRORREPORTING:                false
      FAILOVERCLUSTERDISKS:          <empty>
      FAILOVERCLUSTERGROUP:          
      FAILOVERCLUSTERIPADDRESSES:    <empty>
      FAILOVERCLUSTERNETWORKNAME:    <empty>
      FEATURES:                      
      FILESTREAMLEVEL:               0
      FILESTREAMSHARENAME:           <empty>
      FTSVCACCOUNT:                  <empty>
      FTSVCPASSWORD:                 <empty>
      HELP:                          false
      IACCEPTSQLSERVERLICENSETERMS:  false
      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:                    <empty>
      INSTANCENAME:                  <empty>
      ISSVCACCOUNT:                  NT AUTHORITY\Network Service
      ISSVCPASSWORD:                 <empty>
      ISSVCSTARTUPTYPE:              Automatic
      MATRIXCMBRICKCOMMPORT:         0
      MATRIXCMSERVERNAME:            <empty>
      MATRIXNAME:                    <empty>
      PID:                           *****
      QUIET:                         false
      QUIETSIMPLE:                   false
      RSINSTALLMODE:                 DefaultNativeMode
      RSSHPINSTALLMODE:              DefaultSharePointMode
      RSSVCACCOUNT:                  <empty>
      RSSVCPASSWORD:                 <empty>
      RSSVCSTARTUPTYPE:              Automatic
      SAPWD:                         <empty>
      SECURITYMODE:                  <empty>
      SQLBACKUPDIR:                  <empty>
      SQLCOLLATION:                  SQL_Latin1_General_CP1_CI_AS
      SQLSVCACCOUNT:                 <empty>
      SQLSVCPASSWORD:                <empty>
      SQLSYSADMINACCOUNTS:           <empty>
      SQLTEMPDBDIR:                  <empty>
      SQLTEMPDBLOGDIR:               <empty>
      SQLUSERDBDIR:                  <empty>
      SQLUSERDBLOGDIR:               <empty>
      SQMREPORTING:                  false
      UIMODE:                        Normal
      UpdateEnabled:                 true
      UpdateSource:                  MU
      X86:                           false
      Configuration file:            C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140420_052344\ConfigurationFile.ini
    Rules with failures:
    Global rules:
    There are no scenario-specific rules.
    Rules report file:               C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140420_052344\SystemConfigurationCheck_Report.htm
    Exception summary:
    The following is an exception stack listing the exceptions in outermost to innermost order
    Inner exceptions are being indented
    Exception type: System.NullReferenceException
        Message: 
            Object reference not set to an instance of an object.
        HResult : 0x80004003
        Data: 
          HelpLink.EvtType = 0x9AF1AE5E@0x44A889F9
          DisableWatson = true
        Stack: 
            at Microsoft.SqlServer.Configuration.RulesEngineExtension.RulesEngine.ShouldRuleRun(Rule rule)
            at Microsoft.SqlServer.Configuration.RulesEngineExtension.RulesEngine.IsRuleSkipped(Rule rule)
            at Microsoft.SqlServer.Configuration.RulesEngineExtension.RulesEngine.LoadRule(String ruleId, List`1 ruleProperties, XmlSchema ruleSchema, XmlElementParserFactory elementParser)
            at Microsoft.SqlServer.Configuration.RulesEngineExtension.RulesEngine.LoadRules(IEnumerable`1 ruleIds)
            at Microsoft.SqlServer.Configuration.InstallWizard.RunRuleProgressController.Initialize()

  • Error while trying to upgrade SQL 2008 (SP2) to SQL 2012: There was a failure to calculate the applicability of setting LICENSEPATH.

    Hi,
    I am trying to upgrade one of our SQL Server Enterprise (2008 (SP2)) to 2012. I am using the upgrade option but it gives me the following error:
    Error Code 0x85640002: There was a failure to calculate the applicability of setting LICENSEPATH
    We have downloaded the image from our Volume Licensing account. Also, the same image was used to install SQL 2012 on Windows Server 2012 R2 servers without any issues.
    Below is the install summary.txt. I have tried everywhere but no go. Would really appreciate any assistance.
    Overall summary:
      Final result:                  Failed: see details below
      Exit code (Decimal):           -2057043966
      Exit facility code:            1380
      Exit error code:               2
      Exit message:                  There was a failure to calculate the applicability of setting LICENSEPATH.
      Start time:                    2014-02-28 10:58:49
      End time:                      2014-02-28 10:58:58
      Requested action:              RunRules
      Exception help link:           http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.2100.60&EvtType=0x0BA02FC6%400x294A9FD9&EvtType=0x0BA02FC6%400x294A9FD9
    Machine Properties:
      Machine name:                  xxxxxxx
      Machine processor count:       2
      OS version:                    Windows Server 2008 R2
      OS service pack:               Service Pack 1
      OS region:                     U.A.E.
      OS language:                   English (United States)
      OS architecture:               x64
      Process architecture:          64 Bit
      OS clustered:                  No
    Package properties:
      Description:                   Microsoft SQL Server 2012
      ProductName:                   SQL Server 2012
      Type:                          RTM
      Version:                       11
      SPLevel:                       0
      Installation location:         D:\x64\setup\
      Installation edition:          
    User Input Settings:
      ACTION:                        RunRules
      CONFIGURATIONFILE:             
      ENU:                           true
      FEATURES:                      
      HELP:                          false
      INDICATEPROGRESS:              false
      INSTANCENAME:                  <empty>
      PID:                           *****
      QUIET:                         true
      QUIETSIMPLE:                   false
      RULES:                         GlobalRules
      UIMODE:                        Normal
      X86:                           false
      Configuration file:            C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20140228_105848\ConfigurationFile.ini
    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.Chainer.Infrastructure.CalculateSettingApplicabilityException
        Message:
            There was a failure to calculate the applicability of setting LICENSEPATH.
        HResult : 0x85640002
            FacilityCode : 1380 (564)
            ErrorCode : 2 (0002)
        Data:
          SettingId = LICENSEPATH
          WatsonData = Microsoft.SqlServer.Chainer.Infrastructure.CalculateSettingApplicabilityException@2
          DisableWatson = true
        Stack:
            at Microsoft.SqlServer.Chainer.Infrastructure.Setting.CalculateApplicability()
            at Microsoft.SqlServer.Configuration.BootstrapExtension.ValidateChainerSettingAction.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: Microsoft.SqlServer.Chainer.Infrastructure.CalculateSettingValueException
            Message:
                    There was a failure to calculate the default value of setting LICENSEPATH.
            HResult : 0x85640001
                    FacilityCode : 1380 (564)
                    ErrorCode : 1 (0001)
            Data:
              SettingId = LICENSEPATH
              WatsonData = Microsoft.SqlServer.Chainer.Infrastructure.CalculateSettingValueException@1
            Stack:
                    at Microsoft.SqlServer.Chainer.Infrastructure.Setting`1.CalculateValue()
                    at Microsoft.SqlServer.Deployment.PrioritizedPublishing.PublishingQueue.CallQueuedSubscriberDelegates()
                    at Microsoft.SqlServer.Deployment.PrioritizedPublishing.PublishingQueue.Publish(Publisher publisher)
                    at Microsoft.SqlServer.Chainer.Infrastructure.Setting.CalculateApplicability()
            Inner exception type: System.ArgumentException
                Message:
                            Culture ID 3072 (0x0C00) is not a supported culture.
                            Parameter name: culture
                Stack:
                            at System.Globalization.CultureInfo..ctor(Int32 culture, Boolean useUserOverride)
                            at System.Globalization.CultureTable.GetCultures(CultureTypes types)
                            at Microsoft.SqlServer.Configuration.SetupExtension.LcidUtilities.GetLangPackParentFolderForLcid(String lcid)
                            at Microsoft.SqlServer.Configuration.SetupExtension.LcidUtilities.GetLcidFolder(ServiceContainer context, String baseFolderFullPath)
                            at Microsoft.SqlServer.Configuration.SetupExtension.LicensePathSetting.DefaultValue()
                            at Microsoft.SqlServer.Deployment.PrioritizedPublishing.PublishingQueue.CallFunctionWhileAutosubscribing[T](SubscriberDelegate
    subscriberDelegate, Int32 priority, AutosubscribingFunctionDelegate`1 function)
                            at Microsoft.SqlServer.Chainer.Infrastructure.Setting`1.CalculateValue()
    Regards,
    Mohammed

    Culture ID 3072 (0x0C00) is not a supported culture.
                            Parameter name: culture
    This appears to be the root problem. It seems that the regional settings on this machine is messed up. 0x0C00 is an unusual LCID, they do not normally not end in two zeroes.
    is there a custom culture installed on this machine?
    Review the regional settings and also check the System locale. If it looks spooky, set it to Arabic - U.A.E. if this is where you are located.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • SQL 2012 HADR failover instance

    Greetings all.
    Currently here is the setup we have built out.  All are Server 2012 R2 OS
    2 node FCI shared storage SQL 2012 servers in production site.  Failover works flawlessly between them. WSFC setup between them
    1 node in DR, member of the WSFC with the 2 servers above but not FCI, seperate storage infrastructure but same disk drive letter setups
    Availability Groups setup between the 2 that are fully synchronized
    We are going to have a planned primary outage in the primary DC.  Nerves are getting the better of me in regard to the setup.  I know the data is there and it can be accessed.  My question is that once i perform the failure of the two nodes
    in the FCI how are my applications going to know how to reach the HADR server as it is on a seperate instance?  Does SQL aliasing need to be setup in the configuration to make it work properly or am i being overly paranoid at this point?

    The listener name is similar to a cluster client access point. When you create a listener name, it will create a virtual computer object in Active Directory and, with AD-integrated DNS, will create the corresponding DNS entries. Depending on how you configure
    your cluster, the listener name should have 2 virtual IP addresses - one for the production network and another for the DR network - and will be written to the DNS. That being said, your listener name has to be unique so that the network traffic can be properly
    routed to the instance running the Availability Group. You also need to configure the appropriate TTL value for the listener name or use the latest SQL Server client APIs to take advantage of the MultiSubnetFailover parameter in the application connection
    string
    Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
    Blog |
    Twitter | LinkedIn
    SQL Server High Availability and Disaster Recover Deep Dive Course

  • SQL 2012 different than typical System.OutOfMemoryException

    When ssms 2012 hits some kind of memory threshold it stops working, and I have to open a new instance.
    I can close all my queries, and trying to return even a single record from a one record single column table is impossible.
    The database is fine for memory, since I can run the query in a different instance of ssms with no problem.
    I really don't like having to move everything to a new ssms instance twice a day. Is there any workaround?
    Is there a memory setting in ssms I am over looking?
    The Ssms.exe *32 process that is out of memory is currently using 727,080 k
    An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.
    FileSizeMB
    UsedSpaceMB
    UnusedSpaceMB
     Type
    DBFileName
    4848.25
    62.52
    4785.73
     Log
    BoundReporting_log
    97143
    61683.75
    35459.25
     Data
    BoundReporting
    101991.25
    61746.27
    40244.98
    Total for all   files
    Also my box is fine. I'm Using 5.43 of 8 gb of ram.

    I'm getting the same problem about once/week with SQL 2012 SP2 CU2.  Guess I'll try a more recent update and see what happens...
    Please note that this is a client-side issue, not server side.  SSMS.exe vs. the actual server component.
    Yes, Shanky_621,
    we did use the key words "out of memory", but neither of your posts are relevant.
    My own SSMS version info reports:
    Microsoft SQL Server Management Studio 11.0.5548.0
    Microsoft Analysis Services Client Tools 11.0.5548.0
    Microsoft Data Access Components (MDAC) 6.1.7601.17514
    Microsoft MSXML 3.0 4.0 6.0 
    Microsoft Internet Explorer 9.11.9600.17633
    Microsoft .NET Framework 4.0.30319.34209
    Operating System 6.1.7601

  • Object reference not set to an instance of an object. Unable to finish the SQL 2012 installation on a VM Machine

    Hi, My name is Leonard and I am studying SQL. I have downloaded the newest MS SQL 2012 and also MS 2012 Hyper-V. I have set a MS 2012 Hyper-V on a laptop with AMD Turion 64 X2 and 3G of RAM (Planing
    to add more to max at 8G).
    Following the instructions in the free online
    Administering Microsoft SQL Server 2012 Databases” Training Kit, I have set 6 virtual machines as instructed in the Training Kit. While the installation of the MS Server Core 2008 R2 SP1 completed with no
    problem, the same cannot be said for the SQL Server 2012 installation. I have encountered an error that I have not seen anyone address in any of the SQL web forums.
    After running the unattended setup instruction (Setup.exe /qs /ACTION=Install /FEATURES=SQLEngine /INSTANCENAME=MSSQLSERVER
    /SQLSVCACCOUNT="Njowa\Pa$$worD>" /SQLSVCPASSWORD=" Pa$$worD” /SQLSYSADMINACCOUNTS="Njowa\lenny#4!@" /AGTSVCACCOUNT="NT AUTHORITY\Network Service"
     /IACCEPTSQLSERVERLICENSETERMS) this is what I get after a series SQL setup
     initiation windows popups then disappears.
    The following error occurred:
    Object reference not set to an instance of an object.
    Error result: -2147467261
    Result facility Code: 0
    Result error Code: 16387
    Please review the summary.txt log for further details
    My question is: What instance of an object is not properly initialize in the Setup instructions

    Hello,
    Please note that SQL Server requires at least 1 GB of RAM. The operating system (Windows Server) requires 2 GB of RAM (recommended) or 512 MB (minimum). This means any virtual machine that will receive the installation of a SQL Server instance requires 1.5
    or 2 GB at least.
    The behavior of SQL Server setup tells me that the virtual machine does not have enough memory assigned or .NET Framework 3.5 was not enable on Control Panel->Program
    and Features before trying to install SQL Server.
    The following thread is about another possible cause of this error:
    http://social.msdn.microsoft.com/Forums/mr-IN/sqlsetupandupgrade/thread/575d3025-69f5-4152-a473-44496b008811
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Error: There was a failure to call cluster code from a provider. Exception message: Generic failure . Status code: 5015. SQL 2012 SP1

    Hi,
    Please help. I was trying to remove a SQL 2012 SP1 two node clustered instance using setup (Mantenance -> Remove Node)
    I started by doing this on passive node (and was successful) but when I ran setup on active node just before finishing successfully I got this error:
    TITLE: Microsoft SQL Server 2012 Service Pack 1 Setup
    The following error has occurred:
    The resource 'BCK_SG1DB' could not be moved from cluster group 'SQL Server (SG1DB)' to cluster group 'Available Storage'. 
    Error: There was a failure to call cluster code from a provider. Exception message: Generic failure . Status code: 5015.
    Description: The operation failed because either the specified cluster node is not the owner of the resource, or the node
    is not a possible owner of the resource.
    For help, click:
    http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3000.0&EvtType=0xE8049925%25400x42B4DED7
    BUTTONS:
    OK
    I noticed that SG1DB instance was removed on both nodes but on Failover Cluster Manager -> Services and Applications the SQL server instance for SG1DB is still there. So I tried to delete it but got the error:
    Failed to delete SQL Server SG1DB. An error was encountered while deleting the cluster service or
    application SQL Server SG1DB. Could not move the resource to available storage. An error occured
    while moving the resource BCK_SG1DB to the clustered service or application Available Storage
    Any ideas why it failed or how could I delete the SQL server instance from Clauster?
    Thx

    Hello,
    Please read the following resource.
    https://support.microsoft.com/en-us/kb/kbview/313882?wa=wsignin1.0
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • 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

Maybe you are looking for