Showing posts with label failing. Show all posts
Showing posts with label failing. Show all posts

Thursday, March 29, 2012

backup failure

Hi
My DB backup and transaction backup of a database keep on failing with
the following error:
Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 3202: [Microsoft][ODBC
SQL Server Driver][SQL Server]Write on
'E:\SqlServer\testdb_db_200604221313.BAK' failed, status = 112. See the
SQL Server error log for more details.
[Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is
terminating abnormally.
Any idea what it really means ?
Thanks
DavidYou can get the description of Win32 error codes with NET HELPMSG from a
command prompt:

NET HELPMSG 112

Yields:

There is not enough space on the disk.

--
Hope this helps.

Dan Guzman
SQL Server MVP

"David Greenberg" <davidgr@.iba.org.il> wrote in message
news:444B9239.2010804@.iba.org.il...
> Hi
> My DB backup and transaction backup of a database keep on failing with the
> following error:
> Microsoft SQL-DMO (ODBC SQLState: 42000)] Error 3202: [Microsoft][ODBC SQL
> Server Driver][SQL Server]Write on
> 'E:\SqlServer\testdb_db_200604221313.BAK' failed, status = 112. See the
> SQL Server error log for more details.
> [Microsoft][ODBC SQL Server Driver][SQL Server]BACKUP DATABASE is
> terminating abnormally.
> Any idea what it really means ?
> Thanks
> David

Backup fails with ConnectionRead (WrapperRead()

For the past week my maintenance plan that backs up the
master and my main database has been failing, but only on
my database. The master backup works fine. The plan fails
when trying to execute:
BACKUP DATABASE [WebTools] TO DISK = N'G:\SQLBackup\WebTools\WebTools_db_200310290834.BAK'
WITH INIT , NOUNLOAD , NOSKIP , STATS = 10, NOFORMAT
When I try running this command via Enterprise Manager, it
reports a syntax error "WITHINIT" (no space). I removed
all the WITH settings and re-ran it, but then it failed
with a ConnectionRead error.
Using Query Analyzer, the command runs for a few seconds
and then reports the error:
[Microsoft][ODBC SQL Server Driver][Shared Memory]
ConnectionRead (WrapperRead()).
Server: Msg 11, Level 16, State 1, Line 0
General network error. Check your network documentation.
THe backup, however, continues and completes successfully
according to Event Viewer.
Can anyone shed some light on this? TIA.
I'm running W2K SP4, SQL2K SP3 on a Dell 2600 with a Xeon
processor (which looks like 2 CPUs).Hello David,
I would appreciate your patience while I am looking into this issue. I'm now performing some
troubleshoots on your issue and will post my response at soon as I have update for you.
Thanks for posting to MSDN Managed Newsgroup.
Regares,
Billy Yao
Microsoft Online Partner Support|||Hi David,
Thank you for using MSDN Newsgroup! It's my pleasure to assist you with your issue.
From your description, I understand that your maintenance plan failed for database backup
errors. Therefore, you performed the backup manually but another network error occurred.
However, the backup did succeed according to your event log.
Have I fully understood you David? If there is anything I misunderstood, please feel free to let
me know.
Considering the backup did succeed and the network error is so general, I suspect that the
issue is located in the network library. It is recommended that you apply the latest MDAC 2.8 to
suppress this symptom. You can download this MDAC via:
http://www.microsoft.com/downloads/details.aspx?FamilyID=6c050fe3-c795-4b7d-b037-
185d0506396c&DisplayLang=en
If you use Named Pipes Net-Library to connect to the SQL Server database, I strongly
recommend you use the TCP/IP Net-Library instead.
For the exact steps to set the TCP/IP network library on the client where you are performing the
backup or the restore operation, see the "How to configure a client to use TCP/IP (Client
Network Utility)" chapter in SQL Server 2000 Books Online.
When you connect to an instance of SQL Server by using SQL Query Analyzer, you can force
the connection to use the TCP/IP Net-Library. To do this, type the name of the instance of SQL
Server with the tcp prefix in the SQL Server text box in the Connect to SQL Server dialog box.
This appears as follows:
tcp:SQL Server Name
Another possible cause of backup failure is that there was no space in the disk drive due to
the fact that the transaction logs were not got truncated. In this case, the logs may fill up disk
space, and you need to shrink the transaction log files first.
To resolve this problem, please follow the steps in the following articles to truncate the
transaction log
272318 INF: Shrinking the Transaction Log in SQL Server 2000 with DBCC
http://support.microsoft.com/?id=272318
David, please apply the suggestions above and let me know if it helps you resolve your
problem. If there is anything more I can assist you with, please feel free to post it in the group.
Best regards,
Billy Yao
Microsoft Online Partner Support
----
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
Please reply to newsgroups only. Thanks.|||Thanks Billy.
First... I had already installed MDAC 2.8 as part of an
attempt to resolve a different problem, and disk space
wasn't an issue.
I then tried to use QA to connect via TCP to SQL Server,
but couldn't. I checked the network settings in SQL Server
and it indicated both Named Pipes and TCP/IP were
available. When I checked the log, however, it said it was
only listening on the named pipes.
I did some more digging, but nothing fixed that problem. I
wound up removing SQL Server from the system and re-
installing it from scratch. The log showed it was now
listening on TCP as well. When I tried the backups via QA
and the maintenance plan, both worked.|||Dear David,
Thank you for your good news!
I'm glad that the problem was solved by re-installing the SQL Server. I
think the cause of SQL Server not listening on TCP may be related to some
register key was revised with some unexpect reasons (such as by some
applications).
Anyway, I appreciate your logical troubleshooting and congratulations on
your finding the cause and solve the problem.
Thank you for participating our newsgroup!
- Billy

BACKUP failing! HELP!

I'm trying to backup a SQL 7.0 database to a network server (NT) from
Enterprise Manager and am getting the following error:

Title bar: Microsoft SQL DMO (ODBC SQL State: 42000)
Message: Backup or restore operation terminating abnormally.

The SQL Log has the following message:
BackupDiskFile::RequestDurableMedia: failure on backup device
'\\myserver\bu_sql$\bu_mydb1.bak'. Operating system error 64(The
specified network name is no longer available.).

When I run a scheduled job that backs up mydb1, it fails with the
following message: Processed 50968 pages for database 'mydb1', file
'mydb1_Data' on file 1. [SQLSTATE 01000] (Message 4035) Processed 1
pages for database 'mydb1', file 'mydb1_Log' on file 1. [SQLSTATE
01000] (Message 4035) Backup or restore operation terminating
abnormally. [SQLSTATE 42000] (Error 3013). The step failed.

This appears to a network problem but the transaction log dumps from
the same database to the same network share work fine as does a full
backup of a different database (on the same SQL Server).

The file bu_mydb1.bak is being created on the network drive. The
network drive has plenty of available space. The file is only 423MB
and the share has 9GB free space.

Any ideas?jeff.strange@.lrc.state.ky.us (Jeff) wrote in message news:<7dafc839.0401130705.1dc48e96@.posting.google.com>...
> I'm trying to backup a SQL 7.0 database to a network server (NT) from
> Enterprise Manager and am getting the following error:
> Title bar: Microsoft SQL DMO (ODBC SQL State: 42000)
> Message: Backup or restore operation terminating abnormally.
> The SQL Log has the following message:
> BackupDiskFile::RequestDurableMedia: failure on backup device
> '\\myserver\bu_sql$\bu_mydb1.bak'. Operating system error 64(The
> specified network name is no longer available.).
> When I run a scheduled job that backs up mydb1, it fails with the
> following message: Processed 50968 pages for database 'mydb1', file
> 'mydb1_Data' on file 1. [SQLSTATE 01000] (Message 4035) Processed 1
> pages for database 'mydb1', file 'mydb1_Log' on file 1. [SQLSTATE
> 01000] (Message 4035) Backup or restore operation terminating
> abnormally. [SQLSTATE 42000] (Error 3013). The step failed.

There is an MS document that says your destination/remote server 'is
under stress' and you are getting i.o hits, based on error 3013. You
might look at the scheduling of the backup job.

The 3013 error says your remote disk drive 'is user stress'.
Basically, it is a timing/timeout because of the amount of disk
activity on the remote server.
> This appears to a network problem but the transaction log dumps from
> the same database to the same network share work fine as does a full
> backup of a different database (on the same SQL Server).
> The file bu_mydb1.bak is being created on the network drive. The
> network drive has plenty of available space. The file is only 423MB
> and the share has 9GB free space.
> Any ideas?

Tuesday, March 27, 2012

Backup failing

Hi everybody,
I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
backup a database
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT, NOINIT,
NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
declare @.backupSetId as int
select @.backupSetId = position from msdb..backupset where
database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'XYZ' )
if @.backupSetId is null begin raiserror(N'Verify failed. Backup information
for database ''XYZ'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NOREWIND
GO
And after 40% processing the backup fails with below error message. I have
been trying to find out the solution for past 2 days, but in vain. Can
someone look at below results and show me any pointers?
10 percent processed.
20 percent processed.
30 percent processed.
Msg 3634, Level 16, State 1, Line 1
The operating system returned the error '32(The process cannot access the
file because it is being used by another process.)' while attempting
'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
Msg 50000, Level 16, State 1, Line 3
Verify failed. Backup information for database 'XYZ' not found.
Msg 3250, Level 16, State 0, Line 4
The value '0' is not within range for the FILE parameter.
Msg 3013, Level 16, State 1, Line 4
VERIFY DATABASE is terminating abnormally.
On Feb 26, 5:42 am, Viking <Vik...@.discussions.microsoft.com> wrote:
> Hi everybody,
> I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
> backup a database
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT, NOINIT,
> NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
> GO
> declare @.backupSetId as int
> select @.backupSetId = position from msdb..backupset where
> database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> msdb..backupset where database_name=N'XYZ' )
> if @.backupSetId is null begin raiserror(N'Verify failed. Backup information
> for database ''XYZ'' not found.', 16, 1) end
> RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NOREWIND
> GO
> And after 40% processing the backup fails with below error message. I have
> been trying to find out the solution for past 2 days, but in vain. Can
> someone look at below results and show me any pointers?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access the
> file because it is being used by another process.)' while attempting
> 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
> Msg 50000, Level 16, State 1, Line 3
> Verify failed. Backup information for database 'XYZ' not found.
> Msg 3250, Level 16, State 0, Line 4
> The value '0' is not within range for the FILE parameter.
> Msg 3013, Level 16, State 1, Line 4
> VERIFY DATABASE is terminating abnormally.
AS the error states, some other process is grabbing the file while
your restore in in process. Are you running some anti-virus software
that isn't configured properly for a SQL Server machine? Tape backup
perhaps?
|||I should have mentioned all the testing I have done. Tracy, yes, there is
anti-virus software on the system. I have disabled the service ran the job
again and yet I get the same error. There is no tape backup connected this
server. I am just lost in finding out the cause..!
"Tracy McKibben" wrote:

> On Feb 26, 5:42 am, Viking <Vik...@.discussions.microsoft.com> wrote:
> AS the error states, some other process is grabbing the file while
> your restore in in process. Are you running some anti-virus software
> that isn't configured properly for a SQL Server machine? Tape backup
> perhaps?
>
|||I forgot to mention one more point on "your restore in in process". In fact I
have tried running the script without RESTORE..and I still see the error.
"Viking" wrote:
[vbcol=seagreen]
> I should have mentioned all the testing I have done. Tracy, yes, there is
> anti-virus software on the system. I have disabled the service ran the job
> again and yet I get the same error. There is no tape backup connected this
> server. I am just lost in finding out the cause..!
> "Tracy McKibben" wrote:
|||I ran the process monitor and found this nearest to the failure -
CreateFileF:\MSSQL\005.YINT01\XYZ\XYZ01.mdfSHARING VIOLATIONAccess:
Generic Read, Disposition: Open, Options: No Buffering, Non-Directory File,
Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
I am unable to understand why should a CreateFile should be run before the
..BAK file is written to the defined path. Infact I assumed that RESTORE
VERIFYONLY, may be the culprit, and I had removed that command too. I didn't
see any difference!
One quick update here is that this instance has FULLTEXT SEARCH. Somewhere
in the google world, I read that this failure can be related to FULLTEXT
SEARCH, but nobody gave a solution.
I hope MS - SQL TEAM guys are looking into this posting too!
"Ben UK" wrote:
[vbcol=seagreen]
> If you're backing up to a file location, you can drop a lot of the options
> you have included with the backup statement.. ..as Tracy mentioned the error
> suggests something else is accessing the bak file.. ..I've seen this error
> before on one of my backups when BackupExec had overrun and was accessing the
> bak file when the backup task kicked off.. ..try downloading something like
> filemon (from sysinternals), place a filter so you just see activity on the
> bak file, and see what other process is accessing the file..
> "Viking" wrote:
|||On Feb 26, 11:25 pm, Viking <Vik...@.discussions.microsoft.com> wrote:
> I ran the process monitor and found this nearest to the failure -
> CreateFile F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf SHARING VIOLATION Access:
> Generic Read, Disposition: Open, Options: No Buffering, Non-Directory File,
> Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
> I am unable to understand why should a CreateFile should be run before the
> .BAK file is written to the defined path. Infact I assumed that RESTORE
> VERIFYONLY, may be the culprit, and I had removed that command too. I didn't
> see any difference!
> One quick update here is that this instance has FULLTEXT SEARCH. Somewhere
> in the google world, I read that this failure can be related to FULLTEXT
> SEARCH, but nobody gave a solution.
> I hope MS - SQL TEAM guys are looking into this posting too!
>
Can you post the script that you are running? I'm confused as well,
you say you're running a backup, but the error seems to be related to
creating an MDF file.
|||Yes, I am confused myself too. Why is there a CREATEFILE when I am
running the backup script (posted already).
Anyways, here is it for your quick refrence.
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT,
NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =
10
GO
declare @.backupSetId as int
select @.backupSetId = position from msdb..backupset where
database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'XYZ' )
if @.backupSetId is null begin raiserror(N'Verify failed. Backup
information
for database ''XYZ'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
NOREWIND
GO
On Feb 27, 5:51 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> On Feb 26, 11:25 pm, Viking <Vik...@.discussions.microsoft.com> wrote:
>
>
>
>
> Can you post the script that you are running? I'm confused as well,
> you say you're running a backup, but the error seems to be related to
> creating an MDF file.
|||On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
> Yes, I am confused myself too. Why is there a CREATEFILE when I am
> running the backup script (posted already).
> Anyways, here is it for your quick refrence.
>
If you run ONLY this part, what happens? Just run this in Query
Analyzer:
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
STATS = 10
GO
|||On Feb 27, 6:09 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
>
> If you run ONLY this part, what happens? Just run this in Query
> Analyzer:
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
> STATS = 10
> GO
I am doing that right away. I shall keep you posted on the happenings.
|||On Feb 27, 6:48 pm, "VIKING" <msrvik...@.gmail.com> wrote:
> On Feb 27, 6:09 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
>
>
> I am doing that right away. I shall keep you posted on the happenings.
OK. Out of luck. I am going mad!! Here is the error ...
10 percent processed.
20 percent processed.
30 percent processed.
Msg 3634, Level 16, State 1, Line 1
The operating system returned the error '32(The process cannot access
the file because it is being used by another process.)' while
attempting 'CreateFile' on 'F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter01.mdf'.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.

BACKUP failing

Hi everybody,
I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
to
backup a database
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT,
NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =
10
GO
declare @.backupSetId as int
select @.backupSetId = position from msdb..backupset where
database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'XYZ' )
if @.backupSetId is null begin raiserror(N'Verify failed. Backup
information
for database ''XYZ'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
NOREWIND
GO
And after 40% processing the backup fails with below error message. I
have
been trying to find out the solution for past 2 days, but in vain. Can
someone look at below results and show me any pointers?
10 percent processed.
20 percent processed.
30 percent processed.
Msg 3634, Level 16, State 1, Line 1
The operating system returned the error '32(The process cannot access
the
file because it is being used by another process.)' while attempting
'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
Msg 50000, Level 16, State 1, Line 3
Verify failed. Backup information for database 'XYZ' not found.
Msg 3250, Level 16, State 0, Line 4
The value '0' is not within range for the FILE parameter.
Msg 3013, Level 16, State 1, Line 4
VERIFY DATABASE is terminating abnormally.
Viking
Can you post your database's structure? How many files group do you have?
"VIKING" <msrviking@.gmail.com> wrote in message
news:1172564216.369945.19580@.v33g2000cwv.googlegro ups.com...
> Hi everybody,
> I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
> to
> backup a database
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> NOINIT,
> NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =
> 10
> GO
> declare @.backupSetId as int
> select @.backupSetId = position from msdb..backupset where
> database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> msdb..backupset where database_name=N'XYZ' )
> if @.backupSetId is null begin raiserror(N'Verify failed. Backup
> information
> for database ''XYZ'' not found.', 16, 1) end
> RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
> NOREWIND
> GO
> And after 40% processing the backup fails with below error message. I
> have
> been trying to find out the solution for past 2 days, but in vain. Can
> someone look at below results and show me any pointers?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access
> the
> file because it is being used by another process.)' while attempting
> 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
> Msg 50000, Level 16, State 1, Line 3
> Verify failed. Backup information for database 'XYZ' not found.
> Msg 3250, Level 16, State 0, Line 4
> The value '0' is not within range for the FILE parameter.
> Msg 3013, Level 16, State 1, Line 4
> VERIFY DATABASE is terminating abnormally.
>
|||Hi
"VIKING" wrote:

> Hi everybody,
> I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
> to
> backup a database
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> NOINIT,
> NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =
> 10
> GO
> declare @.backupSetId as int
> select @.backupSetId = position from msdb..backupset where
> database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> msdb..backupset where database_name=N'XYZ' )
> if @.backupSetId is null begin raiserror(N'Verify failed. Backup
> information
> for database ''XYZ'' not found.', 16, 1) end
> RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
> NOREWIND
> GO
> And after 40% processing the backup fails with below error message. I
> have
> been trying to find out the solution for past 2 days, but in vain. Can
> someone look at below results and show me any pointers?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access
> the
> file because it is being used by another process.)' while attempting
> 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
> Msg 50000, Level 16, State 1, Line 3
> Verify failed. Backup information for database 'XYZ' not found.
> Msg 3250, Level 16, State 0, Line 4
> The value '0' is not within range for the FILE parameter.
> Msg 3013, Level 16, State 1, Line 4
> VERIFY DATABASE is terminating abnormally.
>
Has your AV software been setup correctly?
Do other backups work ok?
John
|||Here is the original db structure
name
fileid filename
Edge_Data1F:\MSSQL\005.YINT01\EDGE\EDGE_Data.mdfPRIMARY
Edge_Log2F:\MSSQL\005.YINT01\EDGE\Edge_logs.ldfNULL
Edge_log013F:\MSSQL\005.YINT01\EDGE\Edge_log01.ldfNULL
Edge_log024F:\MSSQL\005.YINT01\EDGE\Edge_log02.ldfNULL
EdgeActivityCenter015F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter01.mdfEdgeActivityCenter
EdgeActivityCenter026F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter02.mdfEdgeActivityCenter
EdgeActivityCenter037F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter03.mdfEdgeActivityCenter
EdgeActivityCenter048F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter04.mdfEdgeActivityCenter
EdgeActivityCenter059F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter05.mdfEdgeActivityCenter
Edge_data0110F:\MSSQL\005.YINT01\EDGE\EDGE_Data01.mdfPRIMARY
Edge_data0211F:\MSSQL\005.YINT01\EDGE\EDGE_Data02.mdfPRIMARY
Edge_data0312F:\MSSQL\005.YINT01\EDGE\EDGE_Data03.mdfPRIMARY
Edge_data0413F:\MSSQL\005.YINT01\EDGE\EDGE_Data04.mdfPRIMARY
EdgeActivityCenterIDX0114F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX01.mdfEdgeActivityCenterIDX
EdgeActivityCenterIDX0215F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX02.mdfEdgeActivityCenterIDX
EdgeActivityCenterIDX0316F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX03.mdfEdgeActivityCenterIDX
EdgeActivityCenterIDX0417F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX04.mdfEdgeActivityCenterIDX
EdgeActivityCenterIDX0518F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX05.mdfEdgeActivityCenterIDX
Edge_data0519F:\MSSQL\005.YINT01\EDGE\EDGE_Data05.mdfPRIMARY
and the database has 3 filegroups.
On Feb 27, 2:03 pm, "Uri Dimant" <u...@.iscar.co.il> wrote:[vbcol=seagreen]
> Viking
> Can you post your database's structure? How many files group do you have?
> "VIKING" <msrvik...@.gmail.com> wrote in message
> news:1172564216.369945.19580@.v33g2000cwv.googlegro ups.com...
>
>
|||I have the AV software working fine without bothering the backup jobs
for other databases. Infact, I tried running the backup script by
disabling the AV services.
The other db job backups are running without any issues. It is only
with this db.
On Feb 27, 2:07 pm, John Bell <jbellnewspo...@.hotmail.com> wrote:
> Hi
>
> "VIKING" wrote:
>
>
> Has your AV software been setup correctly?
> Do other backups work ok?
> John
|||Viking
I would like to see your script. i did some testing ,see if this what you
are doing
CREATE DATABASE test
GO
ALTER DATABASE test SET RECOVERY FULL
ALTER DATABASE test
ADD FILEGROUP ww_Group
GO
ALTER DATABASE test
ADD FILE
( NAME = ww,
FILENAME = 'D:\wwdat1.ndf',
SIZE = 5MB,
MAXSIZE = 100MB,
FILEGROWTH = 5MB)
TO FILEGROUP ww_Group
create table test..test(id int identity) on [primary]
create table test..test_GR(id int identity) on ww_Group
insert test..test default values
insert test..test_GR default values
SELECT * FROM test..test_GR
SELECT * FROM test..test
GO
TRUNCATE TABLE test..test_GR
BACKUP DATABASE test
TO disk='D:\Test_backup.bak'with init
RESTORE DATABASE test
from disk='D:\Test_backup.bak'WITH NORECOVERY
BACKUP DATABASE test
FILE = 'ww',
FILEGROUP = 'ww_Group'
TO disk='D:\CROUPFILES.bak'WITH INIT
BACKUP LOG test
TO disk='D:\Test__log.ldf'WITH INIT
BACKUP LOG test
TO disk='D:\Test__log.ldf' WITH NOINIT
RESTORE DATABASE test
FILE = 'ww',
FILEGROUP = 'ww_Group'
FROM DISK ='D:\CROUPFILES.bak'
WITH FILE = 1,NORECOVERY
RESTORE LOG test
FROM disk='D:\Test__log.ldf'
WITH FILE = 1, NORECOVERY
RESTORE LOG test
FROM disk='D:\Test__log.ldf'
WITH FILE = 2, RECOVERY
GO
DROP DATABASE test
"VIKING" <msrviking@.gmail.com> wrote in message
news:1172583480.230401.15680@.z35g2000cwz.googlegro ups.com...
> Here is the original db structure
> name
> fileid filename
> Edge_Data 1 F:\MSSQL\005.YINT01\EDGE\EDGE_Data.mdf PRIMARY
> Edge_Log 2 F:\MSSQL\005.YINT01\EDGE\Edge_logs.ldf NULL
> Edge_log01 3 F:\MSSQL\005.YINT01\EDGE\Edge_log01.ldf NULL
> Edge_log02 4 F:\MSSQL\005.YINT01\EDGE\Edge_log02.ldf NULL
> EdgeActivityCenter01 5 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter01.mdf EdgeActivityCenter
> EdgeActivityCenter02 6 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter02.mdf EdgeActivityCenter
> EdgeActivityCenter03 7 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter03.mdf EdgeActivityCenter
> EdgeActivityCenter04 8 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter04.mdf EdgeActivityCenter
> EdgeActivityCenter05 9 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter05.mdf EdgeActivityCenter
> Edge_data01 10 F:\MSSQL\005.YINT01\EDGE\EDGE_Data01.mdf PRIMARY
> Edge_data02 11 F:\MSSQL\005.YINT01\EDGE\EDGE_Data02.mdf PRIMARY
> Edge_data03 12 F:\MSSQL\005.YINT01\EDGE\EDGE_Data03.mdf PRIMARY
> Edge_data04 13 F:\MSSQL\005.YINT01\EDGE\EDGE_Data04.mdf PRIMARY
> EdgeActivityCenterIDX01 14 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX01.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX02 15 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX02.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX03 16 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX03.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX04 17 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX04.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX05 18 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX05.mdf EdgeActivityCenterIDX
> Edge_data05 19 F:\MSSQL\005.YINT01\EDGE\EDGE_Data05.mdf PRIMARY
> and the database has 3 filegroups.
> On Feb 27, 2:03 pm, "Uri Dimant" <u...@.iscar.co.il> wrote:
>

BACKUP failing

Hi everybody,
I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
to
backup a database
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT,
NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =
10
GO
declare @.backupSetId as int
select @.backupSetId = position from msdb..backupset where
database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'XYZ' )
if @.backupSetId is null begin raiserror(N'Verify failed. Backup
information
for database ''XYZ'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
NOREWIND
GO
And after 40% processing the backup fails with below error message. I
have
been trying to find out the solution for past 2 days, but in vain. Can
someone look at below results and show me any pointers?
10 percent processed.
20 percent processed.
30 percent processed.
Msg 3634, Level 16, State 1, Line 1
The operating system returned the error '32(The process cannot access
the
file because it is being used by another process.)' while attempting
'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
Msg 50000, Level 16, State 1, Line 3
Verify failed. Backup information for database 'XYZ' not found.
Msg 3250, Level 16, State 0, Line 4
The value '0' is not within range for the FILE parameter.
Msg 3013, Level 16, State 1, Line 4
VERIFY DATABASE is terminating abnormally.Viking
Can you post your database's structure? How many files group do you have?
"VIKING" <msrviking@.gmail.com> wrote in message
news:1172564216.369945.19580@.v33g2000cwv.googlegroups.com...
> Hi everybody,
> I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
> to
> backup a database
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMA
T,
> NOINIT,
> NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =
> 10
> GO
> declare @.backupSetId as int
> select @.backupSetId = position from msdb..backupset where
> database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> msdb..backupset where database_name=N'XYZ' )
> if @.backupSetId is null begin raiserror(N'Verify failed. Backup
> information
> for database ''XYZ'' not found.', 16, 1) end
> RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
> NOREWIND
> GO
> And after 40% processing the backup fails with below error message. I
> have
> been trying to find out the solution for past 2 days, but in vain. Can
> someone look at below results and show me any pointers?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access
> the
> file because it is being used by another process.)' while attempting
> 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
> Msg 50000, Level 16, State 1, Line 3
> Verify failed. Backup information for database 'XYZ' not found.
> Msg 3250, Level 16, State 0, Line 4
> The value '0' is not within range for the FILE parameter.
> Msg 3013, Level 16, State 1, Line 4
> VERIFY DATABASE is terminating abnormally.
>|||Hi
"VIKING" wrote:

> Hi everybody,
> I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
> to
> backup a database
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMA
T,
> NOINIT,
> NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =
> 10
> GO
> declare @.backupSetId as int
> select @.backupSetId = position from msdb..backupset where
> database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> msdb..backupset where database_name=N'XYZ' )
> if @.backupSetId is null begin raiserror(N'Verify failed. Backup
> information
> for database ''XYZ'' not found.', 16, 1) end
> RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
> NOREWIND
> GO
> And after 40% processing the backup fails with below error message. I
> have
> been trying to find out the solution for past 2 days, but in vain. Can
> someone look at below results and show me any pointers?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access
> the
> file because it is being used by another process.)' while attempting
> 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
> Msg 50000, Level 16, State 1, Line 3
> Verify failed. Backup information for database 'XYZ' not found.
> Msg 3250, Level 16, State 0, Line 4
> The value '0' is not within range for the FILE parameter.
> Msg 3013, Level 16, State 1, Line 4
> VERIFY DATABASE is terminating abnormally.
>
Has your AV software been setup correctly?
Do other backups work ok?
John|||Here is the original db structure
name
fileid filename
Edge_Data 1 F:\MSSQL\005.YINT01\EDGE\EDGE_Data.mdf PRIMARY
Edge_Log 2 F:\MSSQL\005.YINT01\EDGE\Edge_logs.ldf NULL
Edge_log01 3 F:\MSSQL\005.YINT01\EDGE\Edge_log01.ldf NULL
Edge_log02 4 F:\MSSQL\005.YINT01\EDGE\Edge_log02.ldf NULL
EdgeActivityCenter01 5 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter01.mdf EdgeActivityCenter
EdgeActivityCenter02 6 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter02.mdf EdgeActivityCenter
EdgeActivityCenter03 7 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter03.mdf EdgeActivityCenter
EdgeActivityCenter04 8 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter04.mdf EdgeActivityCenter
EdgeActivityCenter05 9 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter05.mdf EdgeActivityCenter
Edge_data01 10 F:\MSSQL\005.YINT01\EDGE\EDGE_Data01.mdf PRIMARY
Edge_data02 11 F:\MSSQL\005.YINT01\EDGE\EDGE_Data02.mdf PRIMARY
Edge_data03 12 F:\MSSQL\005.YINT01\EDGE\EDGE_Data03.mdf PRIMARY
Edge_data04 13 F:\MSSQL\005.YINT01\EDGE\EDGE_Data04.mdf PRIMARY
EdgeActivityCenterIDX01 14 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX01.mdf EdgeActivityCenterIDX
EdgeActivityCenterIDX02 15 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX02.mdf EdgeActivityCenterIDX
EdgeActivityCenterIDX03 16 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX03.mdf EdgeActivityCenterIDX
EdgeActivityCenterIDX04 17 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX04.mdf EdgeActivityCenterIDX
EdgeActivityCenterIDX05 18 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX05.mdf EdgeActivityCenterIDX
Edge_data05 19 F:\MSSQL\005.YINT01\EDGE\EDGE_Data05.mdf PRIMARY
and the database has 3 filegroups.
On Feb 27, 2:03 pm, "Uri Dimant" <u...@.iscar.co.il> wrote:[vbcol=seagreen]
> Viking
> Can you post your database's structure? How many files group do you have?
> "VIKING" <msrvik...@.gmail.com> wrote in message
> news:1172564216.369945.19580@.v33g2000cwv.googlegroups.com...
>
>
>
>|||I have the AV software working fine without bothering the backup jobs
for other databases. Infact, I tried running the backup script by
disabling the AV services.
The other db job backups are running without any issues. It is only
with this db.
On Feb 27, 2:07 pm, John Bell <jbellnewspo...@.hotmail.com> wrote:
> Hi
>
> "VIKING" wrote:
>
>
>
> Has your AV software been setup correctly?
> Do other backups work ok?
> John|||Viking
I would like to see your script. i did some testing ,see if this what you
are doing
CREATE DATABASE test
GO
ALTER DATABASE test SET RECOVERY FULL
ALTER DATABASE test
ADD FILEGROUP ww_Group
GO
ALTER DATABASE test
ADD FILE
( NAME = ww,
FILENAME = 'D:\wwdat1.ndf',
SIZE = 5MB,
MAXSIZE = 100MB,
FILEGROWTH = 5MB)
TO FILEGROUP ww_Group
create table test..test(id int identity) on [primary]
create table test..test_GR(id int identity) on ww_Group
insert test..test default values
insert test..test_GR default values
SELECT * FROM test..test_GR
SELECT * FROM test..test
GO
TRUNCATE TABLE test..test_GR
BACKUP DATABASE test
TO disk='D:\Test_backup.bak'with init
RESTORE DATABASE test
from disk='D:\Test_backup.bak'WITH NORECOVERY
BACKUP DATABASE test
FILE = 'ww',
FILEGROUP = 'ww_Group'
TO disk='D:\CROUPFILES.bak'WITH INIT
BACKUP LOG test
TO disk='D:\Test__log.ldf'WITH INIT
BACKUP LOG test
TO disk='D:\Test__log.ldf' WITH NOINIT
RESTORE DATABASE test
FILE = 'ww',
FILEGROUP = 'ww_Group'
FROM DISK ='D:\CROUPFILES.bak'
WITH FILE = 1,NORECOVERY
RESTORE LOG test
FROM disk='D:\Test__log.ldf'
WITH FILE = 1, NORECOVERY
RESTORE LOG test
FROM disk='D:\Test__log.ldf'
WITH FILE = 2, RECOVERY
GO
DROP DATABASE test
"VIKING" <msrviking@.gmail.com> wrote in message
news:1172583480.230401.15680@.z35g2000cwz.googlegroups.com...
> Here is the original db structure
> name
> fileid filename
> Edge_Data 1 F:\MSSQL\005.YINT01\EDGE\EDGE_Data.mdf PRIMARY
> Edge_Log 2 F:\MSSQL\005.YINT01\EDGE\Edge_logs.ldf NULL
> Edge_log01 3 F:\MSSQL\005.YINT01\EDGE\Edge_log01.ldf NULL
> Edge_log02 4 F:\MSSQL\005.YINT01\EDGE\Edge_log02.ldf NULL
> EdgeActivityCenter01 5 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter01.mdf EdgeActivityCenter
> EdgeActivityCenter02 6 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter02.mdf EdgeActivityCenter
> EdgeActivityCenter03 7 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter03.mdf EdgeActivityCenter
> EdgeActivityCenter04 8 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter04.mdf EdgeActivityCenter
> EdgeActivityCenter05 9 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter05.mdf EdgeActivityCenter
> Edge_data01 10 F:\MSSQL\005.YINT01\EDGE\EDGE_Data01.mdf PRIMARY
> Edge_data02 11 F:\MSSQL\005.YINT01\EDGE\EDGE_Data02.mdf PRIMARY
> Edge_data03 12 F:\MSSQL\005.YINT01\EDGE\EDGE_Data03.mdf PRIMARY
> Edge_data04 13 F:\MSSQL\005.YINT01\EDGE\EDGE_Data04.mdf PRIMARY
> EdgeActivityCenterIDX01 14 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX01.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX02 15 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX02.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX03 16 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX03.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX04 17 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX04.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX05 18 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX05.mdf EdgeActivityCenterIDX
> Edge_data05 19 F:\MSSQL\005.YINT01\EDGE\EDGE_Data05.mdf PRIMARY
> and the database has 3 filegroups.
> On Feb 27, 2:03 pm, "Uri Dimant" <u...@.iscar.co.il> wrote:
>

Backup failing

Hi everybody,
I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
backup a database
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT,
NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
declare @.backupSetId as int
select @.backupSetId = position from msdb..backupset where
database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'XYZ' )
if @.backupSetId is null begin raiserror(N'Verify failed. Backup information
for database ''XYZ'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NOREWI
ND
GO
And after 40% processing the backup fails with below error message. I have
been trying to find out the solution for past 2 days, but in vain. Can
someone look at below results and show me any pointers?
10 percent processed.
20 percent processed.
30 percent processed.
Msg 3634, Level 16, State 1, Line 1
The operating system returned the error '32(The process cannot access the
file because it is being used by another process.)' while attempting
'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
Msg 50000, Level 16, State 1, Line 3
Verify failed. Backup information for database 'XYZ' not found.
Msg 3250, Level 16, State 0, Line 4
The value '0' is not within range for the FILE parameter.
Msg 3013, Level 16, State 1, Line 4
VERIFY DATABASE is terminating abnormally.On Feb 26, 5:42 am, Viking <Vik...@.discussions.microsoft.com> wrote:
> Hi everybody,
> I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
> backup a database
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMA
T, NOINIT,
> NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
> GO
> declare @.backupSetId as int
> select @.backupSetId = position from msdb..backupset where
> database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> msdb..backupset where database_name=N'XYZ' )
> if @.backupSetId is null begin raiserror(N'Verify failed. Backup informatio
n
> for database ''XYZ'' not found.', 16, 1) end
> RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NORE
WIND
> GO
> And after 40% processing the backup fails with below error message. I have
> been trying to find out the solution for past 2 days, but in vain. Can
> someone look at below results and show me any pointers?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access the
> file because it is being used by another process.)' while attempting
> 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
> Msg 50000, Level 16, State 1, Line 3
> Verify failed. Backup information for database 'XYZ' not found.
> Msg 3250, Level 16, State 0, Line 4
> The value '0' is not within range for the FILE parameter.
> Msg 3013, Level 16, State 1, Line 4
> VERIFY DATABASE is terminating abnormally.
AS the error states, some other process is grabbing the file while
your restore in in process. Are you running some anti-virus software
that isn't configured properly for a SQL Server machine? Tape backup
perhaps?|||I should have mentioned all the testing I have done. Tracy, yes, there is
anti-virus software on the system. I have disabled the service ran the job
again and yet I get the same error. There is no tape backup connected this
server. I am just lost in finding out the cause..!
"Tracy McKibben" wrote:

> On Feb 26, 5:42 am, Viking <Vik...@.discussions.microsoft.com> wrote:
> AS the error states, some other process is grabbing the file while
> your restore in in process. Are you running some anti-virus software
> that isn't configured properly for a SQL Server machine? Tape backup
> perhaps?
>|||I forgot to mention one more point on "your restore in in process". In fact
I
have tried running the script without RESTORE..and I still see the error.
"Viking" wrote:
[vbcol=seagreen]
> I should have mentioned all the testing I have done. Tracy, yes, there is
> anti-virus software on the system. I have disabled the service ran the job
> again and yet I get the same error. There is no tape backup connected thi
s
> server. I am just lost in finding out the cause..!
> "Tracy McKibben" wrote:
>|||If you're backing up to a file location, you can drop a lot of the options
you have included with the backup statement.. ..as Tracy mentioned the erro
r
suggests something else is accessing the bak file.. ..I've seen this error
before on one of my backups when BackupExec had overrun and was accessing th
e
bak file when the backup task kicked off.. ..try downloading something like
filemon (from sysinternals), place a filter so you just see activity on the
bak file, and see what other process is accessing the file..
"Viking" wrote:
[vbcol=seagreen]
> I forgot to mention one more point on "your restore in in process". In fac
t I
> have tried running the script without RESTORE..and I still see the error.
> "Viking" wrote:
>|||I ran the process monitor and found this nearest to the failure -
CreateFile F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf SHARING VIOLATION Access:
Generic Read, Disposition: Open, Options: No Buffering, Non-Directory File,
Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
I am unable to understand why should a CreateFile should be run before the
.BAK file is written to the defined path. Infact I assumed that RESTORE
VERIFYONLY, may be the culprit, and I had removed that command too. I didn't
see any difference!
One quick update here is that this instance has FULLTEXT SEARCH. Somewhere
in the google world, I read that this failure can be related to FULLTEXT
SEARCH, but nobody gave a solution.
I hope MS - SQL TEAM guys are looking into this posting too!
"Ben UK" wrote:
[vbcol=seagreen]
> If you're backing up to a file location, you can drop a lot of the options
> you have included with the backup statement.. ..as Tracy mentioned the er
ror
> suggests something else is accessing the bak file.. ..I've seen this erro
r
> before on one of my backups when BackupExec had overrun and was accessing
the
> bak file when the backup task kicked off.. ..try downloading something li
ke
> filemon (from sysinternals), place a filter so you just see activity on th
e
> bak file, and see what other process is accessing the file..
> "Viking" wrote:
>|||On Feb 26, 11:25 pm, Viking <Vik...@.discussions.microsoft.com> wrote:
> I ran the process monitor and found this nearest to the failure -
> CreateFile F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf SHARING VIOLATION
Access:
> Generic Read, Disposition: Open, Options: No Buffering, Non-Directory File
,
> Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n
/a
> I am unable to understand why should a CreateFile should be run before the
> .BAK file is written to the defined path. Infact I assumed that RESTORE
> VERIFYONLY, may be the culprit, and I had removed that command too. I didn
't
> see any difference!
> One quick update here is that this instance has FULLTEXT SEARCH. Somewhere
> in the google world, I read that this failure can be related to FULLTEXT
> SEARCH, but nobody gave a solution.
> I hope MS - SQL TEAM guys are looking into this posting too!
>
Can you post the script that you are running? I'm confused as well,
you say you're running a backup, but the error seems to be related to
creating an MDF file.|||Yes, I am confused myself too. Why is there a CREATEFILE when I am
running the backup script (posted already).
Anyways, here is it for your quick refrence.
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT,
NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =
10
GO
declare @.backupSetId as int
select @.backupSetId = position from msdb..backupset where
database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'XYZ' )
if @.backupSetId is null begin raiserror(N'Verify failed. Backup
information
for database ''XYZ'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
NOREWIND
GO
On Feb 27, 5:51 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> On Feb 26, 11:25 pm, Viking <Vik...@.discussions.microsoft.com> wrote:
>
>
>
>
>
>
> Can you post the script that you are running? I'm confused as well,
> you say you're running a backup, but the error seems to be related to
> creating an MDF file.|||On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
> Yes, I am confused myself too. Why is there a CREATEFILE when I am
> running the backup script (posted already).
> Anyways, here is it for your quick refrence.
>
If you run ONLY this part, what happens? Just run this in Query
Analyzer:
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
STATS = 10
GO|||On Feb 27, 6:09 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
>
>
> If you run ONLY this part, what happens? Just run this in Query
> Analyzer:
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMA
T,
> NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
> STATS = 10
> GO
I am doing that right away. I shall keep you posted on the happenings.

Backup failing

Hi everybody,
I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
backup a database
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT, NOINIT,
NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
declare @.backupSetId as int
select @.backupSetId = position from msdb..backupset where
database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'XYZ' )
if @.backupSetId is null begin raiserror(N'Verify failed. Backup information
for database ''XYZ'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NOREWIND
GO
And after 40% processing the backup fails with below error message. I have
been trying to find out the solution for past 2 days, but in vain. Can
someone look at below results and show me any pointers?
10 percent processed.
20 percent processed.
30 percent processed.
Msg 3634, Level 16, State 1, Line 1
The operating system returned the error '32(The process cannot access the
file because it is being used by another process.)' while attempting
'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
Msg 50000, Level 16, State 1, Line 3
Verify failed. Backup information for database 'XYZ' not found.
Msg 3250, Level 16, State 0, Line 4
The value '0' is not within range for the FILE parameter.
Msg 3013, Level 16, State 1, Line 4
VERIFY DATABASE is terminating abnormally.On Feb 26, 5:42 am, Viking <Vik...@.discussions.microsoft.com> wrote:
> Hi everybody,
> I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
> backup a database
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT, NOINIT,
> NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
> GO
> declare @.backupSetId as int
> select @.backupSetId = position from msdb..backupset where
> database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> msdb..backupset where database_name=N'XYZ' )
> if @.backupSetId is null begin raiserror(N'Verify failed. Backup information
> for database ''XYZ'' not found.', 16, 1) end
> RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NOREWIND
> GO
> And after 40% processing the backup fails with below error message. I have
> been trying to find out the solution for past 2 days, but in vain. Can
> someone look at below results and show me any pointers?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access the
> file because it is being used by another process.)' while attempting
> 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
> Msg 50000, Level 16, State 1, Line 3
> Verify failed. Backup information for database 'XYZ' not found.
> Msg 3250, Level 16, State 0, Line 4
> The value '0' is not within range for the FILE parameter.
> Msg 3013, Level 16, State 1, Line 4
> VERIFY DATABASE is terminating abnormally.
AS the error states, some other process is grabbing the file while
your restore in in process. Are you running some anti-virus software
that isn't configured properly for a SQL Server machine? Tape backup
perhaps?|||I should have mentioned all the testing I have done. Tracy, yes, there is
anti-virus software on the system. I have disabled the service ran the job
again and yet I get the same error. There is no tape backup connected this
server. I am just lost in finding out the cause..!
"Tracy McKibben" wrote:
> On Feb 26, 5:42 am, Viking <Vik...@.discussions.microsoft.com> wrote:
> > Hi everybody,
> >
> > I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
> > backup a database
> >
> > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT, NOINIT,
> > NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
> > GO
> > declare @.backupSetId as int
> > select @.backupSetId = position from msdb..backupset where
> > database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> > msdb..backupset where database_name=N'XYZ' )
> > if @.backupSetId is null begin raiserror(N'Verify failed. Backup information
> > for database ''XYZ'' not found.', 16, 1) end
> > RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NOREWIND
> > GO
> >
> > And after 40% processing the backup fails with below error message. I have
> > been trying to find out the solution for past 2 days, but in vain. Can
> > someone look at below results and show me any pointers?
> > 10 percent processed.
> > 20 percent processed.
> > 30 percent processed.
> > Msg 3634, Level 16, State 1, Line 1
> > The operating system returned the error '32(The process cannot access the
> > file because it is being used by another process.)' while attempting
> > 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> > Msg 3013, Level 16, State 1, Line 1
> > BACKUP DATABASE is terminating abnormally.
> > Msg 50000, Level 16, State 1, Line 3
> > Verify failed. Backup information for database 'XYZ' not found.
> > Msg 3250, Level 16, State 0, Line 4
> > The value '0' is not within range for the FILE parameter.
> > Msg 3013, Level 16, State 1, Line 4
> > VERIFY DATABASE is terminating abnormally.
> AS the error states, some other process is grabbing the file while
> your restore in in process. Are you running some anti-virus software
> that isn't configured properly for a SQL Server machine? Tape backup
> perhaps?
>|||I forgot to mention one more point on "your restore in in process". In fact I
have tried running the script without RESTORE..and I still see the error.
"Viking" wrote:
> I should have mentioned all the testing I have done. Tracy, yes, there is
> anti-virus software on the system. I have disabled the service ran the job
> again and yet I get the same error. There is no tape backup connected this
> server. I am just lost in finding out the cause..!
> "Tracy McKibben" wrote:
> > On Feb 26, 5:42 am, Viking <Vik...@.discussions.microsoft.com> wrote:
> > > Hi everybody,
> > >
> > > I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
> > > backup a database
> > >
> > > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT, NOINIT,
> > > NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
> > > GO
> > > declare @.backupSetId as int
> > > select @.backupSetId = position from msdb..backupset where
> > > database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> > > msdb..backupset where database_name=N'XYZ' )
> > > if @.backupSetId is null begin raiserror(N'Verify failed. Backup information
> > > for database ''XYZ'' not found.', 16, 1) end
> > > RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NOREWIND
> > > GO
> > >
> > > And after 40% processing the backup fails with below error message. I have
> > > been trying to find out the solution for past 2 days, but in vain. Can
> > > someone look at below results and show me any pointers?
> > > 10 percent processed.
> > > 20 percent processed.
> > > 30 percent processed.
> > > Msg 3634, Level 16, State 1, Line 1
> > > The operating system returned the error '32(The process cannot access the
> > > file because it is being used by another process.)' while attempting
> > > 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> > > Msg 3013, Level 16, State 1, Line 1
> > > BACKUP DATABASE is terminating abnormally.
> > > Msg 50000, Level 16, State 1, Line 3
> > > Verify failed. Backup information for database 'XYZ' not found.
> > > Msg 3250, Level 16, State 0, Line 4
> > > The value '0' is not within range for the FILE parameter.
> > > Msg 3013, Level 16, State 1, Line 4
> > > VERIFY DATABASE is terminating abnormally.
> >
> > AS the error states, some other process is grabbing the file while
> > your restore in in process. Are you running some anti-virus software
> > that isn't configured properly for a SQL Server machine? Tape backup
> > perhaps?
> >
> >|||If you're backing up to a file location, you can drop a lot of the options
you have included with the backup statement.. ..as Tracy mentioned the error
suggests something else is accessing the bak file.. ..I've seen this error
before on one of my backups when BackupExec had overrun and was accessing the
bak file when the backup task kicked off.. ..try downloading something like
filemon (from sysinternals), place a filter so you just see activity on the
bak file, and see what other process is accessing the file..
"Viking" wrote:
> I forgot to mention one more point on "your restore in in process". In fact I
> have tried running the script without RESTORE..and I still see the error.
> "Viking" wrote:
> > I should have mentioned all the testing I have done. Tracy, yes, there is
> > anti-virus software on the system. I have disabled the service ran the job
> > again and yet I get the same error. There is no tape backup connected this
> > server. I am just lost in finding out the cause..!
> >
> > "Tracy McKibben" wrote:
> >
> > > On Feb 26, 5:42 am, Viking <Vik...@.discussions.microsoft.com> wrote:
> > > > Hi everybody,
> > > >
> > > > I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
> > > > backup a database
> > > >
> > > > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT, NOINIT,
> > > > NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
> > > > GO
> > > > declare @.backupSetId as int
> > > > select @.backupSetId = position from msdb..backupset where
> > > > database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> > > > msdb..backupset where database_name=N'XYZ' )
> > > > if @.backupSetId is null begin raiserror(N'Verify failed. Backup information
> > > > for database ''XYZ'' not found.', 16, 1) end
> > > > RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NOREWIND
> > > > GO
> > > >
> > > > And after 40% processing the backup fails with below error message. I have
> > > > been trying to find out the solution for past 2 days, but in vain. Can
> > > > someone look at below results and show me any pointers?
> > > > 10 percent processed.
> > > > 20 percent processed.
> > > > 30 percent processed.
> > > > Msg 3634, Level 16, State 1, Line 1
> > > > The operating system returned the error '32(The process cannot access the
> > > > file because it is being used by another process.)' while attempting
> > > > 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> > > > Msg 3013, Level 16, State 1, Line 1
> > > > BACKUP DATABASE is terminating abnormally.
> > > > Msg 50000, Level 16, State 1, Line 3
> > > > Verify failed. Backup information for database 'XYZ' not found.
> > > > Msg 3250, Level 16, State 0, Line 4
> > > > The value '0' is not within range for the FILE parameter.
> > > > Msg 3013, Level 16, State 1, Line 4
> > > > VERIFY DATABASE is terminating abnormally.
> > >
> > > AS the error states, some other process is grabbing the file while
> > > your restore in in process. Are you running some anti-virus software
> > > that isn't configured properly for a SQL Server machine? Tape backup
> > > perhaps?
> > >
> > >|||I ran the process monitor and found this nearest to the failure -
CreateFile F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf SHARING VIOLATION Access:
Generic Read, Disposition: Open, Options: No Buffering, Non-Directory File,
Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
I am unable to understand why should a CreateFile should be run before the
.BAK file is written to the defined path. Infact I assumed that RESTORE
VERIFYONLY, may be the culprit, and I had removed that command too. I didn't
see any difference!
One quick update here is that this instance has FULLTEXT SEARCH. Somewhere
in the google world, I read that this failure can be related to FULLTEXT
SEARCH, but nobody gave a solution.
I hope MS - SQL TEAM guys are looking into this posting too!
"Ben UK" wrote:
> If you're backing up to a file location, you can drop a lot of the options
> you have included with the backup statement.. ..as Tracy mentioned the error
> suggests something else is accessing the bak file.. ..I've seen this error
> before on one of my backups when BackupExec had overrun and was accessing the
> bak file when the backup task kicked off.. ..try downloading something like
> filemon (from sysinternals), place a filter so you just see activity on the
> bak file, and see what other process is accessing the file..
> "Viking" wrote:
> > I forgot to mention one more point on "your restore in in process". In fact I
> > have tried running the script without RESTORE..and I still see the error.
> >
> > "Viking" wrote:
> >
> > > I should have mentioned all the testing I have done. Tracy, yes, there is
> > > anti-virus software on the system. I have disabled the service ran the job
> > > again and yet I get the same error. There is no tape backup connected this
> > > server. I am just lost in finding out the cause..!
> > >
> > > "Tracy McKibben" wrote:
> > >
> > > > On Feb 26, 5:42 am, Viking <Vik...@.discussions.microsoft.com> wrote:
> > > > > Hi everybody,
> > > > >
> > > > > I have the below script on SQL Server 2005, SP1 on Windows 2003 Server to
> > > > > backup a database
> > > > >
> > > > > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT, NOINIT,
> > > > > NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
> > > > > GO
> > > > > declare @.backupSetId as int
> > > > > select @.backupSetId = position from msdb..backupset where
> > > > > database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> > > > > msdb..backupset where database_name=N'XYZ' )
> > > > > if @.backupSetId is null begin raiserror(N'Verify failed. Backup information
> > > > > for database ''XYZ'' not found.', 16, 1) end
> > > > > RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD, NOREWIND
> > > > > GO
> > > > >
> > > > > And after 40% processing the backup fails with below error message. I have
> > > > > been trying to find out the solution for past 2 days, but in vain. Can
> > > > > someone look at below results and show me any pointers?
> > > > > 10 percent processed.
> > > > > 20 percent processed.
> > > > > 30 percent processed.
> > > > > Msg 3634, Level 16, State 1, Line 1
> > > > > The operating system returned the error '32(The process cannot access the
> > > > > file because it is being used by another process.)' while attempting
> > > > > 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> > > > > Msg 3013, Level 16, State 1, Line 1
> > > > > BACKUP DATABASE is terminating abnormally.
> > > > > Msg 50000, Level 16, State 1, Line 3
> > > > > Verify failed. Backup information for database 'XYZ' not found.
> > > > > Msg 3250, Level 16, State 0, Line 4
> > > > > The value '0' is not within range for the FILE parameter.
> > > > > Msg 3013, Level 16, State 1, Line 4
> > > > > VERIFY DATABASE is terminating abnormally.
> > > >
> > > > AS the error states, some other process is grabbing the file while
> > > > your restore in in process. Are you running some anti-virus software
> > > > that isn't configured properly for a SQL Server machine? Tape backup
> > > > perhaps?
> > > >
> > > >|||On Feb 26, 11:25 pm, Viking <Vik...@.discussions.microsoft.com> wrote:
> I ran the process monitor and found this nearest to the failure -
> CreateFile F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf SHARING VIOLATION Access:
> Generic Read, Disposition: Open, Options: No Buffering, Non-Directory File,
> Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
> I am unable to understand why should a CreateFile should be run before the
> .BAK file is written to the defined path. Infact I assumed that RESTORE
> VERIFYONLY, may be the culprit, and I had removed that command too. I didn't
> see any difference!
> One quick update here is that this instance has FULLTEXT SEARCH. Somewhere
> in the google world, I read that this failure can be related to FULLTEXT
> SEARCH, but nobody gave a solution.
> I hope MS - SQL TEAM guys are looking into this posting too!
>
Can you post the script that you are running? I'm confused as well,
you say you're running a backup, but the error seems to be related to
creating an MDF file.|||Yes, I am confused myself too. Why is there a CREATEFILE when I am
running the backup script (posted already).
Anyways, here is it for your quick refrence.
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT,
NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =10
GO
declare @.backupSetId as int
select @.backupSetId = position from msdb..backupset where
database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'XYZ' )
if @.backupSetId is null begin raiserror(N'Verify failed. Backup
information
for database ''XYZ'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
NOREWIND
GO
On Feb 27, 5:51 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> On Feb 26, 11:25 pm, Viking <Vik...@.discussions.microsoft.com> wrote:
>
> > I ran the process monitor and found this nearest to the failure -
> > CreateFile F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf SHARING VIOLATION Access:
> > Generic Read, Disposition: Open, Options: No Buffering, Non-Directory File,
> > Open No Recall, Attributes: n/a, ShareMode: Read, Write, AllocationSize: n/a
> > I am unable to understand why should a CreateFile should be run before the
> > .BAK file is written to the defined path. Infact I assumed that RESTORE
> > VERIFYONLY, may be the culprit, and I had removed that command too. I didn't
> > see any difference!
> > One quick update here is that this instance has FULLTEXT SEARCH. Somewhere
> > in the google world, I read that this failure can be related to FULLTEXT
> > SEARCH, but nobody gave a solution.
> > I hope MS - SQL TEAM guys are looking into this posting too!
> Can you post the script that you are running? I'm confused as well,
> you say you're running a backup, but the error seems to be related to
> creating an MDF file.|||On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
> Yes, I am confused myself too. Why is there a CREATEFILE when I am
> running the backup script (posted already).
> Anyways, here is it for your quick refrence.
>
If you run ONLY this part, what happens? Just run this in Query
Analyzer:
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
STATS = 10
GO|||On Feb 27, 6:09 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
> > Yes, I am confused myself too. Why is there a CREATEFILE when I am
> > running the backup script (posted already).
> > Anyways, here is it for your quick refrence.
> If you run ONLY this part, what happens? Just run this in Query
> Analyzer:
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
> STATS = 10
> GO
I am doing that right away. I shall keep you posted on the happenings.|||On Feb 27, 6:48 pm, "VIKING" <msrvik...@.gmail.com> wrote:
> On Feb 27, 6:09 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> > On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
> > > Yes, I am confused myself too. Why is there a CREATEFILE when I am
> > > running the backup script (posted already).
> > > Anyways, here is it for your quick refrence.
> > If you run ONLY this part, what happens? Just run this in Query
> > Analyzer:
> > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> > NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
> > STATS = 10
> > GO
> I am doing that right away. I shall keep you posted on the happenings.
OK. Out of luck. I am going mad!! Here is the error ...
10 percent processed.
20 percent processed.
30 percent processed.
Msg 3634, Level 16, State 1, Line 1
The operating system returned the error '32(The process cannot access
the file because it is being used by another process.)' while
attempting 'CreateFile' on 'F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter01.mdf'.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.|||On Feb 27, 8:14 am, "VIKING" <msrvik...@.gmail.com> wrote:
> On Feb 27, 6:48 pm, "VIKING" <msrvik...@.gmail.com> wrote:
>
> > On Feb 27, 6:09 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> > > On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
> > > > Yes, I am confused myself too. Why is there a CREATEFILE when I am
> > > > running the backup script (posted already).
> > > > Anyways, here is it for your quick refrence.
> > > If you run ONLY this part, what happens? Just run this in Query
> > > Analyzer:
> > > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> > > NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
> > > STATS = 10
> > > GO
> > I am doing that right away. I shall keep you posted on the happenings.
> OK. Out of luck. I am going mad!! Here is the error ...
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access
> the file because it is being used by another process.)' while
> attempting 'CreateFile' on 'F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
Do you have log backups scheduled to run, or full-text indexing
enabled?|||"VIKING" <msrviking@.gmail.com> wrote in message
news:1172585698.445953.28820@.m58g2000cwm.googlegroups.com...
> On Feb 27, 6:48 pm, "VIKING" <msrvik...@.gmail.com> wrote:
>> On Feb 27, 6:09 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
>> > On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
>> > > Yes, I am confused myself too. Why is there a CREATEFILE when I am
>> > > running the backup script (posted already).
>> > > Anyways, here is it for your quick refrence.
>> > If you run ONLY this part, what happens? Just run this in Query
>> > Analyzer:
>> > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
>> > NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
>> > STATS = 10
>> > GO
>> I am doing that right away. I shall keep you posted on the happenings.
> OK. Out of luck. I am going mad!! Here is the error ...
>
Ok, just to ask the obvious question,
I assume above [XYZ] are just place-holders?
What's the REAL names and paths you're using?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access
> the file because it is being used by another process.)' while
> attempting 'CreateFile' on 'F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
>
Greg Moore
SQL Server DBA Consulting
sql (at) greenms.com http://www.greenms.com|||On Feb 27, 7:36 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> On Feb 27, 8:14 am, "VIKING" <msrvik...@.gmail.com> wrote:
>
> > On Feb 27, 6:48 pm, "VIKING" <msrvik...@.gmail.com> wrote:
> > > On Feb 27, 6:09 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> > > > On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
> > > > > Yes, I am confused myself too. Why is there a CREATEFILE when I am
> > > > > running the backup script (posted already).
> > > > > Anyways, here is it for your quick refrence.
> > > > If you run ONLY this part, what happens? Just run this in Query
> > > > Analyzer:
> > > > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> > > > NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
> > > > STATS = 10
> > > > GO
> > > I am doing that right away. I shall keep you posted on the happenings.
> > OK. Out of luck. I am going mad!! Here is the error ...
> > 10 percent processed.
> > 20 percent processed.
> > 30 percent processed.
> > Msg 3634, Level 16, State 1, Line 1
> > The operating system returned the error '32(The process cannot access
> > the file because it is being used by another process.)' while
> > attempting 'CreateFile' on 'F:\MSSQL\005.YINT01\EDGE
> > \EdgeActivityCenter01.mdf'.
> > Msg 3013, Level 16, State 1, Line 1
> > BACKUP DATABASE is terminating abnormally.
> Do you have log backups scheduled to run, or full-text indexing
> enabled?
Yes I have full text indexing enabled on this database. I knew
something was happening around this..but couldn't find the solution.|||On Feb 27, 7:36 pm, "Greg D. Moore \(Strider\)"
<mooregr_deletet...@.greenms.com> wrote:
> "VIKING" <msrvik...@.gmail.com> wrote in message
> news:1172585698.445953.28820@.m58g2000cwm.googlegroups.com...
>
> > On Feb 27, 6:48 pm, "VIKING" <msrvik...@.gmail.com> wrote:
> >> On Feb 27, 6:09 pm, "Tracy McKibben" <tracy.mckib...@.gmail.com> wrote:
> >> > On Feb 27, 6:59 am, "VIKING" <msrvik...@.gmail.com> wrote:
> >> > > Yes, I am confused myself too. Why is there a CREATEFILE when I am
> >> > > running the backup script (posted already).
> >> > > Anyways, here is it for your quick refrence.
> >> > If you run ONLY this part, what happens? Just run this in Query
> >> > Analyzer:
> >> > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> >> > NOINIT, NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD,
> >> > STATS = 10
> >> > GO
> >> I am doing that right away. I shall keep you posted on the happenings.
> > OK. Out of luck. I am going mad!! Here is the error ...
> Ok, just to ask the obvious question,
> I assume above [XYZ] are just place-holders?
> What's the REAL names and paths you're using?
> > 10 percent processed.
> > 20 percent processed.
> > 30 percent processed.
> > Msg 3634, Level 16, State 1, Line 1
> > The operating system returned the error '32(The process cannot access
> > the file because it is being used by another process.)' while
> > attempting 'CreateFile' on 'F:\MSSQL\005.YINT01\EDGE
> > \EdgeActivityCenter01.mdf'.
> > Msg 3013, Level 16, State 1, Line 1
> > BACKUP DATABASE is terminating abnormally.
> --
> Greg Moore
> SQL Server DBA Consulting
> sql (at) greenms.com http://www.greenms.com
This is the script I am using for backing up,
BACKUP DATABASE [EDGE] FILEGROUP = N'PRIMARY' TO [EDGE] WITH NOFORMAT,
NOINIT,
NAME = N'EDGE-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS
= 10
GO
I am backing db thro' a backup device [EDGE], and the path of the
backup device is
D:\FT005.YINT01.USERDBBACKUP\EDGE, whereas the data files sit in F:
\MSSQL\005.YINT01\.
I hope this is the information you were looking for.|||On Feb 27, 9:01 am, "VIKING" <msrvik...@.gmail.com> wrote:
> Yes I have full text indexing enabled on this database. I knew
> something was happening around this..but couldn't find the solution.
That's as far as I got too. I see other people have run into the same
problem, but I don't see where any of them resolved it. I have
nothing new to suggest, aside from installing SP2 (assuming this is
SQL 2005) or opening a call to PSS.sql

BACKUP failing

Hi everybody,
I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
to
backup a database
BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
NOINIT,
NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS = 10
GO
declare @.backupSetId as int
select @.backupSetId = position from msdb..backupset where
database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
msdb..backupset where database_name=N'XYZ' )
if @.backupSetId is null begin raiserror(N'Verify failed. Backup
information
for database ''XYZ'' not found.', 16, 1) end
RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
NOREWIND
GO
And after 40% processing the backup fails with below error message. I
have
been trying to find out the solution for past 2 days, but in vain. Can
someone look at below results and show me any pointers?
10 percent processed.
20 percent processed.
30 percent processed.
Msg 3634, Level 16, State 1, Line 1
The operating system returned the error '32(The process cannot access
the
file because it is being used by another process.)' while attempting
'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
Msg 3013, Level 16, State 1, Line 1
BACKUP DATABASE is terminating abnormally.
Msg 50000, Level 16, State 1, Line 3
Verify failed. Backup information for database 'XYZ' not found.
Msg 3250, Level 16, State 0, Line 4
The value '0' is not within range for the FILE parameter.
Msg 3013, Level 16, State 1, Line 4
VERIFY DATABASE is terminating abnormally.Viking
Can you post your database's structure? How many files group do you have?
"VIKING" <msrviking@.gmail.com> wrote in message
news:1172564216.369945.19580@.v33g2000cwv.googlegroups.com...
> Hi everybody,
> I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
> to
> backup a database
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> NOINIT,
> NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS => 10
> GO
> declare @.backupSetId as int
> select @.backupSetId = position from msdb..backupset where
> database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> msdb..backupset where database_name=N'XYZ' )
> if @.backupSetId is null begin raiserror(N'Verify failed. Backup
> information
> for database ''XYZ'' not found.', 16, 1) end
> RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
> NOREWIND
> GO
> And after 40% processing the backup fails with below error message. I
> have
> been trying to find out the solution for past 2 days, but in vain. Can
> someone look at below results and show me any pointers?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access
> the
> file because it is being used by another process.)' while attempting
> 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
> Msg 50000, Level 16, State 1, Line 3
> Verify failed. Backup information for database 'XYZ' not found.
> Msg 3250, Level 16, State 0, Line 4
> The value '0' is not within range for the FILE parameter.
> Msg 3013, Level 16, State 1, Line 4
> VERIFY DATABASE is terminating abnormally.
>|||Hi
"VIKING" wrote:
> Hi everybody,
> I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
> to
> backup a database
> BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> NOINIT,
> NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS => 10
> GO
> declare @.backupSetId as int
> select @.backupSetId = position from msdb..backupset where
> database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> msdb..backupset where database_name=N'XYZ' )
> if @.backupSetId is null begin raiserror(N'Verify failed. Backup
> information
> for database ''XYZ'' not found.', 16, 1) end
> RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
> NOREWIND
> GO
> And after 40% processing the backup fails with below error message. I
> have
> been trying to find out the solution for past 2 days, but in vain. Can
> someone look at below results and show me any pointers?
> 10 percent processed.
> 20 percent processed.
> 30 percent processed.
> Msg 3634, Level 16, State 1, Line 1
> The operating system returned the error '32(The process cannot access
> the
> file because it is being used by another process.)' while attempting
> 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> Msg 3013, Level 16, State 1, Line 1
> BACKUP DATABASE is terminating abnormally.
> Msg 50000, Level 16, State 1, Line 3
> Verify failed. Backup information for database 'XYZ' not found.
> Msg 3250, Level 16, State 0, Line 4
> The value '0' is not within range for the FILE parameter.
> Msg 3013, Level 16, State 1, Line 4
> VERIFY DATABASE is terminating abnormally.
>
Has your AV software been setup correctly?
Do other backups work ok?
John|||Here is the original db structure
name
fileid filename
Edge_Data 1 F:\MSSQL\005.YINT01\EDGE\EDGE_Data.mdf PRIMARY
Edge_Log 2 F:\MSSQL\005.YINT01\EDGE\Edge_logs.ldf NULL
Edge_log01 3 F:\MSSQL\005.YINT01\EDGE\Edge_log01.ldf NULL
Edge_log02 4 F:\MSSQL\005.YINT01\EDGE\Edge_log02.ldf NULL
EdgeActivityCenter01 5 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter01.mdf EdgeActivityCenter
EdgeActivityCenter02 6 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter02.mdf EdgeActivityCenter
EdgeActivityCenter03 7 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter03.mdf EdgeActivityCenter
EdgeActivityCenter04 8 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter04.mdf EdgeActivityCenter
EdgeActivityCenter05 9 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenter05.mdf EdgeActivityCenter
Edge_data01 10 F:\MSSQL\005.YINT01\EDGE\EDGE_Data01.mdf PRIMARY
Edge_data02 11 F:\MSSQL\005.YINT01\EDGE\EDGE_Data02.mdf PRIMARY
Edge_data03 12 F:\MSSQL\005.YINT01\EDGE\EDGE_Data03.mdf PRIMARY
Edge_data04 13 F:\MSSQL\005.YINT01\EDGE\EDGE_Data04.mdf PRIMARY
EdgeActivityCenterIDX01 14 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX01.mdf EdgeActivityCenterIDX
EdgeActivityCenterIDX02 15 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX02.mdf EdgeActivityCenterIDX
EdgeActivityCenterIDX03 16 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX03.mdf EdgeActivityCenterIDX
EdgeActivityCenterIDX04 17 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX04.mdf EdgeActivityCenterIDX
EdgeActivityCenterIDX05 18 F:\MSSQL\005.YINT01\EDGE
\EdgeActivityCenterIDX05.mdf EdgeActivityCenterIDX
Edge_data05 19 F:\MSSQL\005.YINT01\EDGE\EDGE_Data05.mdf PRIMARY
and the database has 3 filegroups.
On Feb 27, 2:03 pm, "Uri Dimant" <u...@.iscar.co.il> wrote:
> Viking
> Can you post your database's structure? How many files group do you have?
> "VIKING" <msrvik...@.gmail.com> wrote in message
> news:1172564216.369945.19580@.v33g2000cwv.googlegroups.com...
> > Hi everybody,
> > I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
> > to
> > backup a database
> > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> > NOINIT,
> > NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS => > 10
> > GO
> > declare @.backupSetId as int
> > select @.backupSetId = position from msdb..backupset where
> > database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> > msdb..backupset where database_name=N'XYZ' )
> > if @.backupSetId is null begin raiserror(N'Verify failed. Backup
> > information
> > for database ''XYZ'' not found.', 16, 1) end
> > RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
> > NOREWIND
> > GO
> > And after 40% processing the backup fails with below error message. I
> > have
> > been trying to find out the solution for past 2 days, but in vain. Can
> > someone look at below results and show me any pointers?
> > 10 percent processed.
> > 20 percent processed.
> > 30 percent processed.
> > Msg 3634, Level 16, State 1, Line 1
> > The operating system returned the error '32(The process cannot access
> > the
> > file because it is being used by another process.)' while attempting
> > 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> > Msg 3013, Level 16, State 1, Line 1
> > BACKUP DATABASE is terminating abnormally.
> > Msg 50000, Level 16, State 1, Line 3
> > Verify failed. Backup information for database 'XYZ' not found.
> > Msg 3250, Level 16, State 0, Line 4
> > The value '0' is not within range for the FILE parameter.
> > Msg 3013, Level 16, State 1, Line 4
> > VERIFY DATABASE is terminating abnormally.|||I have the AV software working fine without bothering the backup jobs
for other databases. Infact, I tried running the backup script by
disabling the AV services.
The other db job backups are running without any issues. It is only
with this db.
On Feb 27, 2:07 pm, John Bell <jbellnewspo...@.hotmail.com> wrote:
> Hi
>
> "VIKING" wrote:
> > Hi everybody,
> > I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
> > to
> > backup a database
> > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
> > NOINIT,
> > NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS => > 10
> > GO
> > declare @.backupSetId as int
> > select @.backupSetId = position from msdb..backupset where
> > database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
> > msdb..backupset where database_name=N'XYZ' )
> > if @.backupSetId is null begin raiserror(N'Verify failed. Backup
> > information
> > for database ''XYZ'' not found.', 16, 1) end
> > RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
> > NOREWIND
> > GO
> > And after 40% processing the backup fails with below error message. I
> > have
> > been trying to find out the solution for past 2 days, but in vain. Can
> > someone look at below results and show me any pointers?
> > 10 percent processed.
> > 20 percent processed.
> > 30 percent processed.
> > Msg 3634, Level 16, State 1, Line 1
> > The operating system returned the error '32(The process cannot access
> > the
> > file because it is being used by another process.)' while attempting
> > 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
> > Msg 3013, Level 16, State 1, Line 1
> > BACKUP DATABASE is terminating abnormally.
> > Msg 50000, Level 16, State 1, Line 3
> > Verify failed. Backup information for database 'XYZ' not found.
> > Msg 3250, Level 16, State 0, Line 4
> > The value '0' is not within range for the FILE parameter.
> > Msg 3013, Level 16, State 1, Line 4
> > VERIFY DATABASE is terminating abnormally.
> Has your AV software been setup correctly?
> Do other backups work ok?
> John|||Viking
I would like to see your script. i did some testing ,see if this what you
are doing
CREATE DATABASE test
GO
ALTER DATABASE test SET RECOVERY FULL
ALTER DATABASE test
ADD FILEGROUP ww_Group
GO
ALTER DATABASE test
ADD FILE
( NAME = ww,
FILENAME = 'D:\wwdat1.ndf',
SIZE = 5MB,
MAXSIZE = 100MB,
FILEGROWTH = 5MB)
TO FILEGROUP ww_Group
create table test..test(id int identity) on [primary]
create table test..test_GR(id int identity) on ww_Group
insert test..test default values
insert test..test_GR default values
SELECT * FROM test..test_GR
SELECT * FROM test..test
GO
TRUNCATE TABLE test..test_GR
BACKUP DATABASE test
TO disk='D:\Test_backup.bak'with init
RESTORE DATABASE test
from disk='D:\Test_backup.bak'WITH NORECOVERY
BACKUP DATABASE test
FILE = 'ww',
FILEGROUP = 'ww_Group'
TO disk='D:\CROUPFILES.bak'WITH INIT
BACKUP LOG test
TO disk='D:\Test__log.ldf'WITH INIT
BACKUP LOG test
TO disk='D:\Test__log.ldf' WITH NOINIT
RESTORE DATABASE test
FILE = 'ww',
FILEGROUP = 'ww_Group'
FROM DISK ='D:\CROUPFILES.bak'
WITH FILE = 1,NORECOVERY
RESTORE LOG test
FROM disk='D:\Test__log.ldf'
WITH FILE = 1, NORECOVERY
RESTORE LOG test
FROM disk='D:\Test__log.ldf'
WITH FILE = 2, RECOVERY
GO
DROP DATABASE test
"VIKING" <msrviking@.gmail.com> wrote in message
news:1172583480.230401.15680@.z35g2000cwz.googlegroups.com...
> Here is the original db structure
> name
> fileid filename
> Edge_Data 1 F:\MSSQL\005.YINT01\EDGE\EDGE_Data.mdf PRIMARY
> Edge_Log 2 F:\MSSQL\005.YINT01\EDGE\Edge_logs.ldf NULL
> Edge_log01 3 F:\MSSQL\005.YINT01\EDGE\Edge_log01.ldf NULL
> Edge_log02 4 F:\MSSQL\005.YINT01\EDGE\Edge_log02.ldf NULL
> EdgeActivityCenter01 5 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter01.mdf EdgeActivityCenter
> EdgeActivityCenter02 6 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter02.mdf EdgeActivityCenter
> EdgeActivityCenter03 7 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter03.mdf EdgeActivityCenter
> EdgeActivityCenter04 8 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter04.mdf EdgeActivityCenter
> EdgeActivityCenter05 9 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenter05.mdf EdgeActivityCenter
> Edge_data01 10 F:\MSSQL\005.YINT01\EDGE\EDGE_Data01.mdf PRIMARY
> Edge_data02 11 F:\MSSQL\005.YINT01\EDGE\EDGE_Data02.mdf PRIMARY
> Edge_data03 12 F:\MSSQL\005.YINT01\EDGE\EDGE_Data03.mdf PRIMARY
> Edge_data04 13 F:\MSSQL\005.YINT01\EDGE\EDGE_Data04.mdf PRIMARY
> EdgeActivityCenterIDX01 14 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX01.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX02 15 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX02.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX03 16 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX03.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX04 17 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX04.mdf EdgeActivityCenterIDX
> EdgeActivityCenterIDX05 18 F:\MSSQL\005.YINT01\EDGE
> \EdgeActivityCenterIDX05.mdf EdgeActivityCenterIDX
> Edge_data05 19 F:\MSSQL\005.YINT01\EDGE\EDGE_Data05.mdf PRIMARY
> and the database has 3 filegroups.
> On Feb 27, 2:03 pm, "Uri Dimant" <u...@.iscar.co.il> wrote:
>> Viking
>> Can you post your database's structure? How many files group do you
>> have?
>> "VIKING" <msrvik...@.gmail.com> wrote in message
>> news:1172564216.369945.19580@.v33g2000cwv.googlegroups.com...
>> > Hi everybody,
>> > I have the below script on SQL Server 2005, SP1 on Windows 2003 Server
>> > to
>> > backup a database
>> > BACKUP DATABASE [XYZ] FILEGROUP = N'PRIMARY' TO [XYZ] WITH NOFORMAT,
>> > NOINIT,
>> > NAME = N'XYZ-Full Filegroup Backup', SKIP, NOREWIND, NOUNLOAD, STATS =>> > 10
>> > GO
>> > declare @.backupSetId as int
>> > select @.backupSetId = position from msdb..backupset where
>> > database_name=N'XYZ' and backup_set_id=(select max(backup_set_id) from
>> > msdb..backupset where database_name=N'XYZ' )
>> > if @.backupSetId is null begin raiserror(N'Verify failed. Backup
>> > information
>> > for database ''XYZ'' not found.', 16, 1) end
>> > RESTORE VERIFYONLY FROM [XYZ] WITH FILE = @.backupSetId, NOUNLOAD,
>> > NOREWIND
>> > GO
>> > And after 40% processing the backup fails with below error message. I
>> > have
>> > been trying to find out the solution for past 2 days, but in vain. Can
>> > someone look at below results and show me any pointers?
>> > 10 percent processed.
>> > 20 percent processed.
>> > 30 percent processed.
>> > Msg 3634, Level 16, State 1, Line 1
>> > The operating system returned the error '32(The process cannot access
>> > the
>> > file because it is being used by another process.)' while attempting
>> > 'CreateFile' on 'F:\MSSQL\005.YINT01\XYZ\XYZ01.mdf'.
>> > Msg 3013, Level 16, State 1, Line 1
>> > BACKUP DATABASE is terminating abnormally.
>> > Msg 50000, Level 16, State 1, Line 3
>> > Verify failed. Backup information for database 'XYZ' not found.
>> > Msg 3250, Level 16, State 0, Line 4
>> > The value '0' is not within range for the FILE parameter.
>> > Msg 3013, Level 16, State 1, Line 4
>> > VERIFY DATABASE is terminating abnormally.
>