I can't restore database from .bak file in SQL Server 2012 - sql-server-2012-express

When I select the .bak file it is nothing shown in the 'backup sets to restore' area below. This is the newest backup version from hosting server 2012.
If I try restore a few months older .bak file from the same hosting server it works fine.
I am using ms sql 2012 Express.
Microsoft SQL Server Management Studio 11.0.2100.60
Microsoft Data Access Components (MDAC) 6.2.9200.16384
Microsoft MSXML 3.0 6.0
Microsoft Internet Explorer 9.10.9200.16660
Microsoft .NET Framework 4.0.30319.18051
Operating System 6.2.9200

I found the same issue and the issue for me was that files were created by another user and permissions were not properly allocated.
Try updating the Login for the SQL Server Service to an Administrator on the box.

Related

Umbraco via Nuget - how do I change the database?

I have installed Umbraco 7 via Nuget
Empty ASP.NET 4.5 project
Package Manager console command: install-package umbracocms
Build & run, following the Umbraco wizard
Looking in the web.config this is writing to the SQL Server CE database on my system which I definitely DO NOT WANT because of a known issue with Web Matrix / IIS Express and SQL CE
Link to known issue on Umbraco forums
How do I tell Umbraco to use my SQL Server 2012 Express database? Is it just the web.config that I change? Do I do this before building & running for the first time?
Build the project and run in (without debugging).
When you are asked to enter a username, email address and password do so.
Before hitting the green INSTALL button, click 'Custom'.
The custom install screen allows you to choose which database to install to. In my case I have two versions of SQL Server (2008 R2 and 2012 Express and the former I don't have admin rights to) but there is only one SQL Server option. I had to specify a custom connection string like so:
Data Source=APIWSEMMA\MYSQL2012;Initial Catalog=MyUmbraco;User ID=sa;Password=MyPassword
Now begin the installation. You should see all the tables created in your database when it is finished.

The backup file should be restored to a server with version '14.0.0.6117' or later

I'm trying to restore the SharePoint 2010 portal from one server to another server and using the sharepoint 2010 backup and restore powershell commands. I have take the backup successfully, while restoring I'm getting the following error.
Error:
"Restore-SPSite : Your backup is from a different version of Microsoft
SharePoint Foundation and cannot be restored to a server running the
current version. The backup file should be restored to a server with
version '14.0.0.6117' or later"
Solution:
1) Download the hot fix from this link by register your Email id
http://support.microsoft.com/kb/2597150
2) Extract the file and run the exe
Note: don't run the SharePoint 2010 Configuration wizard during the installation...
3) After successful installation Restart your system.
4) Run SharePoint 2010 Configuration wizard setup.
5) Start the restore operation once again your problem get resolved
Some time you will get rendering error
To resolve this issue go to central administration then open
farm config and start the state service

CanĀ“t restore a database from a backup

I reinstalled SQL Server Management Studio in my computer, then I'm trying to restore all backups.
Unfortunately, I get an error when trying to open one.
What should I do?, How do I set the BackupDirectory in my Settings?
I just installed Sql Server Express 2012 Sp1, and problem solved

instance servername sql server 2012

Hello I have installed management studio 2005(x64) alse I have microsoft sql server 2012 in my pc. But cant connect server due to dont know server name. (if sql server 2008 express were in my pc, default servername would be "./sqlexpress")
How can I connect server in my own pc ? And also I wanted to know;
Should I use another management studio ? can there be a problem use ms2005 with sqlserver 2012 ? Do you recemmond other studio ? (with exp. reason please)
Thank you anyone who just feel to help.
At least one of them must be a named instance. So, open the SQL Server 2012 version of SQL Server Configuration Manager, and see what the services say (and make sure the one you want to connect to is started - you can right-click to do so). Mine are all named instances:
So, if I wanted to connect to the SQL Server 2008 SP3 instance, I would use any of the following to connect:
.\SQL2008SP3
LOCALHOST\SQL2008SP3
(local)\SQL2008SP3
YOURMACHINENAME\SQL2008SP3
127.0.0.1\SQL2008SP3
The exception is if the subtext has (MSSQLSERVER) - this is a default instance rather than a named instance. In that case you would just connect to YOURMACHINENAME or ..
Also, no, you should not use Management Studio 2005 to manage SQL Server 2012 instances. In fact I think the above Configuration Manager won't show your 2012 instance. So before you do anything, you should uninstall the 2005 version of Management Studio, and go get the 2012 SP2 version here:
http://www.microsoft.com/en-us/download/details.aspx?id=43351
Click Download, the file you want is SQLManagementStudio_x64_ENU.exe. The nice thing about this version in 2012 SP1 is that it's the first version of SSMS Express that is actually fully functional and license free. Previously you had to live with limitations like no SQL Server Agent management, well those restrictions are now all gone.
(When you instal the client tools, this should also give you a new version of Configuration Manager, if your previous installation of SQL Server 2012 did not provide that for some reason.)

Running SQL Server CE 4 Queries with Visual Studio 2012 and SQL Server Management Studio 2012

I have recently upgraded to Visual Studio 2012 and SQL Server Management Studio 2012, however I cannot seem to see how to execute SQL scripts (created by Entity framework) on a SQL Server CE 4.0 database. With VS2010 + SSMS 2008 the Transact-SQL editor would ask for a connection and you could browse to the object, however this option is not available in SSMS 2012.
I have tried to execute the script via the Server Explorer -> New Query window, but I get parse errors. Any clues?
Microsoft got rid of that for SSMS 2012, and suggested to use the integrated tools in WebMatrix instead (from memory, can't find a link for that sorry).
As suggested in that Microsoft Answers post, however, you could use the SQL Server Compact Toolbox, it's pretty effective.
Try using the SQL Server Object Explorer instead of the Server Explorer. That should allow you to do what you wish.