Issue while restoring a Database Backup file - sql

I get the below mentioned while restoring a database back-up file to my system. Actually the back-up has been taken in other system and I'm trying to restore that file to my systems' sql server. Could anybody assist me in explaining what the error is and how to rectify? Please...
Error:
"System.Data.SqlClient.SqlError: The database was backed up on a server running version 10.50.1600. That version is incompatible with this server, which is running version 10.00.2531. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.Smo)"
Thank You.

You SQL Server where you want to restore the database is older then the origin.
So to restore this database, you have to use a newer version.
Go to downloads.microsoft.com and get the SQL Express version of the latest, install it on any machine and restore. You can even install on the same machine.
If you cant udpate your SQL Server, you can connect both DB's then and use DTS to move the data back to your "old sql system".

Related

Blue Prism, regarding SqlServerExpress

I have two set up files for SQLServer
SQLServer2017-SSEI-Expr 5Mb
SSMS-Setup-ENU 540 Mb
Which file need to be installed.
If the setup file need to be installed then what is the use for the first one?
can someone please advice?
Thanks
SQLServer2017-SSEI-Expr is an installation package for installation of SQL Server Express binaries required to run the database server. You must install it to have your server.
SSMS-Setup-ENU is an installation package for GUI client which allows you to connect to SQL Server database instance and manage it. Although it's not required to be installed on the machine with running SQL Server it's recommended to be installed on administration/developer machine to interact with the database using T-SQL.

Where can I download SSMS 2016?

Currently I use SSMS 17, however Gearhost, the website I am trying to deploy my database to, currently only use SQL Server version 13, which I believe to be SSMS 16.
The exact error is;
Error restoring database The database was backed up on a server
running version 14.00.1000. That version is incompatible with this
server, which is running version 13.00.4451. Either restore the
database on a server that supports the backup, or use a backup that is
compatible with this server.
Is there a place I can download this older version?
from docs:
The SSMS 17.x installation does not upgrade or replace SSMS versions 16.x or earlier. SSMS 17.x installs side by side with previous versions so both versions are available for use. If a computer contains side by side installations of SSMS, verify you start the correct version for your specific needs. The latest version is labeled
You can download it here
MSFT currently (May 2020) provides versions of SSMS back to 16.5.3.
Please use this link for the overview. The download of version SSMS 2016 can be found here.
To download older versions of SSMS you need to go here and select the version at the top of the left nav bar, otherwise it defaults to the latest version.
The error being encountered is due to an attempt to restore a SQL Server 2017 database to a SQL 2016 instance. It's not an issue with SSMS versions. SQL databases are not backwards compatible. You can restore a backup from an older version instance to a newer version instance (2016 to 2017), the restore will perform the upgrade, but you cannot restore a backup from a newer version instance to an older version instance (2017 to 2016 for example).
here, click on the version!
Microsoft docs
https://learn.microsoft.com/en-us/sql/ssms/release-notes-ssms?view=sql-server-ver15#previous-ssms-releases

Create SQL Server 2008 Backup from 2008 R2

I've created a Backup of a Database on a server with SQL Server 2008 R2.
I wish to restore this onto a server that is running SQL Server 2008.
I've received the error:
"The database was backed up on a server running version 10.50.4000.
That version is incompatible with this server, which is running
version 10.00.5500."
Is it possible to produce a version 10.00.5500 compatible backup from 10.50.4000.
If not what other options do I have, or other ways to create the database.
I have tried to use the Copy Database task, but also received errors.
This is not possible. At least, you won't be able to use the backup to restore on an older version.
Nenad Zivkovic provided a good link and there are several ways out of this situation listed:
Upgrade the older version of SQL Server to be at the same level as the newer SQL Server.
Script out the objects from the newer database and then usp a bcp process to extract the data from the newer database and import it into the older database.
Use the SQL Server Import and Export Wizard to build an SSIS package to move the data (it will move the data only).
Build a custom SSIS package to do the data move.
Use replication to move the data from the newer database to the older one.
Use some other form of scripting, such as with PowerShell, to keep the databases in sync.
(Source: http://www.mssqltips.com/sqlservertip/2675/why-cant-i-restore-a-database-to-an-older-version-of-sql-server/)

Error upon installing SQL Server 2008 Express

I am trying to install SQL Server 2008 Express but get the error
set.exe is not a valid Win32 application
I do not have that much disc space on this machine as it is at the moment, only 10,5 gig, is this perhaps the problem? Any advice perhaps on what the cause could be and how to fix it.
regards
Looks like a corrupted download. Instead of [RUN], choose [Save] and then run from your local hard drive. Verify the size of the download before running the executable. If this doesn't work, try to download it again.
Make sure you read the system requirements on MS DL as SQLEXPR_x86_ENU.exe: Microsoft® SQL Server® 2008 Express

Latest recommendations for Import\Export of SQl Server bacpac files [duplicate]

This question already has answers here:
Azure SQL Database Bacpac Local Restore
(6 answers)
Closed 9 years ago.
I'm trying to get up and running with Windows Azure but finding the database side extremely frustrating. I need to export my local database to a bacpac file from SQL 2008 and then import into Azure. I would also like to be able to export from Azure and then import to my local database for debugging.
I have found a few tutorials online for achieving this but every time I get part way through one of them I eventually hit a section that requires a step where the information or download is marked as outdated! it seems to have changed quite a bit over time and I can't find an up to date resource
Can anyone provide an updated link on how to do this?
Thanks
I had the same issues, all documentation on importing/exporting .bacpac mostly reference SQL 2012. I needed to export a sql 2008 R2 express database to azure as well as to be able to export from azure to my local devlopment environment.
I found the SQL Database Migration Wizard v3.9.9 & v4.0.12 to do the trick.
Download Link: http://sqlazuremw.codeplex.com/releases/view/32334
Also download the documentation and it will go through the migration of .bacpac to and from the azure and your local server. What is great about the tool is it will perform a compatibility check on the database to ensure it is ready to deploy to azure.
There is also another command line tool I investigated sqlpackage.exe that can be downloaded as part of Microsoft SQL Server Data Tools
Download Link: http://msdn.microsoft.com/en-us/data/hh297027
Below is an example of exporting a .bacpac file:
sqlpackage.exe /a:Export /ssn:SERVERNAME\sqlexpress /sdn:SOURCEDATABASENAME /su:DATABASEUSER /sp:DATABASEPASSWORD /tf:c:\SOURCEDATABASENAME.bacpac
I needed to export a SQL Azure database and then import it into a local SQL 2008 R2 server (Note I am also using Visual Studio 2010). Microsoft certainly went out of their way to make this a painful task, however, I was able to do it by doing the following:
Goto think link http://msdn.microsoft.com/en-us/jj650014 and install the SQL Server Data Tools for Visual Studio 2010
This will install on your local drive. In my case here is where it put it: C:\Program Files (x86)\Microsoft SQL Server\110\DAC\bin
Browse to this via the command line or powershell
You are going to want to execute the SqlPackage.exe
Open up this link to see a list of all the parameter options for SqlPackage.exe (http://msdn.microsoft.com/en-us/library/hh550080(v=vs.103).aspx)
Here is my command line that I needed to execute to import a .bacpac file into my local SQL 2008 R2 server:
.\SqlPackage.exe /a:Import /sf:C:\mydatabasefile.bacpac /tdn:NorthWind /tsn:BINGBONG
/tdn is the name of the database you want your bacpac file to restore to.
/tsn is the name of your SQL server.
You can see all these parameter descriptions on the link from #5.