SQL Express 2008 R2 - CREATE DATABASE permission denied in database 'master'

I have created a setup application with SQLEXpress 2008 as a prerequisite. On test SQLExpress installs OK
after the application is installed it must create and install a database using a mixture of SMO and Scripting. I used SMO to add the current user (who is a Windows Administrator) as a Login to the SQL Express server.
Dim l As Login = New Login(srv, My.User.Name)
                l.LoginType = LoginType.WindowsUser
                l.AddToRole("sysadmin")
                l.DefaultDatabase = "MASTER"
                l.Create()
It fails on srv.CreateDatabase with error message "permission denied in database MASTER"
this thread talks about converting the server to single user mode before adding a login
http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/86daf5f5-d333-40b1-ae6f-0da052a96600
how is it possible to scrip this? there is no documentation i can find. 
the database must be installed in the ProgramData folder. Is there a permissions issue with this. Do I need to assign permissions to this folder somehow?
bear in mind this will be a remote install and the user expects it work flawlessly.  No manual interventions

if i connect to the sqlexpress instance  (local)\SQLEXPRESSS  using SQL Management Studio and try to modify the Windows User Login I get the error message:
"User does not have permission to perform this action. (Microsoft SQL Server, Error: 15247)"
how is this possible. it seems to be at an impasse. can't go forward or backward 
Now try launching Managenment Studio by right clicking on shortcut and choosing "Run As Adminitstartor".
If above works then you are running on Windows 2008 family OS (Vista, 2k8 or Win7) which has
UAC feature.
If above does not work then you really don't have permission then follow below. 
Troubleshooting: Connecting to SQL Server When System Administrators Are Locked Out
Start the instance of SQL Server in single-user mode by using either the
-m or
-f options. Any member of the computer's local Administrators group can then connect to the instance of SQL Server as a member of the
sysadmin fixed server role.
http://msdn.microsoft.com/en-us/library/dd207004.aspx
Balmukund Lakhani | Please mark solved if I've answered your question, vote for it as helpful to help other user's find a solution quicker
This posting is provided "AS IS" with no warranties, and confers no rights.
My Blog: http://blogs.msdn.com/blakhani
Team Blog: http://blogs.msdn.com/sqlserverfaq

Similar Messages

  • CREATE DATABASE permission denied in database 'master'.

    Hi,
    I have tipical situation in my database environment. i have task for deployment few object in Stage environment while running those scripts showing these error message "create database permission denied in database 'master'"
    I have SA permissions in my server and environment is Sql server 2008 r2.
    Please help on this.
    thanks in advance
    Vijay

    If you have SA permissions then you will never get this error.
    What is the login that you used. Confirm if you indeed has SA permissions in the instance that you are trying to execute the script and got this error.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Error message "CREATE TABLE permission denied in database 'master'"

    I am starting an application and I get the error message above. I do not want to creat tables in the master database - therefore I created my own database and added it to the Connection string:
    DATABASE=TEST
    But still the same message.

    Hi,
    As said you have created the new database and want create a table. Please make sure you are connecting to the right database. If you are unable to get the connection string of the newly created database, please go to the management portal and click
    on the newly created database and click on dashboard to get the connection strings for the database. Then you can add the same information from where you are trying to create table with the database name to proceed further.
    It seems that you are connecting to master instead of connect against your new database that you have created. Once you connect to your database you will need permission to create tables. If you are "dbmanager" role you should not have any problem
    to create it.
    Hope this helps you.
    Girish Prajwal

  • SQL Express 2008 R2 Error:15209 - An error occurred during encryption

    I am trying to install SQL Server Express 2008 R2 but it keeps failing .
    The computer is Windows 7 x64, all the latest service packs and updates installed. 
    The application is by Greatland, called Yearli (formerly called WinFiler). 
    Last year’s WinFiler, which was installed on this PC, used SQL 2008 Express (x86). 
    This year’s version is using R2 and attempted to install a new database. 
    I have since uninstalled last year’s database.
    When I run the Yearli install, it first attempts to install SQL Express 2008 R2, but the install fails with this error at the end of ERRORLOG:
    Error: 15209, Severity: 16, State: 1. "An error occurred during encryption."
    I have been researching this for days.  What I have done so far, based on MSKB and other user posts, is the following:
    Changed the account for the SQL service from Local System to NETWORK SERVICE. 
    Add NETWORK SERVICE to the “Protect” folder with Full permission added.
    Neither of these have worked.  SQL appears to be installed, but the service will not start.
    In the Windows System log I get this message:
    The SQL Server (WFP_SS8E) service terminated with service-specific error The specified resource name cannot be found in the image file..
    In the Windows Application log I get this message:
    FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf'. Diagnose and correct the operating system error,
    and retry the operation.
    The App log error is interesting because there is no E: drive on the system.
    SFC /Scannow came up clean.
    I don’t have any other ideas, so if anyone else does, I’d appreciate it.

    SQL appears to be installed, but the service will not start.
    In the Windows System log I get this message:
    The SQL Server (WFP_SS8E) service terminated with service-specific error The specified resource name cannot be found in the image file..
    In the Windows Application log I get this message:
    FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf'. Diagnose and correct the operating system error,
    and retry the operation.
    Hi dfosbenner,
    According to your description, SQL Server fails to start and you get the error message (Operating system error 2……) in Windows Application log. To work around this issue, you might have to change the path of the files by running the following scripts from
    the command prompt. The example is to put MSDB files in C drive, you can change the path of the files to other drives.
    NET START MSSQL$SQLEXPRESS /f /T3608
    SQLCMD -S .\SQLEXPRESS
    ALTER DATABASE msdb MODIFY FILE ( NAME = MSDBData, FILENAME = 'C:\MSDBData.mdf');
    ALTER DATABASE msdb MODIFY FILE ( NAME = MSDBLog, FILENAME = 'C:\MSDBLog.ldf');
    go
    exit;
    NET STOP MSSQL$SQLEXPRESS
    For more details, please review the following thread.
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/54bbcac3-41c5-4a5d-a4f6-2669e538dc82/sqlserver-2008-express-install-error?forum=sqlexpress
    Thanks,
    Lydia Zhang

  • Problem accessing SQL Express 2008 R2 after VS package install

    I've written an application package in Visual Studio 2010 which requires SQL Express 2008 R2. I've also created a separate setup package and set SQL Express as a prerequisite. Everything runs as expected except that after the install on target machine
    I do not have adequate permissions in SQL to attach the database or set up the user via SQLCMD script. This happens on WIN 7 and up. I know it is a permissions issue with the default install of SQL but do not know how to otherwise perform the install and make
    it work. Looking for someone to walk me through and resolve this issue.

    Hi Zanith,
    Actually this forum is to discuss the VS IDE issue.
    >> Everything runs as expected except that after the install on target machine I do not have adequate permissions in SQL to attach the database or set up the user via SQLCMD script
    Based on your description, the important issue would be related to the permission, as my understanding, it would be related to the SQL Server setup or configuration.
    So my suggestion is that you’d better post this issue to the SQL Server forum.
    https://social.technet.microsoft.com/Forums/en-US/home?forum=sqlgetstarted
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlexpress
    I also found two cases about the SQL Server permission issue.
    Reference:
    http://stackoverflow.com/questions/9185142/sql-server-2008-r2-express-permissions-cannot-create-database-or-modify-users
    http://serverfault.com/questions/53645/don-t-have-permission-to-access-sql-server-express-2008
    Best Regards,
    Jack
    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.

  • SQL Express 2008 R2 will not start on Windows 7 Home

    Ok, This used to work, and then over night my system rebooted and now I cannot start SQL Express 2008 R2 after I have unistalled, and re-installed.   Cleared out the folders and the certificates, changed the Named Pipes configuration and all to
    no avail.   Here is my log file.
    -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    2014-06-14 08:45:18.18 Server      Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)
        Jun 17 2011 00:54:03
        Copyright (c) Microsoft Corporation
        Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    2014-06-14 08:45:18.18 Server      (c) Microsoft Corporation.
    2014-06-14 08:45:18.18 Server      All rights reserved.
    2014-06-14 08:45:18.18 Server      Server process ID is 8924.
    2014-06-14 08:45:18.18 Server      System Manufacturer: 'SAMSUNG ELECTRONICS CO., LTD.', System Model: '700Z3A/700Z4A/700Z5A/700Z5B'.
    2014-06-14 08:45:18.18 Server      Authentication mode is MIXED.
    2014-06-14 08:45:18.18 Server      Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG'.
    2014-06-14 08:45:18.18 Server      This instance of SQL Server last reported using a process ID of 2820 at 6/14/2014 8:32:55 AM (local) 6/14/2014 1:32:55 PM (UTC). This is an informational message only; no user action is required.
    2014-06-14 08:45:18.18 Server      Registry startup parameters:
         -d C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\master.mdf
         -e C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG
         -l C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\mastlog.ldf
    2014-06-14 08:45:18.18 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2014-06-14 08:45:18.18 Server      Detected 8 CPUs. This is an informational message; no user action is required.
    2014-06-14 08:45:18.21 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    2014-06-14 08:45:18.23 Server      Node configuration: node 0: CPU mask: 0x00000000000000ff:0 Active CPU mask: 0x00000000000000ff:0. This message provides a description of the NUMA configuration for this computer. This is an informational
    message only. No user action is required.
    2014-06-14 08:45:18.25 spid7s      Starting up database 'master'.
    2014-06-14 08:45:18.28 spid7s      FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'ACT7'.
    2014-06-14 08:45:18.29 spid7s      SQL Trace ID 1 was started by login "sa".
    2014-06-14 08:45:18.29 spid7s      Starting up database 'mssqlsystemresource'.
    2014-06-14 08:45:18.30 spid7s      The resource database build version is 10.50.2500. This is an informational message only. No user action is required.
    2014-06-14 08:45:18.32 spid7s      Server name is 'MARTINDAHL-PC\ACT7'. This is an informational message only. No user action is required.
    2014-06-14 08:45:18.32 spid10s     Starting up database 'model'.
    2014-06-14 08:45:18.32 spid7s      Informational: No full-text supported languages found.
    2014-06-14 08:45:18.32 spid7s      Starting up database 'msdb'.
    2014-06-14 08:45:18.33 Server      Error: 17190, Severity: 16, State: 1.
    2014-06-14 08:45:18.33 Server      Initializing the FallBack certificate failed with error code: 1, state: 1, error number: -2146893802.
    2014-06-14 08:45:18.33 Server      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-06-14 08:45:18.33 Server      Error: 17182, Severity: 16, State: 1.
    2014-06-14 08:45:18.33 Server      TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
    2014-06-14 08:45:18.33 Server      Error: 17182, Severity: 16, State: 1.
    2014-06-14 08:45:18.33 Server      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-06-14 08:45:18.33 Server      Error: 17826, Severity: 18, State: 3.
    2014-06-14 08:45:18.33 Server      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-06-14 08:45:18.33 Server      Error: 17120, Severity: 16, State: 1.
    2014-06-14 08:45:18.33 Server      SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
    -=-=-=-=-=-=-=-=-=-=
    I am logged into either the Administrator Account or my Account in which I am in the Adminstrator Group or an Admin.   My OS is Windows 7 Home Premium Edition, so I cannot clear out the MSSQL groups and things I have seen online.  Since this
    is Express, there is limited capabilities with the config tool.  
    I have tried to change the log in as in the SQL Configuration tool and every item I check, Local Service, Local System, Network Service all give the same error,
    "Cannot Find Object or Property. [0x80042004]
    SInce I have Home Premium, MMC will not load the snap in for Local Users and groups to check out these items.
    A check of the net user shows only the Administrator, Guest and my local login in Admin Account.  net localgroups show these items.
    *Administrators
    *Distributed COM Users
    *Event Log Readers
    *Guests
    *HomeUsers
    *IIS_IUSRS
    *IIS_WPG
    *Performance Log Users
    *Performance Monitor Users
    *SQLServer2005SQLBrowserUser$MARTINDAHL-PC
    *SQLServerFDHostUser$MartinDahl-PC$ACT7
    *SQLServerMSSQLServerADHelperUser$MARTINDAHL-PC
    *SQLServerMSSQLUser$MartinDahl-PC$ACT7
    *SQLServerSQLAgentUser$MARTINDAHL-PC$ACT7
    *Users
    The command completed successfully.
    I checked the SSL and Force Encryption is set to no and the certificates have been cleared.  
    I am not sure how to solve this problem.   Please help.   Thanks, in advance. 

    I created a new Administrator account on the machine, mdahl.   I then started the SQL Configuration Tool and changed the log on to this new account.  Same problem.   Here is the SQL Log.
    2014-06-14 11:24:15.83 Server      Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64)
        Jun 17 2011 00:54:03
        Copyright (c) Microsoft Corporation
        Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
    2014-06-14 11:24:15.83 Server      (c) Microsoft Corporation.
    2014-06-14 11:24:15.83 Server      All rights reserved.
    2014-06-14 11:24:15.83 Server      Server process ID is 11448.
    2014-06-14 11:24:15.83 Server      System Manufacturer: 'SAMSUNG ELECTRONICS CO., LTD.', System Model: '700Z3A/700Z4A/700Z5A/700Z5B'.
    2014-06-14 11:24:15.83 Server      Authentication mode is MIXED.
    2014-06-14 11:24:15.83 Server      Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG'.
    2014-06-14 11:24:15.83 Server      This instance of SQL Server last reported using a process ID of 5952 at 6/14/2014 11:21:35 AM (local) 6/14/2014 4:21:35 PM (UTC). This is an informational message only; no user action is required.
    2014-06-14 11:24:15.83 Server      Registry startup parameters:
         -d C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\master.mdf
         -e C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG
         -l C:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\mastlog.ldf
    2014-06-14 11:24:15.83 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2014-06-14 11:24:15.83 Server      Detected 8 CPUs. This is an informational message; no user action is required.
    2014-06-14 11:24:15.87 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    2014-06-14 11:24:15.88 Server      Node configuration: node 0: CPU mask: 0x00000000000000ff:0 Active CPU mask: 0x00000000000000ff:0. This message provides a description of the NUMA configuration for this computer. This is an informational
    message only. No user action is required.
    2014-06-14 11:24:15.90 spid7s      Starting up database 'master'.
    2014-06-14 11:24:15.91 spid7s      1 transactions rolled forward in database 'master' (1). This is an informational message only. No user action is required.
    2014-06-14 11:24:15.91 spid7s      0 transactions rolled back in database 'master' (1). This is an informational message only. No user action is required.
    2014-06-14 11:24:15.91 spid7s      Recovery is writing a checkpoint in database 'master' (1). This is an informational message only. No user action is required.
    2014-06-14 11:24:15.92 spid7s      FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'ACT7'.
    2014-06-14 11:24:15.93 spid7s      SQL Trace ID 1 was started by login "sa".
    2014-06-14 11:24:15.93 spid7s      Starting up database 'mssqlsystemresource'.
    2014-06-14 11:24:15.93 spid7s      The resource database build version is 10.50.2500. This is an informational message only. No user action is required.
    2014-06-14 11:24:16.03 spid7s      Server name is 'MARTINDAHL-PC\ACT7'. This is an informational message only. No user action is required.
    2014-06-14 11:24:16.03 spid10s     Starting up database 'model'.
    2014-06-14 11:24:16.03 spid7s      Informational: No full-text supported languages found.
    2014-06-14 11:24:16.03 spid7s      Starting up database 'msdb'.
    2014-06-14 11:24:16.03 Server      Error: 17190, Severity: 16, State: 1.
    2014-06-14 11:24:16.03 Server      Initializing the FallBack certificate failed with error code: 1, state: 1, error number: -2146893802.
    2014-06-14 11:24:16.03 Server      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-06-14 11:24:16.03 Server      Error: 17182, Severity: 16, State: 1.
    2014-06-14 11:24:16.03 Server      TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
    2014-06-14 11:24:16.03 Server      Error: 17182, Severity: 16, State: 1.
    2014-06-14 11:24:16.03 Server      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-06-14 11:24:16.03 Server      Error: 17826, Severity: 18, State: 3.
    2014-06-14 11:24:16.03 Server      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-06-14 11:24:16.03 Server      Error: 17120, Severity: 16, State: 1.
    2014-06-14 11:24:16.03 Server      SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems.
    Also, the link you provided is to Windows Vista, not Windows 7 Home Premium.  However, I did look at the registry setting they said to look at in the link.
    Locate the following registry subkey:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
    Under the ProfileList subkey, delete the subkey that is named <var>SID</var>.bak.
    Note <var>SID</var> is a placeholder for the security identifier (SID) of the user account that is experiencing the problem. The <var>SID</var>.bak subkey should contain a ProfileImagePath registry entry that points to the original profile
    folder of the user account that is experiencing the problem.
    Exit Registry Editor.
    Looking into my registry for my ProfilesList as mentioned. I have these items.
    S-1-5-19 Folder with Default (Value not set), Flags (REG_DWORD) 0x0000000, ProfileImagePath (REG_EXPANDS_SZ) C:Windows\ServiceProfiles\LocalService, State (REG_DWORD) 0x0000000
    S-1-5-20 Folder with Default (Value not set), Flags (REG_DWORD) 0x0000000, ProfileImagePath (REG_EXPANDS_SZ) C:Windows\ServiceProfiles\NetworkService, State (REG_DWORD) 0x0000000
    Then I have an item for each of my three accounts, Administrator, Martin Dahl, and mdahl, All admin Accounts, which has no sid.bak, but a Sid, so not sure how this link helps me either.   Still looking for assistance.  Still not starting.

  • SQL Express 2008 R2 and SQL 2005 Server SP1 in single Windows 2003 server

    Hi,
    I am using a Windows Server 2003 R2 Enterprise Ed SP2 OS with SQL 2005 SP1 intallled on it for our Nav 5 database.
    As my backup software requires SQL Express 2008 R2 as default daabase, is it possible to install this in the same server with the SQL 2005 currently running on it? Would there be any impact on the existing SQL 2005 and the application and the Navision database
    on it?
    Appreciate your help.
    Sharon Lo

    Hi,
    I am using a Windows Server 2003 R2 Enterprise Ed SP2 OS with SQL 2005 SP1 intallled on it for our Nav 5 database.
    As my backup software requires SQL Express 2008 R2 as default daabase, is it possible to install this in the same server with the SQL 2005 currently running on it? Would there be any impact on the existing SQL 2005 and the application and the Navision database
    on it?
    There is no issue with installing multiple versions of SQL Server on a machine.I have SS 2005 ,2008 R2 and 2012 all on same machine and they work just fine. You can install all version instances side by side and all will work independently from
    each other.
    Now issue which might cause problem  your SQL Server 2005 is SP1 which is a Blunder IMO. Please ASAP patch it to SP4 because you are running very old version of 2005 which is unsupported by Microsoft and also SP4 includes MANY fixes for SQLServer
    2005. Applying SP4 will fix many issues and will bring you under Microsoft support.
    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

  • Cannot find service {0}. Parameter name: SQLWriter SQL Express 2008 R2 SP2

    Hi, installing SQL Express 2008 R2 SP2 onto Windows Server 2012 R2.   I had previously removed SQL Express 2012 due to failed install due to incompatibility with our SAN.   (I had uninstalled it via Programs & Features,
    and also by following Shanky's tips. http://social.technet.microsoft.com/wiki/contents/articles/24364.sql-server-troubleshooting-could-not-find-database-engine-startup-handle-error-during-installation.aspx).
    This is what's in Detail log: 
    014-10-07 13:12:00 Slp: Parameter 5 : SqlEngineConfigAction_install_confignonrc
    2014-10-07 13:12:00 Slp: Parameter 6 : 0x50806C41
    014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Microsoft_Microsoft SQL Server.reg_
    2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Microsoft_Windows_CurrentVersion_Uninstall.reg_
    2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Microsoft\MSSQLServer to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Microsoft_MSSQLServer.reg_
    2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Wow6432Node_Microsoft_Microsoft SQL
    Server.reg_
    2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Wow6432Node_Microsoft_Windows_CurrentVersion_Uninstall.reg_
    2014-10-07 13:12:01 Slp: Sco: Attempting to write hklm registry key SOFTWARE\Wow6432Node\Microsoft\MSSQLServer to file C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20141007_122920\Registry_SOFTWARE_Wow6432Node_Microsoft_MSSQLServer.reg_
    2014-10-07 13:12:02 Slp: Cannot find service {0}.
    The SqlEngineConfigAction_install_confignonrc part is what is in the background before the
    Cannot find service {0}. Parameter name: SQLWriter pops up.
    And in Event Viewer:
    Log Name:      Application
    Source:        Microsoft-Windows-RestartManager
    Date:          10/7/2014 1:11:48 PM
    Event ID:      10010
    Task Category: None
    Level:         Warning
    Keywords:     
    User:          SYSTEM
    Computer:     
    Description:
    Application 'C:\31f53f2e988a36f2c31e\x64\setup100.exe' (pid 688) cannot be restarted - Application SID does not match Conductor SID..
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Microsoft-Windows-RestartManager" Guid="{0888E5EF-9B98-4695-979D-E92CE4247224}" />
        <EventID>10010</EventID>
        <Version>0</Version>
        <Level>3</Level>
        <Task>0</Task>
        <Opcode>0</Opcode>
        <Keywords>0x8000000000000000</Keywords>
        <TimeCreated SystemTime="2014-10-07T20:11:48.532980400Z" />
        <EventRecordID>4538</EventRecordID>
        <Correlation />
        <Execution ProcessID="732" ThreadID="2548" />
        <Channel>Application</Channel>
        <Computer></Computer>
        <Security UserID="S-1-5-18" />
      </System>
      <UserData>
        <RmUnsupportedRestartEvent xmlns="http://www.microsoft.com/2005/08/Windows/Reliability/RestartManager/">
          <RmSessionId>0</RmSessionId>
          <Pid>688</Pid>
          <FullPath>C:\31f53f2e988a36f2c31e\x64\setup100.exe</FullPath>
          <DisplayName>Managed SQL Server Installer</DisplayName>
          <AppVersion>0</AppVersion>
          <AppType>5</AppType>
          <TSSessionId>2</TSSessionId>
          <Status>67108865</Status>
          <Reason>1</Reason>
        </RmUnsupportedRestartEvent>
      </UserData>
    </Event>
    Found one article saying you can get this if previous version not fully removed, and to do a repair of the previous version, but as I said I uninstalled it and followed all steps for cleanup, so nothing to repair. 

    Here is the ERRORLOG file from C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log.  At the bottom I am seeing the error you said before was a SAN issue.  I had hoped that issue was only with
    SQL 2012, but it appears it is even with 2008?
    If that is still the issue, I'm trying to understand if by the articles, if the SAN conflict is an OS issue or an SQL issue?   In other words, is it because the OS is Server 2012?   Or would this still occur if I install SQL
    2008 on Server 2008 R2?    I don't know that they will be willing to upgrade the SAN, and I don't really want to fool with a .VHD (virtual disk) as a workaround speaks of.
    If you're asking if I did this from your article:  select startup account for Database Engine services as NT Authority\SYSTEM 
    , I don't recall what I did this last time.  I was doing that the last few days, but I think I didn't switch it to that once, just to see if I would have success.  I don't know if that was this last time or not when I switched it. 
    Is there anywhere I can check that after the fact?
    014-10-08 12:53:09.84 Server      Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)
     Jun 28 2012 08:36:30
     Copyright (c) Microsoft Corporation
     Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: )
    2014-10-08 12:53:09.84 Server      (c) Microsoft Corporation.
    2014-10-08 12:53:09.84 Server      All rights reserved.
    2014-10-08 12:53:09.84 Server      Server process ID is 2640.
    2014-10-08 12:53:09.84 Server      System Manufacturer: 'IBM', System Model: 'IBM System x -[7870AC1]-'.
    2014-10-08 12:53:09.84 Server      Authentication mode is WINDOWS-ONLY.
    2014-10-08 12:53:09.84 Server      Logging SQL Server messages in file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
    2014-10-08 12:53:09.84 Server      This instance of SQL Server last reported using a process ID of 2848 at 10/8/2014 10:56:44 AM (local) 10/8/2014 5:56:44 PM (UTC). This is an informational message only; no user action is required.
    2014-10-08 12:53:09.84 Server      Registry startup parameters:
      -d c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\master.mdf
      -e c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Log\ERRORLOG
      -l c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
    2014-10-08 12:53:09.84 Server      Command Line Startup Parameters:
      -m SqlSetup
      -f
      -Q
      -q SQL_Latin1_General_CP1_CI_AS
      -T 4022
      -T 4010
      -T 3659
      -T 3610
      -T 902
      -d c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\master.mdf
      -l c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\mastlog.ldf
    2014-10-08 12:53:09.86 Server      Warning: The server instance was started using minimal configuration startup option (-f). Starting an instance of SQL Server with minimal configuration places the server in single-user mode automatically. 
    After the server has been started with minimal configuration, you should change the appropriate server option value or values, stop, and then restart the server.
    2014-10-08 12:53:09.86 Server      SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
    2014-10-08 12:53:09.86 Server      Detected 16 CPUs. This is an informational message; no user action is required.
    2014-10-08 12:53:10.00 Server      Perfmon counters for resource governor pools and groups failed to initialize and are disabled.
    2014-10-08 12:53:10.01 Server      Using dynamic lock allocation.  Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node.  This is an informational message only.  No user action is required.
    2014-10-08 12:53:10.01 Server      Lock partitioning is enabled.  This is an informational message only. No user action is required.
    2014-10-08 12:53:10.03 Server      Node configuration: node 0: CPU mask: 0x00000000000000ff:0 Active CPU mask: 0x00000000000000ff:0. This message provides a description of the NUMA configuration for this computer. This is an informational
    message only. No user action is required.
    2014-10-08 12:53:10.05 Server      Support for distributed transactions was not enabled for this instance of the Database Engine because it was started using the minimal configuration option. This is an informational message only. No
    user action is required.
    2014-10-08 12:53:10.06 spid7s      Warning ******************
    2014-10-08 12:53:10.06 spid7s      SQL Server started in single-user mode. This an informational message only. No user action is required.
    2014-10-08 12:53:10.06 spid7s      Starting up database 'master'.
    2014-10-08 12:53:10.08 spid7s      Error: 5178, Severity: 16, State: 1.
    2014-10-08 12:53:10.08 spid7s      Cannot use file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\master.mdf' because it was originally formatted with sector size 4096 and is now on a volume with sector
    size 2097152. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
    2014-10-08 12:53:10.09 spid7s      Error: 5178, Severity: 16, State: 1.
    2014-10-08 12:53:10.09 spid7s      Cannot use file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\master.mdf' because it was originally formatted with sector size 4096 and is now on a volume with sector
    size 2097152. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
    2014-10-08 12:53:10.09 spid7s      Error: 5178, Severity: 16, State: 1.
    2014-10-08 12:53:10.09 spid7s      Cannot use file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\mastlog.ldf' because it was originally formatted with sector size 4096 and is now on a volume with
    sector size 2097152. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.
    2014-10-08 12:53:10.09 spid7s      Error: 5178, Severity: 16, State: 1.
    2014-10-08 12:53:10.09 spid7s      Cannot use file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Template Data\mastlog.ldf' because it was originally formatted with sector size 4096 and is now on a volume with
    sector size 2097152. Move the file to a volume with a sector size that is the same as or smaller than the original sector size.

  • SQL Express 2008 to 2012 express upgrade not working

    I'm trying to upgrade an older version of SQL Express 2008 to 2012 by first upgrading to (what I think is) 2008 SP3 (10.0.5500.0).
    The upgrade to 2008 SP3 says it has completed and the version of the browser and client etc are showing as 10.3.5500.0 but the SQL Server version is still showing as 10.0.2531.0 in the errorlog. When I run the 2012 install exe (11.0.2100.60) it is failing
    on "SQL Server 2008 Service Pack 2 or later is required"
    I'm not very experienced when it comes to SQL so any help would be appreciated.

    You are probably using a regular version of SP3 to upgrade. Express edition has a separate download which included service packs.
    Please download the appropriate package from this link, provide the same instance name which you want to upgrade (as if you were to install a new instance with that name) and setup will run in upgrade mode". It will apply SP3 on existing express instance. 
    http://www.microsoft.com/en-in/download/details.aspx?id=27597
    Let me know if you need help selecting the right exe from the above link. 
    HTH
    This posting is provided “AS IS” with no warranties, and confers no rights.
    If this reply answers your question, please mark it as Answered for others to find it easily.
    If this reply help you resolving the problem, please vote the post as Helpful.

  • SQL express 2008 r2 on windows server 2003

    install ends with the following error :
    "MsiEnumRelatedProducts failed to enumerate products with UpgradeCode='{1B117BA7-5BC1-419E-820E-7D4F3F412C7B}'. Error code: 1610."

    Hi Hadi,
    Did you reinstall your SQL Express 2008 R2 or you did a fresh installation? According to the error message "MsiEnumRelatedProducts failed to enumerate products with
    UpgradeCode='{1B117BA7-5BC1-419E-820E-7D4F3F412C7B}'. Error code: 1610." , this issue is probably caused by that you tried to install SQL Server Express 2008 R2 with some components which had been installed.
    So if you are going to reinstall the SQL Server 2008 R2, please try to remove the old SQL Server by the following steps, and reinstall the SQL Server Express 2008 R2
    again:
      1. Make sure you have administrative rights on the computer.
      2. Uninstall the existing SQL Server 2008 and all the components from the control panel.
      3. Backup the registry.
      4. Delete the following keys in regedit:
            --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server
            --HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer
     5. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall  and delete all the sub-keys referencing SQL Server.
     6. Go to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services and delete all the keys referencing SQL Server.
     7. Rename all the SQL Server folders in the computer.
     8. Reboot the machine
      9. Install SQL Server again.
    To further investigation, please collect the error messages logged into the setup log files which are located in the %Program files%\Microsoft SQL Server\100\Setup
    bootstrap\Log\ folder.
    You can send the logs to sqltnsp AT Microsoft.com (Please replace AT with @) with this format:
    #Sample
    Subject: MSDN/TechNet forum question: <Thread Title>
    Attachments: <files>
    Hi Grace,
    ThreadURL:<URL>
    <Additional information>
    #End
    For more information about how to View and Read SQL Server Setup Log Files, please see
    http://msdn.microsoft.com/en-us/library/ms143702.aspx.
    If you have any other questions, please feel free to ask.
    Thanks,
    Grace

  • Could you please confirm that the Service Pack 3 will install on SQL Express 2008 R2 SP2 With Advanced Services.

    We are using SQL server  Express 2008 R2 SP2 With Advanced Services.Its a 64 bit server.We want to Patch Service Pack 3 On express edition. Could you please
    tell us whether  the Service Pack 3 will install on SQL Express 2008 R2 SP2 With Advanced Services or not
    Could you please suggest me on this.
    Sainath Kompelly

    No, you cannot install SP3 on Express edition as Microsoft did not release it for Express Edition as noted here: http://blogs.msdn.com/b/sqlreleaseservices/archive/2014/09/26/sql-server-2008-r2-service-pack-3-has-released.aspx.
    You can see that Express edition is missing from the list of supported editions in the details section here: http://www.microsoft.com/en-us/download/details.aspx?id=44271
    Satish Kartan www.sqlfood.com

  • SQL Express 2008 Management Studio : licensed under 'Microsoft Public License 4

    Please help me to provide answer of the following question:
    Is "SQL Express 2008 Management Studio" licensed under 'Microsoft Public License 4'?
    Awaiting for your reply.
    Thanks

    Hi Anindita Roy,
    Thank you for your post.
    For more detailed information regarding to the license issue, please call 1-800-426-9400, Monday through Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist. For international customers, please use the Guide
    to Worldwide Microsoft Licensing Sites to find contact information in your locations.
    Thanks,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • SQL Express 2008 SP1 Extraction could not when installing Forefront TMG

    Hi
    i have installed Forforont TMg 2010 and configure it but there was some un spected error so then i decided to change the DVD and uninstall the TMG but after that when i reinsall TMG at the Components installation time error has comes
    microsoft SQL express 2008 r1 could no extrected installation is fail
    wht should i do

    Hi,
    Please make sure that you have uninstalled all SQL 2008 components  and delete all TMG and SQL installation folders.
    You could also try steps in the following thread.
    http://social.technet.microsoft.com/Forums/en-US/2a24b3f6-97ff-413e-97db-478f61e8a6e9/forefront-tmg-installation-terminates-sql-expres-2008-could-not-be-installed?forum=Forefrontedgegeneral
    Best Regards,
    Joyce
    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.

  • Mobile Client 7.0 SP04 with SQL Express 2008 R2

    Does anyone know if you can install SQL Express 2008 R2 with MSA 70. sp04 on Windows XP?
    Any help / advice would be appreciated
    regards
    Barry

    Hi Barry,
    You will find SwitchDB.exe in %mobilerootdir%\Bin.Net folder. And running it is fairly simple once you have the IDES .car file present in DVD structure(you may search all *.car files). Copy that .car file onto your local disk.
    After the IDES DB is attached ,you may run ides_empty_logins.sql also located in Bin.Net path.
    Regards,
    Rohit

  • SQL Server 2008 R2 { An Error occured when attaching database(s) }

    Hello Guys!
    I just installed SQL Server 2008 R2 a couple of days ago, on the first day use i can attach database(.mdf) with out any problem.
    on the day 2, i keep getting this error:
    http://img515.imageshack.us/img515/14/1212i.png
    TITLE: Microsoft SQL Server Management Studio
    An error occurred when attaching the database(s).  Click the hyperlink in the Message column for details.
    BUTTONS:
    OK
    after clicking the Hyperlink this window open:
    http://img34.imageshack.us/img34/8766/hyperg.png
    TITLE: Microsoft SQL Server Management Studio
    Attach database failed for Server 'STARGAZER-PC\SQLSTARMAX'.  (Microsoft.SqlServer.Smo)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600.1+((KJ_RTM).100402-1539+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476
    ADDITIONAL INFORMATION:
    An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
    Unable to open the physical file "E:\New folder\DataBase.MDF". Operating system error 5: "5(Access is denied.)". (Microsoft SQL Server, Error: 5120)
    For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=5120&LinkId=20476
    BUTTONS:
    OK
    in that day i reinstall SQL Server 2008 R2, because I'm so confused. after that i try to attach i still got the same error, what i did is i share the folder where the database is.
    i open SSMS and try to attach and i attached without any error...
    i think this is the 4rth day, untill now everytime i want to attach a database i got this error, and even i try to share the folder where the database is i still got that error.
    any advice guys?
    Thanks a lot
    jhules
    if you want to be happy, find something you love to do and do it for free, then find someone to to you for it.

    The Error clearly shows that MDF files and LDF files are not matching or LDF file is corrupted.
    You can follow either of the one option below
    1. Restore a recent backup rather attaching the MDF file
    2. Attach  single MDF file without LOG File( Warning: All the log transactions will be gone and new log file will be created)
    EXEC sp_attach_single_file_db @dbname = 'AdventureWorks2008R2',
        @physname = N'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\Data\AdventureWorks2008R2_Data.mdf';
    Thanks, Aditya Badramraju, _______________________________________________________ Please mark answered if your question is completely answered; vote it as helpful to help others find a solution quicker. This posting is provided AS IS with no warranties
    and confers no rights. _______________________________________________________

Maybe you are looking for

  • Frame Order / Blanket PO

    Hi experts , When I try to create a Blanket PO with A/c assignment category U / Item category B & enter all reqd. details , I get stuck at following error message Indicator for Invoice receipt used not allowed How to get rid of this as I need to post

  • How do I restore photos from backup into iPhoto 2?

    I tried to create a backup of only one roll of photos in my Photo Library, but when I dragged it to an external hard drive, instead of copying it, it moved it, so that afterwards I could no longer use iPhoto in my computer to open any of the pictures

  • ISE Guest Portal redirection not working

    I have built a lab at home. I have a Win2008 Server for AD/DNS, ISE 1.2 (VM trial), a 3560-cg switch, 2500 WLC and 2602i AP. I have configured everything as per the documentations online. My issue is that when I connect to the open SSID, it gets conn

  • Get back IP address string of my Network P.C Card.

    I'm trying to get my PC network Card IP address in LV 6 application. Anyone have idea how can I do it ? My O.S. is Win98. Regards

  • Nef open in photoshop cc help

    photoshop cc cannot open nikon d800 nef files...help please