Solved

Problem with backing up sql server

Posted on 2013-12-12
4
7,059 Views
Last Modified: 2013-12-12
Hi,

We just moved a a sql database from a server to another. When we try to backup the database we get the following error message:


TITLE: Microsoft SQL Server Management Studio
------------------------------

Backup failed for Server 'INTRANET'.  (Microsoft.SqlServer.SmoExtended)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Backup+Server&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

System.Data.SqlClient.SqlError: Cannot use the backup file 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\myrornaDB.bak' because it was originally formatted with sector size 4096 and is now on a device with sector size 512. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0.3000.0+((SQL11_PCU_Main).121019-1325+)&LinkId=20476


Anyone of you expert ts that have a solution?

Peter
0
Comment
Question by:peternordberg
4 Comments
 
LVL 19

Assisted Solution

by:jss1199
jss1199 earned 167 total points
ID: 39714897
Are you appending to an existing backup file?  Try backing up to a new file.
0
 
LVL 8

Assisted Solution

by:virtuadept
virtuadept earned 166 total points
ID: 39714898
What if you remove that file and let it create a new backup file on the new server?

C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Backup\myrornaDB.bak

Seems like it is trying to re-use the file but can't because:

it was originally formatted with sector size 4096 and is now on a device with sector size 512

Maybe if that file was not there it would make a new file with the right sector size.
0
 
LVL 3

Accepted Solution

by:
Jerry_Justice earned 167 total points
ID: 39714903
When you moved SQL, did you move this backup file along with the database?

If so, simply rename myrornaDB.bak to something else.  It sounds like it is trying to write to the same backup set and it can't because of the different sector size.  If you rename or delete the existing myrornaDB.bak, it will create a new one.

Personally, I prefer each back up to go to a new file with the date embedded in the file name.  It looks like you are using a batch file or scheduled task to backup to the same file every time.
0
 

Author Closing Comment

by:peternordberg
ID: 39714923
Hi,

I created a totally new backup set and then it worked. Thanks all.

Peter
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question