I have a AS Database (SQL Server 2005). I need to restore the database in a SQL Server 2014.
When I'm trying to restore the database I have this error:
File system error: The following error occurred while opening the file
'\?\C:\Program Files\Microsoft SQL
Server\MSAS12.MSSQLSERVER\OLAP\Data\Estadisticasnue.1.db\0.CryptKey.bin'.
Errors in the metadata manager. Processing for the database will be
disabled because an error occurred while loading the 'Estadisticasnue'
database cryptography key. One possible reason for this error is that
the service account has changed.
Errors in the encryption library:
Failed to decrypt sensitive data. Possibly the encryption key does not
match or is inaccessible because of improper service account change.
(Microsoft.AnalysisServices)
I don't know why I'm having this problem. If I use a database without password, the same problem appears.
Related
I have two databases, one hosted in Azure SQL Server and another one which is local on my own SQL Server instance. Both of these I manage using SSMS.
I wanted to see how I can backup the Azure DB and restore it on the local instance (where I currently have other databases as well, generated and managed by Entity Framework) of my SQL Server. For that purpose, I followed this video.
What I basically did was to export a .bacpac file and restore it on my local instance by making a reference to "Import Data-Tier application".
Everything went well. The content was successfully restored and I was able to browse through it. When I finished with my testing I manually deleted this new database.
From that moment on, I can not access my other databases at all. When I try to do whatever SQL query on those I get the following error:
Attempt to retrieve data for object failed for Server '**********'. (Microsoft.SqlServer.Smo)
ADDITIONAL INFORMATION:
Failed to retrieve data for this request. (Microsoft.SqlServer.Management.Sdk.Sfc)
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
The connection is broken and recovery is not possible. The client driver attempted to recover the connection one or more times and all attempts failed. Increase the value of ConnectRetryCount to increase the number of recovery attempts. (Microsoft SQL Server, Error: 0)
Cannot open database "{THE NAME OF THE DB THAT I MANUALLY DELETED}" requested by the login. The login failed.
Login failed for user ******'. (Microsoft SQL Server, Error: 4060)
Our cubes were working fine and were processed daily in SSMS until some Microsoft security updates were installed & the server was restarted. We receive the error message above when processing the cubes and dimensions. We already deleted the security updates but we still get the same error.
In the windows services -> SQL Server Analysis we have a service account with all the rights in SQL server (read, write, process, admin). We are working on SQL Server 2014.
We tried to:
restart the SQL Server Analysis
set up new accounts with read,process and admin rights on the SQL server and analysis server.
we tried to put in the "SQL Server Analysis" to put the Local account
create a new cube but Dimension can still not be processed.
change the provider from "SQL Server Native Client 11.0" to "Microsoft OLE DB Provider for SQL server" and we also checked the "allow inprocess" checkbox in SSMS in Server Objects -> Linked Servers -> Providers.
Nothing worked of the points above. I hope someone can help us.
Error message:
OLE DB error: OLE DB or ODBC error: Incorrect syntax near the keyword
'JOIN'.; 42000. Errors in the OLAP storage engine: An error occurred
while the dimension, with the ID of
'd4b8c9a6-7692-4d64-bb9c-f4ac7d7d62d1', Name of 'Customer' was being
processed. Errors in the OLAP storage engine: An error occurred while
the 'Type' attribute of the 'Customer' dimension from the 'TestCube'
database was being processed. Server: The current operation was
cancelled because another operation in the transaction failed.
Details:
Internal error: The operation terminated unsuccessfully. ... Module:
Microsoft.AnalysisServices
Microsoft.AnalysisServices.OperationException
at Microsoft.AnalysisServices.AnalysisServicesClient.SendExecuteAndReadResponse(ImpactDetailCollection
impacts, Boolean expectEmptyResults, Boolean throwIfError)
at Microsoft.AnalysisServices.Server.Process(IMajorObject obj, ProcessType processType, Binding source, ErrorConfiguration
errorConfig, WriteBackTableCreation writebackOption,
XmlaWarningCollection warnings, ImpactDetailCollection impactResult,
Boolean analyzeImpactOnly)
at Microsoft.AnalysisServices.Server.SendProcess(IMajorObject obj, ProcessType processType, Binding source, ErrorConfiguration
errorConfig, WriteBackTableCreation writebackOption,
XmlaWarningCollection warnings, ImpactDetailCollection impactResult,
Boolean analyzeImpactOnly)
at Microsoft.AnalysisServices.ProcessableMajorObject.Process(ProcessType
processType, ErrorConfiguration errorConfiguration,
XmlaWarningCollection warnings)
at TimeXtender.DataManager.CubeEngine_2005.ProcessDimension(Dimension
dimension)
FYI:
We finally managed to fix the problem.
When running the SQL server repair it failed on SSAS with an error that indicates that the installation of SSAS was never successful so we think the files were corrupted.
Then we installed another instance of SSAS only to have 2 SSAS services. The new one was working so we deleted the old one and replaced it with a new SSAS installation. So no need reinstall the complete SQL Server.
We did backups just in case we would need them but all the cubes were automatically found by the new SSAS instance in that folder that we indicated in the installation process.
Everything was immediately working.
I'm trying log shipping between two SQL VMs. The backup is getting generated properly but its not getting restore on secondary database. The error says that the restore job is not able to open the .bak file of the database.
Below are the error details:
TITLE: Microsoft SQL Server Management Studio
------------------------------
SQL Server Management Studio restore database 'TestDB1'
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (SqlManagerUI)
------------------------------
Cannot open backup device '\\vm-p\NetworksharepathTlogs\TestDB1.bak'. Operating system error 5(Access is denied.).
RESTORE FILELIST is terminating abnormally. (Microsoft SQL Server, Error: 3201)
There were 3 sections when configuring log shipping so the first step that was primary backup setting was successful. And backup got generated in the folder. I have given full control to the users involves read, write ,etc. But still my log shipping is failing coz of this error.
In second step of log shipping two actions were performed one was restoring database to secondary server and other is saving secondary destination configuration . So I separately run the jobs and found that restoring database to secondary is causing an issue. This error is thrown on that step failure.
Please help me to solve this issue.
Thanks in advance.
While configuration SQL server mirroring I got below error.
I started SQL Server and Analysis services with same account on both servers. SQL server Agent service also started in both servers but reporting service was not installed in Principal server,will this conflict?
Firewall also stopped.
Error:
An error occurred while starting mirroring.
ADDITIONAL INFORMATION:
Alter failed for Database 'Data Base'
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
The remote copy of database "Data Base" does not exist. Check the database name and reissue the command. (Microsoft SQL Server, Error: 1448)
Following steps was used by me for Mirroring:
Full and Transaction Log backup of Mirror DB have been taken from principal server.
Copied into Mirror server and Restored successfully with No Recovery option
Starting Mirroring into the Principal server
Rightclick the DB--> click on Tasks--> click on Mirror--> Click on Config Security buttion--> Next... after creation of Endpoint finally click on start Mirroring. Here it's throwing error.
Currently my project is running, however I connect same project database with SQL Server Management Studio which shows error
Failed to retrieve data for this request.
(Microsoft.SqlServer.Management.Sdk.Sfc)
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or
batch. (Microsoft.SqlServer.ConnectionInfo)
CREATE FILE encountered operating system error 32(The process cannot
access the file because it is being used by another process.) while
attempting to open or create the physical file 'gg.mdf'. (Microsoft SQL Server, Error: 5123)
How can I fix this error?
You're probably creating a database with the same file names (.mdf) or a database which already exists on the SQL server.
I'm not sure what type of project you are talking about but try to change the physical file names of the database or removing the existing database from the server.