Quantcast
Channel: SQL Server Setup & Upgrade forum
Viewing all 7696 articles
Browse latest View live

Still no success installing SQL Server ... despite all your help and suggestkions

$
0
0

After all the ideas and help from here and almost 4 hours with a Dell technician, I'm no closer to success.

We went through all the suggested solutions involving registry edits/deletions that I could find. We still come up with "Consistency validation for SQL Server registry keys" failure. There are a series of SQL Server keys (HKEY/LOCAL/Software) that we can see but we are prohibited from deleting.

I want to call Microsoft. Is there a special SQL Server phone #?

Eric Johnson


SQL Server 2014 Express 64bit Missing DLL

$
0
0

Hello,

I am trying to install SQL Server 2014 Express with advanced services on a windows 7 sp1 machine.  While running the installation file I downloaded from MSDN, I received a failure warning stating there is a DLL missing.  I had a similar experience with SQL Ser2012 and was never able to install it.

Migrating and adding tempdb files

$
0
0

Hi,

I'm in the process of migrating tempdb to a new, dedicated drive. In current state, the SQL Server instance has one tempdb data file. Per best practices, I would like to add three (3) additional tempdb data files while also migrating to the new drive.

My questions are:

  • If the allocated space is 100 GB and I wanted to add 4 tempdb files to that drive, should they all be of equal size (25 GB max)?
  • Do I add the tempdb files first (of 25 GB each) to the new drive and then migrate the existing tempdb file? Or, should it be reverse (first migrate then add)?

I'm fairly new to SQL Server maintenance and improvements and any and all help is appreciated!

David

SQL Server Service Packs (2008, 2008R2, 2012)

$
0
0

Hi all,

it appears that no one took care of installing Service Packs for our SQL Servers from WSUS and now i have to do it. What i have:

MS SQL Server 2008 R2 Service Pack 1

MS SQL Server 2008 Service Pack 1,2,3

MS SQL Server 2012 Service Pack 1,2

As you could see some of them a really old.

1. The fact that everything is running so far without any problems and complains bring the question: Do I have to install Service Packs?

2. Is it ok if I go directly to the latest Service Pack for each Server or i have to go the "entire road" installing one after another.

3. What is the best way to do the updates: Install all other security and critical updates, restart the server, then install the service pack and restart again the server. 

Actually my knowledge for SQL Server and Updates for it are not so big that's why i want to apologies for the stupid questions. Thanks in advance


sql server 2012 on windows 8.1

$
0
0
can we install sql server 2012 enterprise evaluation edition on windows 8.1?

Upgrade and Merge Different SSRS Server Editions

$
0
0

Hi,

I have two report servers [serverA and serverB].Both got reports server installed...
2005 SSRS on serverA
2008 R2 SSRS on serverB

I want to move both SSRS servers to a completely new server which will run SSRS 2008 R2.

Is it possible to merge both servers together onto a new server?

Thanks

Sql Server 2012 Upgrade Advisor SSIS Instance upgrade errors

$
0
0

Running SQL Server 2012 Upgrade Advisor on a SQL 2008 R2 SSIS instance got the following errors all pointing to the data collector/MDW packages deployed under SSIS instance. first error is shown as critical the second one as warning. how to upgrade the dc packages in 2008 R2 SSIS instances to 2012, or the next 2 errors can be neglected?

SQL Server Integration Services PostUpgrade 
Recompile third-party and custom components to work with SQL Server 2012. In SQL Server 2012, Integration Services has changed its application programming interfaces (APIs). To be compatible with these new APIs, all third-party and custom components may need to be recompiled. SQL Server 2008 and 2008 R2 components can use assembly binding redirection to continue working in SQL Server 2012. SQL Server 2005 components may require additional code changes to work with SQL Server 2012. Package Name: TSQLQuery_ServerName_MSSQL10_50_MSSQLSERVER_{GUID}_3_Collect 

Source Type: Repository Package Location: /MSDB/Data Collector/Generated/TSQLQuery_ServerName_MSSQL10_50_MSSQLSERVER_{Guid}_3_Collect

as well as

SQL Server Integration Services PostMigration
Update provider names in connection strings to be compatible with SQL Server 2012.In SQL Server 2012, connection strings require a different value for some provider names. The value for the SQL Server Native Client provider is now SQLNCLI11. The value for the OLE DB Provider for Analysis Services is now MSOLAP.5. To automatically update these provider names, use the Package Upgrade tool to upgrade SQL Server 2005 and SQL Server 2008 packages. You can also manually update these names in Business Intelligence Development Studio.
Package Name: TSQLQuery_ServerName_MSSQL10_50_MSSQLSERVER_{GUID}_3_Collect Source Type: Repository Package Location: /MSDB/Data Collector/Generated/TSQLQuery_ServerName_MSSQL10_50_MSSQLSERVER_{GUID}_3_Collect

List all instances and databases on a given server

$
0
0

I want to list all instances on a given server. Also I want to list all databases in a given server.

When I login through SSMS unless I specify the SQL Server instance I am unable to see all the databases.

Example:- SSMS->MSZIMBA01 ( I can see only system tables why is that ?)

SSMS->MSZIMBA01\DEV1 ( I can see the databases in dev 1)

Suppose it has 10 other dev instances how to list all of them . Thanks for your answer in advance.


Sql Server 2008 on Windows 8 installation issue...: SqlEngineConfigAction_install_confignonrc_Cpu64

$
0
0

Hi:)

I try to install ms sql server 2008 standard on Windows 8.1
.Net framework 3.5 is enabled
setup is running by admin.
following errors will appear:


Attemted to preform an unathorized operation:

SqlEngineConfigAction_install_confignonrc_Cpu64

and for next files (when I'm trying with developer editon):

SSISCONFIGACTION_INSTALL_POSTMSI_CPU64

SSISConfigAction_intall_postmsi_Cpu64

SSISConfigAction_intall_ConfigNonRC_Cpu32


Could you help me?


You can find applicable part of the file below:

and screenshot at the end...

> 2014-10-27 00:25:22 Slp: Parameter 8 : 0x2C419A32
>
> 2014-10-27 00:25:27 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\20141026_222703\Registry_SOFTWARE_Microsoft_Microsoft
> SQL Server.reg_ 2014-10-27 00:25:27 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\20141026_222703\Registry_SOFTWARE_Microsoft_Windows_CurrentVersion_Uninstall.reg_
> 2014-10-27 00:25:28 Slp: Sco: Attempting to write hklm registry key
> SOFTWARE\Microsoft\MSSQLServer to file C:\Program Files\Microsoft SQL
> Server\100\Setup
> Bootstrap\Log\20141026_222703\Registry_SOFTWARE_Microsoft_MSSQLServer.reg_
> 2014-10-27 00:25:28 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\20141026_222703\Registry_SOFTWARE_Wow6432Node_Microsoft_Microsoft
> SQL Server.reg_ 2014-10-27 00:25:28 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\20141026_222703\Registry_SOFTWARE_Wow6432Node_Microsoft_Windows_CurrentVersion_Uninstall.reg_
> 2014-10-27 00:25:28 Slp: Sco: Attempting to write hklm registry key
> SOFTWARE\Wow6432Node\Microsoft\MSSQLServer to file C:\Program
> Files\Microsoft SQL Server\100\Setup
> Bootstrap\Log\20141026_222703\Registry_SOFTWARE_Wow6432Node_Microsoft_MSSQLServer.reg_
> 2014-10-27 00:25:53 Slp: Attempted to perform an unauthorized
> operation. 2014-10-27 00:25:56 Slp: Watson bucket for exception based
> failure has been created 2014-10-27 00:25:56 Slp: Configuration action
> failed for feature SQL_Engine_Core_Inst during timing ConfigNonRC and
> scenario ConfigNonRC. 2014-10-27 00:25:56 Slp: Attempted to perform an
> unauthorized operation. 2014-10-27 00:25:56 Slp: The configuration
> failure category of current exception is ConfigurationFailure
> 2014-10-27 00:25:56 Slp: Configuration action failed for feature
> SQL_Engine_Core_Inst during timing ConfigNonRC and scenario
> ConfigNonRC. 2014-10-27 00:25:56 Slp:
> Microsoft.SqlServer.Configuration.Sco.ScoException: Attempted to
> perform an unauthorized operation. --->
> System.UnauthorizedAccessException: Attempted to perform an
> unauthorized operation. 2014-10-27 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String
> subkey, RegistryAccess requestedAccess) 2014-10-27 00:25:56 Slp:   
> --- End of inner exception stack trace --- 2014-10-27 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String
> subkey, RegistryAccess requestedAccess) 2014-10-27 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.Sco.SqlRegistryKey.OpenSubKey(String
> subkey, RegistryAccess requestedAccess) 2014-10-27 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.SqlEngine.EtwSetup.UpdateWmiSecurity(Guid
> guidInstance) 2014-10-27 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.SqlEngine.EtwSetup.Install(String
> strInstanceName, Guid guidInstance, String strPath) 2014-10-27
> 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineSetupPrivate.SetupETW(EffectiveProperties
> properties) 2014-10-27 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineSetupPrivate.Install_ConfigNonRC_Prepare(EffectiveProperties
> properties) 2014-10-27 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineSetupPrivate.Install(ConfigActionTiming
> timing, Dictionary`2 actionData, PublicConfigurationBase spcb)
> 2014-10-27 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.ExecuteAction(String
> actionId) 2014-10-27 00:25:56 Slp:    at
> Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.Execute(String
> actionId, TextWriter errorStream) 2014-10-27 00:25:56 Slp: Exception:
> Microsoft.SqlServer.Configuration.Sco.ScoException. 2014-10-27
> 00:25:56 Slp: Source: Microsoft.SqlServer.Configuration.Sco.
> 2014-10-27 00:25:56 Slp: Message: Attempted to perform an unauthorized
> operation.. 2014-10-27 00:25:56 Slp: Inner exception: 2014-10-27
> 00:25:56 Slp:     Exception: System.UnauthorizedAccessException.
> 2014-10-27 00:25:56 Slp:     Source:
> Microsoft.SqlServer.Configuration.Sco. 2014-10-27 00:25:56 Slp:
>     Message: Attempted to perform an unauthorized operation.. 2014-10-27
> 00:25:56 Slp: Error: Action
> "SqlEngineConfigAction_install_confignonrc_Cpu64" failed during
> execution. 2014-10-27 00:25:56 Slp: Completed Action:
> SqlEngineConfigAction_install_confignonrc_Cpu64, returned False
> 2014-10-27 00:25:56 Slp: Sco: Attempting to get instance feature flag
> UpgradeIncomplete for feature SQL_Engine_Core_Inst, instance
> MSSQL10_50.MSSQLSERVER, machine name NN
>
> (...)
>
>
> 2014-10-27 00:26:39 Slp:
> ---------------------------------------------------------------------- 2014-10-27 00:26:39 Slp:  2014-10-27 00:26:39 Slp: Error result:
> -2068119551 2014-10-27 00:26:39 Slp: Result facility code: 1211 2014-10-27 00:26:39 Slp: Result error code: 1 2014-10-27 00:26:39 Slp:
> Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE,
> machine  2014-10-27 00:26:39 Slp: Sco: Attempting to open registry
> subkey  2014-10-27 00:26:39 Slp: Sco: Attempting to open registry
> subkey Software\Microsoft\PCHealth\ErrorReporting\DW\Installed
> 2014-10-27 00:26:39 Slp: Sco: Attempting to get registry value DW0201
> 2014-10-27 00:26:54 Slp: Submitted 1 of 1 failures to the Watson data
> repository

sql 2012 express edition upgrade

$
0
0

Hi,

I have a SQL 2014 standard license.  How can ı SQL 2012 Express edition upgrade to SQL 2012 standard edition ?

Unable to connect to SQL server once joined to Windows domain

$
0
0

Hi,

I'm currently building some SQL Server 2014 Enterprise VM's in Azure (using powershell) using the latest SQL server image available.  My issue is that when the VM isn't joined to a Windows domain I am able to connect to SQL server through SSMS (using the local Windows account), however as soon as I join the VM to the Windows domain I am unable to connect to it due to security. If I try and use the previous credentials these also fail.

SQL is configured for Windows authentication only.

My question is, how do I configure SQL server to grant permissions to Windows accounts so that I can access SQL straight away?

I've tried executing the commands below, but they fail.

PS C:\Scripts> Invoke-SqlCmd -Query "CREATE LOGIN [marcus] FROM WINDOWS" -ServerInstance localhost
Invoke-SqlCmd : Login failed for user 'DOMAIN\Marcus'.
At line:1 char:1+ Invoke-SqlCmd -Query "CREATE LOGIN [marcus] FROM WINDOWS" -ServerInst ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : InvalidOperation: (:) [Invoke-Sqlcmd], SqlException+ FullyQualifiedErrorId : SqlExectionError,Microsoft.SqlServer.Management.PowerShell.GetScriptCommand

Invoke-SqlCmd :
At line:1 char:1
+ Invoke-SqlCmd -Query "CREATE LOGIN [marcus] FROM WINDOWS" -ServerInst ...+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : ParserError: (:) [Invoke-Sqlcmd], ParserException+ FullyQualifiedErrorId : ExecutionFailureException,Microsoft.SqlServer.Management.PowerShell.GetScriptCommand

PS SQLSERVER:\>

Checking the SQL error log shows the following:

2014-10-28 11:32:41.72 Logon       Error: 18456, Severity: 14, State: 5.
2014-10-28 11:32:41.72 Logon       Login failed for user 'DOMAIN\Marcus'. Reason: Could not find a login matching the name provided. [CLIENT: <local machine>]

Can anyone point me in the right direction? SQL Server isn't my speciality.

Marcus

Is it supported to install SQL Server 2008 R2 after SQL Server 2012 has been installed?

$
0
0

Is it supported to install an earlier version of SQL Server (2008 R2 in my case) after a newer version (2012) has already been installed?

The documentation says that you can install SQL Server on a server where an earlier version has already been installed:

"You can also upgrade earlier versions of SQL Server, or install SQL Server on a computer where earlier SQL Server versions are already installed."
- http://msdn.microsoft.com/en-us/library/ms143694%28v=sql.105%29.aspx

However, I want to do the opposite. Is this supported?



Cannot Reinstall SQL Server 2008 After Uninstall

$
0
0

All, I was having issues with the installed instances of SQL Server (I could not install a required security update). I attempted to repaire but could not, so put off a full uninstall untill I got a IE crash which meant I subsequently had to deal with the SQL Server problem.

Now, I cannot re-install. I don't have a very recent image and want to try and avoid a full restore. The message I get is durring instillation and it crashes the installer

"TITLE: SQL Server Setup failure. ------------------------------ SQL Server Setup has encountered the following error: Value cannot be null. Parameter name: doc. ------------------------------ BUTTONS: OK ------------------------------"

This is more than likely a regestry problem, but I have no idea where to start. Can anyone help me resolve this please?

Thanks for your time.


"Everything should be made as simple as possible, but not simpler" - Einstein

SQLServer2012-KB2716442-x64 failing during installation

$
0
0

I tried to install recent update for SQL server 2012 and I cannot:

SQLServer2012-KB2716442-x64 failing during installation, both Windows Update and manual setup.

The last entry in log before rollback is following:

10/10/2012 19:07:04.981 Attempting to run user requested action from media ScenarioEngine.exe
10/10/2012 19:07:04.981 Attempting to launch process d:\3a871c25ddff78ec44f571\x64\ScenarioEngine.exe
10/10/2012 19:11:15.917 Process returned exit code: 0x858C001E
10/10/2012 19:11:15.917 Media ScenarioEngine.exe returned exit code: 0x858C001E

Try to add features with an existing installation

$
0
0
Hi,
We use SQL Server 2012 sp1.
We want to install a feature that we did not install the first time.
So we run the "SQL Server Installation Center" from our server.
At the step "Setup Support Rules", we received this error:

Rule "consistency validation for sql server registry keys" failed.
The SQL Server registry keys from a prior installation cannot be modified.
To continue, see SQL Server Setup documentation about how to fix registry keys.

Do you have an idea how to fix that ?
regards

SQL Server 2008 setup error: Attempted to perform an unauthorized operation

$
0
0
I'm trying to install SQL Server 2008 on a virtual machine with Windows 2008 R2.

Setup fails with the error "Attempted to perform an unauthorized operation".

Looking at the installation log, I see these details:

2009-09-29 08:24:49 SQLBrowser: sRegLocation = 'SOFTWARE\Microsoft\Microsoft SQL Server', regView = 'Wow6432', sSddl = '(A;CI;KR;;;[SQLServer2005SQLBrowserUser$ITISFIM])', bOptional = 'False'.
2009-09-29 08:24:49 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine
2009-09-29 08:24:49 Slp: Sco: Attempting to open registry subkey
2009-09-29 08:24:49 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\Microsoft SQL Server
2009-09-29 08:24:49 Slp: Sco: Attempting to replace account with sid in security descriptor (A;CI;KR;;;[SQLServer2005SQLBrowserUser$ITISFIM])
2009-09-29 08:24:49 Slp: ReplaceAccountWithSidInSddl -- SDDL to be processed:  (A;CI;KR;;;[SQLServer2005SQLBrowserUser$ITISFIM])
2009-09-29 08:24:49 Slp: Sco: Account name to be translated into SID: SQLServer2005SQLBrowserUser$ITISFIM
2009-09-29 08:24:49 Slp: Sco: Attempting to get account sid for user account SQLServer2005SQLBrowserUser$ITISFIM
2009-09-29 08:24:49 Slp: Sco: Attempting to get sid for user account SQLServer2005SQLBrowserUser$ITISFIM
2009-09-29 08:24:49 Slp: Sco: GetSidForAccount normalized accountName SQLServer2005SQLBrowserUser$ITISFIM parameter to SQLServer2005SQLBrowserUser$ITISFIM
2009-09-29 08:24:49 Slp: Sco: Account name is translated into: S-1-5-21-3278988706-2344661944-1675463508-1000
2009-09-29 08:24:49 Slp: Sco: Final security descriptor:  (A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: Sco: Attempting to set security descriptor (A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: Sco: Attempting to normalize security descriptor (A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: Sco: Adding 'D:' DACL identifier to the input security descriptor (A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: Sco: Attempting to replace account with sid in security descriptor D:(A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: ReplaceAccountWithSidInSddl -- SDDL to be processed:  D:(A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: ReplaceAccountWithSidInSddl -- SDDL to be returned:  D:(A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: Sco: Attempting to normalize security descriptor D:(A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: Sco: Attempting to replace account with sid in security descriptor D:(A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: ReplaceAccountWithSidInSddl -- SDDL to be processed:  D:(A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: ReplaceAccountWithSidInSddl -- SDDL to be returned:  D:(A;CI;KR;;;S-1-5-21-3278988706-2344661944-1675463508-1000)
2009-09-29 08:24:49 Slp: Prompting user if they want to retry this action due to the following failure:
2009-09-29 08:24:49 Slp: ----------------------------------------
2009-09-29 08:24:49 Slp: The following is an exception stack listing the exceptions in outermost to innermost order
2009-09-29 08:24:49 Slp: Inner exceptions are being indented
2009-09-29 08:24:49 Slp:
2009-09-29 08:24:49 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
2009-09-29 08:24:49 Slp:     Message:
2009-09-29 08:24:49 Slp:         Attempted to perform an unauthorized operation.
2009-09-29 08:24:49 Slp:     Data:
2009-09-29 08:24:49 Slp:       WatsonData = Microsoft SQL Server
2009-09-29 08:24:49 Slp:       DisableRetry = true
2009-09-29 08:24:49 Slp:     Inner exception type: System.UnauthorizedAccessException
2009-09-29 08:24:49 Slp:         Message:
2009-09-29 08:24:49 Slp:                 Attempted to perform an unauthorized operation.
2009-09-29 08:24:49 Slp:         Stack:
2009-09-29 08:24:49 Slp:                 at System.Security.AccessControl.Win32.GetSecurityInfo(ResourceType resourceType, String name, SafeHandle handle, AccessControlSections accessControlSections, RawSecurityDescriptor& resultSd)
2009-09-29 08:24:49 Slp:                 at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)
2009-09-29 08:24:49 Slp:                 at Microsoft.SqlServer.Configuration.Sco.SqlRegistrySecurity..ctor(ResourceType resourceType, SafeRegistryHandle handle, AccessControlSections includeSections)
2009-09-29 08:24:49 Slp:                 at Microsoft.SqlServer.Configuration.Sco.SqlRegistrySecurity.Create(InternalRegistryKey key)
2009-09-29 08:24:49 Slp:                 at Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.SetSecurityDescriptor(String sddl, Boolean overwrite)
2009-09-29 08:24:49 Slp: ----------------------------------------
Any suggestions on how to fix this error?
Thanks, Paolo

SQL Server 2008 R2 setup fails with error - Attempted to perform an unauthorized operation

$
0
0

My SQL Server 2008R2 evaluation version expired and I’ve been trying to install SQL Server 2008R2 development version on Windows 7. I have already spent three days on it and tried all recommendations I had found from the people who had the same problem:

http://social.msdn.microsoft.com/Forums/en/sqlsetupandupgrade/thread/61d56f64-2575-4a58-9503-84579476afaf

-         I am logged in as administrator

-         I have copied setup files to my C: drive.

-         I created a new windows administrator user account and then tried to install with it.

-         I run setup as administrator.

-         I have UAC off.

-         My account has full permission to registry ‘HKLM\SOFTWARE\Microsoft\Microsoft SQL Server’.

 

I even tried to install SQL Server 2008 development version first and then upgrade to the 2008R2. I had no problems installing SQL Server 2008 but the upgrade failed.

It fails on the step SqlBrowserConfigAction_upgrade_ConfigNonRC_Cpu32 with an error “Attempted to perform an unauthorized operation.”

Please, any ideas how to fix this?

 

This is the piece of the installation log where it fails:

 

2011-01-26 15:20:01 Slp: Sco: Attempting to get service status for service SQLBrowser

2011-01-26 15:20:01 Slp: Sco: Attempting to open SC Manager

2011-01-26 15:20:01 Slp: Sco: Attempting to open service handle for service SQLBrowser

2011-01-26 15:20:01 Slp: Invoking QueryServiceStatus Win32 API

2011-01-26 15:20:01 Slp: Sco: Attempting to close service handle for service SQLBrowser

2011-01-26 15:20:01 Slp: Sco: Attempting to close SC Manager

2011-01-26 15:20:01 Slp: Sco: Returning service status Stopped

2011-01-26 15:20:01 Slp: Sco: Service SQLBrowser stopped in less than 1 seconds

2011-01-26 15:20:01 SQLBrowser: EndMethod Type='SqlBrowserPrivateConfig' Method='StopServiceIfNeeded'.

2011-01-26 15:20:01 Slp: Sco: Attempting to get service sid type for service SQLBrowser

2011-01-26 15:20:01 Slp: Sco: Attempting to open SC Manager

2011-01-26 15:20:01 Slp: Sco: Attempting to open service handle for service SQLBrowser

2011-01-26 15:20:01 Slp: Sco: Returning service sid type SERVICE_SID_TYPE_UNRESTRICTED

2011-01-26 15:20:01 Slp: Sco: Attempting to close service handle for service SQLBrowser

2011-01-26 15:20:01 Slp: Sco: Attempting to close SC Manager

2011-01-26 15:20:01 SQLBrowser: Setting SQL Server Browser service Display name to 'SQL Server Browser'.

2011-01-26 15:20:01 Slp: Sco: Attempting to set display name for service SQLBrowser, display name SQL Server Browser

2011-01-26 15:20:01 Slp: Sco: Attempting to open SC Manager

2011-01-26 15:20:01 Slp: Sco: Attempting to open service handle for service SQLBrowser

2011-01-26 15:20:01 Slp: Invoking ChangeServiceConfig Win32 API

2011-01-26 15:20:02 Slp: Sco: Attempting to close service handle for service SQLBrowser

2011-01-26 15:20:02 Slp: Sco: Attempting to close SC Manager

2011-01-26 15:20:02 SQLBrowser: Setting SQL Server Browser service Error Control 'Normal'.

2011-01-26 15:20:02 Slp: Sco: Attempting to set error control for service SQLBrowser, error control Normal

2011-01-26 15:20:02 Slp: Sco: Attempting to open SC Manager

2011-01-26 15:20:02 Slp: Sco: Attempting to open service handle for service SQLBrowser

2011-01-26 15:20:02 Slp: Invoking ChangeServiceConfig Win32 API

2011-01-26 15:20:02 Slp: Sco: Attempting to close service handle for service SQLBrowser

2011-01-26 15:20:02 Slp: Sco: Attempting to close SC Manager

2011-01-26 15:20:02 SQLBrowser: Setting path to executable for SQL Server Browser service to '"C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe"'.

2011-01-26 15:20:02 Slp: Sco: Attempting to set binary file for service SQLBrowser, binary file "C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe"

2011-01-26 15:20:02 Slp: Sco: Attempting to open SC Manager

2011-01-26 15:20:02 Slp: Sco: Attempting to open service handle for service SQLBrowser

2011-01-26 15:20:02 Slp: Invoking ChangeServiceConfig Win32 API

2011-01-26 15:20:02 Slp: Sco: Attempting to close service handle for service SQLBrowser

2011-01-26 15:20:02 Slp: Sco: Attempting to close SC Manager

2011-01-26 15:20:02 SQLBrowser: Setting SQL Server Browser service description to 'Provides SQL Server connection information to client computers.'.

2011-01-26 15:20:02 Slp: Sco: Attempting to set description for service SQLBrowser, description Provides SQL Server connection information to client computers.

2011-01-26 15:20:02 Slp: Sco: Attempting to open SC Manager

2011-01-26 15:20:02 Slp: Sco: Attempting to open service handle for service SQLBrowser

2011-01-26 15:20:02 Slp: Sco: Attempting to close service handle for service SQLBrowser

2011-01-26 15:20:02 Slp: Sco: Attempting to close SC Manager

2011-01-26 15:20:02 Slp: Sco: Attempting to get default machine specific group name

2011-01-26 15:20:02 Slp: Sco: groupNamePrefix: SQLServer2005SQLBrowserUser

2011-01-26 15:20:02 Slp: Sco.UserGroup.GetMachineSpecificGroupName - version: 90

2011-01-26 15:20:02 Slp: Sco.UserGroup.GetOriginalMachineName - Opening regkey: SOFTWARE\Microsoft\Microsoft SQL Server\90\Machines

2011-01-26 15:20:02 Slp: Sco.UserGroup.GetOriginalMachineName - Under registry hive: ProcessDefault

2011-01-26 15:20:02 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine

2011-01-26 15:20:02 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\Microsoft SQL Server\90\Machines

2011-01-26 15:20:02 Slp: Sco: Attempting to get registry value OriginalMachineName

2011-01-26 15:20:02 Slp: Sco.UserGroup.GetMachineSpecificGroupName - finalGroupName: SQLServer2005SQLBrowserUser$ANDREYB

2011-01-26 15:20:02 SQLBrowser: Retrieved SQL Server Browser group name: 'SQLServer2005SQLBrowserUser$ANDREYB'.

2011-01-26 15:20:02 SQLBrowser: StartMethod Type='SqlBrowserPrivateConfig' Method='ApplyPermissions'.

2011-01-26 15:20:02 SQLBrowser: Adding mapping of property 'ServiceGroupNameSQLBrowser' to principal 'SQLServer2005SQLBrowserUser$ANDREYB'

2011-01-26 15:20:02 SQLBrowser: LocationFragment Node for registry/directory path substitution: '<LocationFragment Name="RegMicrosoftBase" Value="SOFTWARE\Microsoft"></LocationFragment>'.

2011-01-26 15:20:02 SQLBrowser: Adding to dictionary pair ['RegMicrosoftBase', 'SOFTWARE\Microsoft'].

2011-01-26 15:20:02 SQLBrowser: LocationFragment Node for registry/directory path substitution: '<LocationFragment Name="DirSharedForSqlBrowser"></LocationFragment>'.

2011-01-26 15:20:02 SQLBrowser: Returning DirSqlBrowserBinFileFullPath = 'C:\Program Files\Microsoft SQL Server\90\Shared\sqlbrowser.exe'.

2011-01-26 15:20:02 SQLBrowser: Returning DirSharedForSqlBrowser = 'C:\Program Files\Microsoft SQL Server\90\Shared\'.

2011-01-26 15:20:02 SQLBrowser: Adding to dictionary pair ['DirSharedForSqlBrowser', 'C:\Program Files\Microsoft SQL Server\90\Shared\'].

2011-01-26 15:20:02 SQLBrowser: LocationFragment Node for registry/directory path substitution: '<LocationFragment Name="DirSharedForCurrentVersion"></LocationFragment>'.

2011-01-26 15:20:02 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine

2011-01-26 15:20:02 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\Microsoft SQL Server\100

2011-01-26 15:20:02 Slp: Sco: Attempting to get registry value SharedCode

2011-01-26 15:20:02 SQLBrowser: Returning DirSharedForCurrentVersion = 'C:\Program Files\Microsoft SQL Server\100\Shared\'.

2011-01-26 15:20:02 SQLBrowser: Adding to dictionary pair ['DirSharedForCurrentVersion', 'C:\Program Files\Microsoft SQL Server\100\Shared\'].

2011-01-26 15:20:02 SQLBrowser: LocationFragment Node for registry/directory path substitution: '<LocationFragment Name="Shared90"></LocationFragment>'.

2011-01-26 15:20:02 SQLBrowser: Adding to dictionary pair ['Shared90', '90\Shared\'].

2011-01-26 15:20:02 SQLBrowser: LocationFragment Node for registry/directory path substitution: '<LocationFragment Name="Shared"></LocationFragment>'.

2011-01-26 15:20:02 SQLBrowser: Adding to dictionary pair ['Shared', '100\Shared\'].

2011-01-26 15:20:02 SQLBrowser: LocationFragment Node for registry/directory path substitution: '<LocationFragment Name="ErrorDumps"></LocationFragment>'.

2011-01-26 15:20:02 SQLBrowser: Adding to dictionary pair ['ErrorDumps', 'ErrorDumps\'].

2011-01-26 15:20:02 SQLBrowser: StartMethod Type='SqlBrowserPrivateConfig' Method='ApplyRegCommonPermissions'.

2011-01-26 15:20:02 SQLBrowser: StartMethod Type='SqlBrowserPrivateConfig' Method='ApplyRegPermissions'.

2011-01-26 15:20:02 SQLBrowser: Registry Permission Node: '<SqlPermission SecurityDescriptor="(A;CI;KR;;;[ServiceGroupNameSQLBrowser])" Registry="[RegMicrosoftBase]\Microsoft SQL Server"></SqlPermission>'.

2011-01-26 15:20:02 Slp: Sco: Attempting to replace property in string

2011-01-26 15:20:02 Slp: Sco: Attempting to replace property in string

2011-01-26 15:20:02 Slp: Sco: Attempting to replace property in string

2011-01-26 15:20:02 Slp: Sco: Attempting to replace property in string

2011-01-26 15:20:02 SQLBrowser: sRegLocation = 'SOFTWARE\Microsoft\Microsoft SQL Server', regView = 'ProcessDefault', sSddl = '(A;CI;KR;;;[SQLServer2005SQLBrowserUser$ANDREYB])', bOptional = 'False'.

2011-01-26 15:20:02 Slp: Sco: Attempting to create base registry key HKEY_LOCAL_MACHINE, machine

2011-01-26 15:20:02 Slp: Sco: Attempting to open registry subkey SOFTWARE\Microsoft\Microsoft SQL Server

2011-01-26 15:20:02 Slp: Sco: Attempting to replace account with sid in security descriptor (A;CI;KR;;;[SQLServer2005SQLBrowserUser$ANDREYB])

2011-01-26 15:20:02 Slp: ReplaceAccountWithSidInSddl -- SDDL to be processed: (A;CI;KR;;;[SQLServer2005SQLBrowserUser$ANDREYB])

2011-01-26 15:20:02 Slp: Sco: Account name to be translated into SID: SQLServer2005SQLBrowserUser$ANDREYB

2011-01-26 15:20:02 Slp: Sco: Attempting to get account sid for user account SQLServer2005SQLBrowserUser$ANDREYB

2011-01-26 15:20:02 Slp: Sco: Attempting to get sid for user account SQLServer2005SQLBrowserUser$ANDREYB

2011-01-26 15:20:02 Slp: Sco: GetSidForAccount normalized accountName SQLServer2005SQLBrowserUser$ANDREYB parameter to SQLServer2005SQLBrowserUser$ANDREYB

2011-01-26 15:20:02 Slp: Sco: Account name is translated into: S-1-5-21-2655203314-2631384128-2251800517-1046

2011-01-26 15:20:02 Slp: Sco: Final security descriptor: (A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: Sco: Attempting to set security descriptor (A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: Sco: Attempting to normalize security descriptor (A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: Sco: Adding 'D:' DACL identifier to the input security descriptor (A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: Sco: Attempting to replace account with sid in security descriptor D:(A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: ReplaceAccountWithSidInSddl -- SDDL to be processed: D:(A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: ReplaceAccountWithSidInSddl -- SDDL to be returned: D:(A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: Sco: Attempting to normalize security descriptor D:(A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: Sco: Attempting to replace account with sid in security descriptor D:(A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: ReplaceAccountWithSidInSddl -- SDDL to be processed: D:(A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: ReplaceAccountWithSidInSddl -- SDDL to be returned: D:(A;CI;KR;;;S-1-5-21-2655203314-2631384128-2251800517-1046)

2011-01-26 15:20:02 Slp: Prompting user if they want to retry this action due to the following failure:

2011-01-26 15:20:02 Slp: ----------------------------------------

2011-01-26 15:20:02 Slp: The following is an exception stack listing the exceptions in outermost to innermost order

2011-01-26 15:20:02 Slp: Inner exceptions are being indented

2011-01-26 15:20:02 Slp:

2011-01-26 15:20:02 Slp: Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException

2011-01-26 15:20:02 Slp:    Message:

2011-01-26 15:20:02 Slp:        Attempted to perform an unauthorized operation.

2011-01-26 15:20:02 Slp:    Data:

2011-01-26 15:20:02 Slp:      WatsonData = Microsoft SQL Server

2011-01-26 15:20:02 Slp:      DisableRetry = true

2011-01-26 15:20:02 Slp:    Inner exception type: System.UnauthorizedAccessException

2011-01-26 15:20:02 Slp:        Message:

2011-01-26 15:20:02 Slp:                Attempted to perform an unauthorized operation.

2011-01-26 15:20:02 Slp:        Stack:

2011-01-26 15:20:02 Slp:                at System.Security.AccessControl.Win32.GetSecurityInfo(ResourceType resourceType, String name, SafeHandle handle, AccessControlSections accessControlSections, RawSecurityDescriptor& resultSd)

2011-01-26 15:20:02 Slp:                at System.Security.AccessControl.NativeObjectSecurity.CreateInternal(ResourceType resourceType, Boolean isContainer, String name, SafeHandle handle, AccessControlSections includeSections, Boolean createByName, ExceptionFromErrorCode exceptionFromErrorCode, Object exceptionContext)

2011-01-26 15:20:02 Slp:                at Microsoft.SqlServer.Configuration.Sco.SqlRegistrySecurity..ctor(ResourceType resourceType, SafeRegistryHandle handle, AccessControlSections includeSections)

2011-01-26 15:20:02 Slp:                at Microsoft.SqlServer.Configuration.Sco.SqlRegistrySecurity.Create(InternalRegistryKey key)

2011-01-26 15:20:02 Slp:                at Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.GetAccessControl()

2011-01-26 15:20:02 Slp:                at Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.SetSecurityDescriptor(String sddl, Boolean overwrite)

2011-01-26 15:20:02 Slp: ----------------------------------------

 

 

Thanks,

Andrey

 

 

SQL SERVER CONNECTIVITY ISSUE

$
0
0

hello anyone please help me,

I have installed sql server 2012 in my testing machine, I need to connect 2012 from my machine it having sql server 2008 r2.

but when I am try to connect 2012 it not connected from 200 r2. 

SQLSvrStdCore 2014 SNGL MVL 2Lic CoreLic on a Single Processor Server (4 Cores) How many licenses needed ?

$
0
0

Hi Guys...

I am abit confused with the latest SQL Server processor licensing and this Core Factor Table.

Am thinking of putting in a new SQL Server on a HP Server with a single Intel® Xeon® E5-2407 v2 (4 core, 2.4 GHz, 10MB, 80W) Processor. How many of the (SQLSvrStdCore 2014 SNGL MVL 2Lic CoreLic) licenses would I need to purchase for the above Server ? Will not be virtualised.

Also with this license am I entitled to use SQL Server 2008r2 instead on this Server ?

Thanks


Finalizing SQL Server 2012 SP2 update

$
0
0

Hi,

   I just successfully upgraded SQL Server 2012 Developer Edition from SP1 CU8 to SP2.

   Here is the actual portrait I have in my control panel (Installed programs + version):

       Version changed after SP2 update (through Windows Update):

         Microsoft SQL Server 2012 Express LocalDB                          11.2.5058.0

        Microsoft SQL Server 2012 Transact-SQL ScriptDom              11.2.5058.0
        Microsoft SQL Server 2012 Transact-SQL Compiler Service    11.2.5058.0
        Microsoft SQL Server 2012 Native Client                                11.2.5058.0
        Microsoft SQL Server 2012 Policies                                         11.2.5058.0
        Microsoft SQL Server 2012 Setup (English)                            11.2.5058.0
        Microsoft VSS Writer for SQL Server 2012                              11.2.5058.0
        Microsoft System CLR Types for SQL Server 2012                  11.2.5058.0
        SQL Server Browser for SQL Server 2012                               11.2.5058.0

      Version changed only after installing corresponding Features Pack component:

         Microsoft SQL Server 2012 T-SQL Language Service              11.2.5058.0    
         SQL Server Report Builder 3 for SQL Server 2012                  11.2.5058.0
         Microsoft SQL Server 2012 Management Objects                   11.2.5058.0

      Version did not change:

         Microsoft SQL Server System CLR Types                                10.51.2500.0
         Microsoft SQL Server 2012 Data-Tier App Framework            11.1.2902.0

My questions:

1. Am I missing any components update or is my actual SP2 setup OK?

2. Even if I tried to install DACFramework SP2 Feature pack by running corresponding installer, it told me that I had an higher version...  Does any of you have a different version number for this component?

3. I actually have SSDT for VS2010 installed.  The corresponding versions I actually have are the following:

           Microsoft SQL Server Data Tools 2010                                  10.3.31009.2
           Microsoft SQL Server Data Tools - enu                                  10.3.31009.2
           Microsoft SQL Server Data Tools Build Utilities - enu             10.3.31009.2

    Should I consider upgrading any component so they work with SQL 2012 SP2 properly?  If so, could someone provide me the corresponding download/webpage links?

4. Finally, should I upgrade to CU2 which is actually available. Among other problems, I notice that it should fix an index rebuild problem.  Any other major issues it targets?  Is there any easy way I can test if I should install this update or not?

Thanks for helping.




Viewing all 7696 articles
Browse latest View live