I recently reinstalled Windows and am trying to set up SQL Server again with an existing database. I've tried installing SQL Server 2012 and 2014, and continuously get the same error. The error says that the database is version 782 and this version of SQL Server is only compatible with 706 and below. I get this error with both SQL Server 2012 and 2014. I thought 2014 was compatible with 782+.. Can anyone provide me with some guidance as to how to attach a damn database? Frustrated...
Image from SQL Server 2014..
and just to note, I get the same error in 2012. Everything was functioning before the OS reinstall.
Database must be set to older or same version of the server. You cannot use 2012 server with 2014 database.
According to this link: http://sqlserverbuilds.blogspot.com/2014/01/sql-server-internal-database-versions.html 782 is version 2014 and you cannot use earlier versions.
If you tried SQL Server 2014, update to latest version.
Also make sure you install server not just management tools, since you say that the image is from 2014 but server supports 706, which means it's 2012.
You can do 'SELECT ##version' from your management studio to see on which version of server you're running.
If you are using a LocalDB 2014 the all you need to do is make sure that your connection string is pointing to the correct instance.
So change
"Data Source=(Localdb)\v11.0"
to
"Data Source=(Localdb)\v12.0"
or
"Data Source=(Localdb)\mssqllocaldb"
I find out two SQL instances were running and on the server name I was mentioning the old SQLExpress instance.
ServerName\SQLExpress
I just change the instance to the newer instance, in this case SQLServer2014 instance and it solved my problem.
ServerName\SQLServer2014
From this answer to "The database cannot be opened because it is version 782. This server supports version 706 and earlier. A downgrade path is not supported".
Try to change the compatibility level - it worked for me.
To verify what level it is:
USE VJ_DATABASE;
GO
SELECT compatibility_level
FROM sys.databases WHERE name = 'VJ_DATABASE';
GO
Then, to make it compatible with the older version:
ALTER DATABASE VJ_DATABASE
SET COMPATIBILITY_LEVEL = 110;
GO
100 = Sql Server 2008
110 = Sql Server 2012
120 = Sql Server 2014
By default, Sql Server 2014 will change the db versions compatibility
to only 2014, using the ## version you should be able to tell which
version Sql Server is.
Then run the command above to change it the version you have.
Additional step: Ensure you look at the accessibility of the DB is not
reset, do this by right clicking on properties of the folder and the
database. (make sure you have rights so you don't get an access
denied)
Another solution is to migrate the database to e.g 2012 when you "export" the DB from e.g. Sql Server manager 2014. Please find the solution here:
The database cannot be opened because it is version 782. This server supports version 706 and earlier. A downgrade path is not supported
Possibly:
You already have installed LocalDB with SQL version older than now.
You did not remove an old SQL express LocalDB, and the connection is to the old LocalDB.
Handling:
Update your sql express to the newest version.
Go to the new installed SqlLocalDB (the default is: "C:\Program Files\Microsoft SQL Server\130\LocalDB\Binn")
list, stop, delete the old LocalDB and other old instance with cmd.exe at administrator's privilege.
list: SqlLocalDB.exe i
stop: SqlLocalDB.exe p "MSSQLLocalDN"
delete: SqlLocalDB.exe delete "MSSQlLocalDB"
Finally, reboot your Visual studio and reload your project.
Related
This is probably a trendy question, But I promise you my problem is different.
Lately my server windows crashed and I was forced to install new windows.
I took a backup of the database "ReportServer" and "ReportServerTempDB".
Until then I didn't remember the SQL Server version was installed before the windows crashed.
Now when I try to attach these databases and run the report server, it tells me the following message
"The version of the report server database is either in a format that is not valid, or it cannot be read. The found version is '163'. The expected version is '162'. (rsInvalidReportServerDatabase)"
I've made some research, and understood that my current installed SQL Server version is higher than the database, I tried installing some cumulative updates but when I run the updates it seems not to be recognizing the SQL Server version installed.
Current installed version: Microsoft SQL Server Enterprise: Core-based Licensing (64-bit) 2014 v12.0.2000.8
Previously installed version: Microsoft SQL Server 2012 Enterprise Not sure though.
My problem is that I can't open the ReportServer database because it's version is older and I can't install the right cumulative update to fix this issue. Can anyone point me to the right direction?
Much appreciated Thanksss!!.
I'm a noob on DBA profile. I was installing a SQL server 2008 R2 on Windows 2008 R2. while installing sql-server i received the following error. I was not able to locate any log at *C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap*
TITLE: Microsoft SQL Server 2008 R2 Setup
The following error has occurred:
Not all privileges or groups referenced are assigned to the caller.
Click 'Retry' to retry the failed action, or click 'Cancel' to cancel
this action and continue setup.
For help, click:
http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.50.1600.1&EvtType=0xB2652E58%25400xDC80C325
BUTTONS:
&Retry Cancel
Could you please help me troubleshoot/fix this issue?
As it was a new instance, rebuilding the system databases worked for me. Be careful if it is an old instance as all data will be wiped out (you still can take backups and restore data, just a bit more complicated). Details as to how to rebuild the databases here
If you are trying to install MSSQL Server 2008 R2 after uninstalling any higher or lower version of MSSQL Server i.e MS SQL Server 2012,2014. Please make sure that you have removed every single file with the name SQL Server except the following three files from the control panel >> Programs >> Uninstall a Program.
Microsoft SQL Server Compact 3.5 SP2 ENU
Microsoft SQL Server Compact 3.5 SP2 Query Tool ENU
Microsoft SQL Server Compact 4.0 SP1 x64 ENU CTP1
Also, removed the MSSQL Server folder from the following path
C:\Program Files\
C:\Program Files(x86)
C:\ProgramData\Microsoft
After then restart the system and try to install it.
Please let me know if you receive any errors.
Need help getting SQL Server 2016 LocalDB to accept connections using default instance name "(localdb)\MSSQLLocalDB". I can get a connection using "(localdb)\.". OS is MS Windows 10 Pro 64 Bit. Have Visual Studio 2015 Express Update 3, SQL Server 2016 Local DB (also 2014), SQL Server Data Tools (latest update), and SQL Server 2012 Native Client installed. MSSQLLocalDB instance is created and will start using sqllocaldb.exe. Have same setup on a Windows 7 machine and it works fine. Have searched the web for a solution to this, but did not find any that applies to my case. Thanks.
I was able to solve the problem by removing the alias for MSSQLLocalDB in both 32 and 64 bit versions of cliconfg.exe. Server name was: (LocalDB)\MSSQLLocalDB and pipe name was (localdb)\MSSQLLocalDB. The alias may have been created during the installation of a previous version of Visual Studio. I noticed that the Windows 7 machine did not have this alias. Hope this helps someone else with similar problem.
I've SQL Server 2008 Express installed. I've just download and installed SQL Server 2005 Express, but I changed the name of instance into SQLEXPRESS2005 (I added 2005 at the end to avoid conflicting names).
Unfortunately, when I try to access the 2005 instance either using the SQL Server Management Studio or the VWD 2008 Express (Database Explorer window), I don't see it.
I just disk-recovered my system, so I lost many of my files. But, before that, I had both versions, one having 2005 as instance name.
So here are the summary of the issues:
I was able to download and install successfully the Express 2005
When I try to connect to a server, I only see.\SQLEXPRESS as option (there's no SQLEXPRESS2005)
When I try to connect from the VWD, I get the Server not found ERROR!
I can see the SQL SERVER 2005 icon on the Control Panel window. But, when I try to
uninstall it, I get a error message telling that this program is not found
When do Start -> All Programs, I can see the The Microsoft SQL Server 2005 folder
It's really strange as I was successfully able to install both versions before I experienced problem with my system.
Thanks for helping.
Do you see the service for the SQLEXPRESS2005 instance? If it isn't there then the instance doesn't exist and you'll need to reinstall.
I applied SQL Server 2005 SP2 and marked all the components to be updated, including Client tools, but the version in the Help -> About box still has version 1399, while the server does indeed had 3042.
I then re-applied SP2 to only Client tools, and everything ran successfully (again, first time did too) but still, no version update for management studio.
Now, I just applied SP3 with everything successfully, but still management studio version did not get updated.
How can I update it? Or at least how can I uninstall just Management studio so I can install it from a newer DVD?
Thanks.
If you go to Control Panel > Add Remove programs and then choose the appropriate SQL Server installation, this will start the typical install wizard for SQL Server.
You can then select the specific components that you wish to uninstall.
If you are having difficulties with SQL Server 2005 Service Pack 3 may I suggest that you visit the SQL Server Central forums as there are a wealth of resources for SQL Server SP3. It was actually due to user demand from this forum that resulted in there even being an SP3 release.
http://www.sqlservercentral.com/Forums/Forum146-1.aspx
Let me know how you get on.
Cheers, John
I got the Error in sql server sp3 installation log which caused this:
Error Number : 29538
Error Description : MSP Error: 29538 SQL Server Setup did not have the administrator permissions required to rename a file: C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\DATA\mssqlsystemresource1.ldf. To continue, verify that the file exists, and either grant administrator permissions to the account currently running Setup or log in with an administrator account. Then run SQL Server Setup again.
Hate to answer my own question, but I had to manually un-install Client Tools, re-install them using SQL Server 2005 setup, and THEN apply the updates.
It wasn't working by just trying to apply updates over the existing original installation.
And i mention un-installing using the SQL Server 2005 Setup because trying to do it from the Add/Remove Programs dialog won't let you or will give you trouble.