Restoring 2008 Database with FileStream – CreateFile Sharing Violation

I’ve previously posted this question and turning off the anti-virus scan helped fix it. But I’m having same issue on a machine that doesn’t have anti virus scanning enabled.

Back story:

I’m trying to restore a copy of a database that has a filestream and am getting the error below.

I’ve tried with move option to specify a new path and left it with default path, neither worked.  Also tried the with replace option. FileStream1 is a new folder that the restore process creates. I’ve deleted the folder, tried it with a new name, re-took
the backup from the source machine, restarted SQL, rebooted the machine, drive permissions are open.

Msg 3634, Level 16, State 1, Line 1
he operating system returned the error ’32(The process cannot access the file because it is being used by another process.)’ while attempting ‘OpenFile’ on ‘R:DataFileStream14ecb2e48-0eee-4c99-a3f0-f1e6c7f00b24f2efe374-9481-4c1b-a7f2-dcdcee350807000001b-00005fcf-005a’.

RESTORE DATABASE is terminating abnormally.

I found the file on filemon and below is the error, stack and processes running.

Date & Time:    9/15/2010 6:33:48 PM
Event Class:    File System
Operation:    CreateFile
Result:    SHARING VIOLATION
Path:    R:DataFileStream14ecb2e48-0eee-4c99-a3f0-f1e6c7f00b24f2efe374-9481-4c1b-a7f2-dcdcee350807000001b-00005fcf-005a
TID:    2116
Duration:    0.0000385
Desired Access:    Generic Write
Disposition:    OpenIf
Options:    No Buffering, Random Access
Attributes:    n/a
ShareMode:    None
AllocationSize:    2,074,624

————————————————————————————————————————————

0    fltmgr.sys    fltmgr.sys + 0x2027    0xfffff88001402027    C:Windowssystem32driversfltmgr.sys
1    fltmgr.sys    fltmgr.sys + 0x48ca    0xfffff880014048ca    C:Windowssystem32driversfltmgr.sys
2    fltmgr.sys    fltmgr.sys + 0x222a3    0xfffff880014222a3    C:Windowssystem32driversfltmgr.sys
3    ntoskrnl.exe    ntoskrnl.exe + 0x372477    0xfffff80001dd9477    C:Windowssystem32ntoskrnl.exe
4    ntoskrnl.exe    ntoskrnl.exe + 0x368764    0xfffff80001dcf764    C:Windowssystem32ntoskrnl.exe
5    ntoskrnl.exe    ntoskrnl.exe + 0x36d876    0xfffff80001dd4876    C:Windowssystem32ntoskrnl.exe
6    ntoskrnl.exe    ntoskrnl.exe + 0x374587    0xfffff80001ddb587    C:Windowssystem32ntoskrnl.exe
7    ntoskrnl.exe    ntoskrnl.exe + 0x37e198    0xfffff80001de5198    C:Windowssystem32ntoskrnl.exe
8    ntoskrnl.exe    ntoskrnl.exe + 0x71153    0xfffff80001ad8153    C:Windowssystem32ntoskrnl.exe
9    ntdll.dll    ntdll.dll + 0x5040a    0x776c040a    C:WindowsSYSTEM32ntdll.dll
10    sqlservr.exe    _____SQL______Process______Available + 0x51eb9    0x1da2489    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
11    sqlservr.exe    _____SQL______Process______Available + 0x114311    0x1e648e1    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
12    sqlservr.exe    TlsGetValueForMsxmlSQL + 0xef2e6    0x2f33196    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
13    sqlservr.exe    TlsGetValueForMsxmlSQL + 0xef72d    0x2f335dd    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
14    sqlservr.exe    TlsGetValueForMsxmlSQL + 0xef818    0x2f336c8    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
15    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x1fb4d6    0x303f386    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
16    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x1fd203    0x30410b3    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
17    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x61dde1    0x3461c91    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
18    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x61a6c3    0x345e573    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
19    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x61def3    0x3461da3    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
20    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x61ec09    0x3462ab9    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
21    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x6298fb    0x346d7ab    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
22    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x62a188    0x346e038    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
23    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x63482b    0x34786db    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
24    sqlservr.exe    TlsGetValueForMsxmlSQL + 0x4a54da    0x32e938a    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
25    sqlservr.exe    sqlservr.exe + 0x3d10c2    0xf910c2    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
26    sqlservr.exe    sqlservr.exe + 0x10d9b    0xbd0d9b    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
27    sqlservr.exe    sqlservr.exe + 0x11d4a    0xbd1d4a    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
28    sqlservr.exe    sqlservr.exe + 0x12009    0xbd2009    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
29    sqlservr.exe    sqlservr.exe + 0x3a9c20    0xf69c20    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
30    sqlservr.exe    sqlservr.exe + 0x3a9070    0xf69070    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
31    sqlservr.exe    sqlservr.exe + 0x5be9f0    0x117e9f0    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
32    sqlservr.exe    sqlservr.exe + 0x3aafbf    0xf6afbf    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
33    MSVCR80.dll    MSVCR80.dll + 0x37d7    0x751137d7    C:WindowsWinSxSamd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_88dce9872fb18cafMSVCR80.dll
34    MSVCR80.dll    MSVCR80.dll + 0x3894    0x75113894    C:WindowsWinSxSamd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_88dce9872fb18cafMSVCR80.dll
35    kernel32.dll    kernel32.dll + 0x1f56d    0x7756f56d    C:Windowssystem32kernel32.dll
36    ntdll.dll    ntdll.dll + 0x33281    0x776a3281    C:WindowsSYSTEM32ntdll.dll

————————————————————————————————————————————

Description:    SQL Server Windows NT – 64 Bit
Company:    Microsoft Corporation
Name:    sqlservr.exe
Version:    2007.100.2746.0
Path:    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe
Command Line:    “C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe” -sMSSQLSERVER
PID:    4004
Parent PID:    536
Session ID:    0
User:   
Auth ID:    00000000:001253ae
Architecture:    64-bit
Virtualized:    False
Integrity:    High
Started:    9/2/2010 9:25:30 AM
Ended:    (Running)
Modules:
sqlservr.exe    0xbc0000    0x3857000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlservr.exe    Microsoft Corporation
System.Xml.Linq.dll    0x31060000    0x26000    C:WindowsassemblyGAC_MSILSystem.Xml.Linq3.5.0.0__b77a5c561934e089System.Xml.Linq.dll    Microsoft Corporation
System.Transactions.dll    0x32860000    0x49000    C:WindowsassemblyGAC_64System.Transactions2.0.0.0__b77a5c561934e089System.Transactions.dll    Microsoft Corporation
System.Core.dll    0x3a570000    0xa6000    C:WindowsassemblyGAC_MSILSystem.Core3.5.0.0__b77a5c561934e089System.Core.dll    Microsoft Corporation
msadcer.dll    0x3fc80000    0x2000    C:Program FilesCommon FilesSystemmsadcmsadcer.dll    Microsoft Corporation
OLEDB32R.DLL    0x44910000    0x14000    C:Program FilesCommon FilesSystemOle DBOLEDB32R.DLL    Microsoft Corporation
instapi.dll    0x48060000    0xd000    c:Program FilesMicrosoft SQL Server90Sharedinstapi.dll    Microsoft Corporation
MSFTE.DLL    0x49980000    0x3b1000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnMSFTE.DLL    Microsoft Corporation
System.Data.dll    0x4ea50000    0x302000    C:WindowsassemblyGAC_64System.Data2.0.0.0__b77a5c561934e089System.Data.dll    Microsoft Corporation
ftimport.dll    0x60000000    0x25000    c:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnftimport.dll    Microsoft Corporation
msxmlsql.dll    0x6fc30000    0x151000    C:Program FilesMicrosoft SQL Server100Sharedmsxmlsql.dll    Microsoft Corporation
System.dll    0x6fe50000    0x30a000    C:WindowsassemblyGAC_MSILSystem2.0.0.0__b77a5c561934e089System.dll    Microsoft Corporation
System.Security.dll    0x701b0000    0x42000    C:WindowsassemblyGAC_MSILSystem.Security2.0.0.0__b03f5f7f11d50a3aSystem.Security.dll    Microsoft Corporation
System.Configuration.dll    0x70200000    0x6c000    C:WindowsassemblyGAC_MSILSystem.Configuration2.0.0.0__b03f5f7f11d50a3aSystem.Configuration.dll    Microsoft Corporation
System.Xml.dll    0x70270000    0x1f8000    C:WindowsassemblyGAC_MSILSystem.Xml2.0.0.0__b77a5c561934e089System.Xml.dll    Microsoft Corporation
SqlAccess.dll    0x70470000    0x67000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnSqlAccess.dll    Microsoft Corporation
xplog70.RLL    0x73a30000    0x2000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnResources1033xplog70.RLL    Microsoft Corporation
xpstar.rll    0x73a50000    0x25000    c:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnResources1033xpstar.rll    Microsoft Corporation
xpstar.dll    0x73a80000    0x88000    c:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnxpstar.dll    Microsoft Corporation
xpsqlbot.dll    0x73b10000    0x8000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnxpsqlbot.dll    Microsoft Corporation
sqlncli10.dll    0x73b30000    0x307000    c:Windowssystem32sqlncli10.dll    Microsoft Corporation
dbghelp.dll    0x73e40000    0x15e000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinndbghelp.dll    Microsoft Corporation
sqlevn70.rll    0x73fa0000    0x1fd000    c:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnResources1033sqlevn70.rll    Microsoft Corporation
COMRES.DLL    0x741a0000    0x13e000    C:Windowssystem32COMRES.DLL    Microsoft Corporation
security.dll    0x743c0000    0x3000    C:Windowssystem32security.dll    Microsoft Corporation
SQLSCM.dll    0x744f0000    0xc000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnSQLSCM.dll    Microsoft Corporation
SQLNCLIR10.RLL    0x74530000    0x37000    c:Windowssystem321033SQLNCLIR10.RLL    Microsoft Corporation
RsFxFt.Dll    0x74570000    0x9000    c:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnRsFxFt.Dll    Microsoft Corporation
BatchParser.dll    0x74580000    0x2c000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnBatchParser.dll    Microsoft Corporation
opends60.dll    0x745b0000    0x8000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnopends60.dll    Microsoft Corporation
sqlos.dll    0x745c0000    0x7000    C:Program FilesMicrosoft SQL ServerMSSQL10.MSSQLSERVERMSSQLBinnsqlos.dll    Microsoft Corporation
odbcint.dll    0x74640000    0x38000    C:Windowssystem32odbcint.dll    Microsoft Corporation
instapi10.dll    0x74ac0000    0xd000    C:Program FilesMicrosoft SQL Server100Sharedinstapi10.dll    Microsoft Corporation
MSVCP80.dll    0x74b50000    0x109000    C:WindowsWinSxSamd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_88dce9872fb18cafMSVCP80.dll    Microsoft Corporation
ATL80.DLL    0x74e80000    0x1f000    C:WindowsWinSxSamd64_microsoft.vc80.atl_1fc8b3b9a1e18e3b_8.0.50727.1833_none_8a17faaf2edd3e00ATL80.DLL    Microsoft Corporation
MSVCR80.dll    0x75110000    0xc9000    C:WindowsWinSxSamd64_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_88dce9872fb18cafMSVCR80.dll    Microsoft Corporation
USER32.dll    0x77450000    0xfa000    C:Windowssystem32USER32.dll    Microsoft Corporation
kernel32.dll    0x77550000    0x11f000    C:Windowssystem32kernel32.dll    Microsoft Corporation
ntdll.dll    0x77670000    0x1ab000    C:WindowsSYSTEM32ntdll.dll    Microsoft Corporation
psapi.dll    0x77830000    0x7000    C:Windowssystem32psapi.dll    Microsoft Corporation
mscorsec.dll    0x642ffaf0000    0x19000    C:WindowsMicrosoft.NETFramework64v2.0.50727mscorsec.dll    Microsoft Corporation
normalization.dll    0x642ffbd0000    0x9000    C:WindowsMicrosoft.NETFramework64v2.0.50727normalization.dll    Microsoft Corporation
msadce.dll    0x7feeb860000    0xb7000    C:Program FilesCommon FilesSystemmsadcmsadce.dll    Microsoft Corporation
oledb32.dll    0x7feeb920000    0x10e000    C:Program FilesCommon FilesSystemOle DBoledb32.dll    Microsoft Corporation
sqloledb.dll    0x7feec1a0000    0x128000    C:Program FilesCommon FilesSystemOle DBsqloledb.dll    Microsoft Corporation
MSDART.DLL    0x7feec750000    0x28000    C:Windowssystem32MSDART.DLL    Microsoft Corporation
System.Security.ni.dll    0x7feec880000    0xe5000    C:WindowsassemblyNativeImages_v2.0.50727_64System.Security2df5caebaff2aa374a48182f20c65430System.Security.ni.dll    Microsoft Corporation
Cabinet.dll    0x7fef3ec0000    0x1b000    C:Windowssystem32Cabinet.dll    Microsoft Corporation
netbios.dll    0x7fef4190000    0xa000    C:Windowssystem32netbios.dll    Microsoft Corporation
pdh.dll    0x7fef41a0000    0x4e000    C:Windowssystem32pdh.dll    Microsoft Corporation
cryptnet.dll    0x7fef41f0000    0x26000    C:Windowssystem32cryptnet.dll    Microsoft Corporation
XOLEHLP.DLL    0x7fef42a0000    0x14000    C:Windowssystem32XOLEHLP.DLL    Microsoft Corporation
WINMM.dll    0x7fef42c0000    0x3b000    C:Windowssystem32WINMM.dll    Microsoft Corporation
cscapi.dll    0x7fef48f0000    0xf000    C:Windowssystem32cscapi.dll    Microsoft Corporation
SensApi.dll    0x7fef4900000    0x9000    C:Windowssystem32SensApi.dll    Microsoft Corporation
ODBC32.dll    0x7fef4dc0000    0xaf000    C:Windowssystem32ODBC32.dll    Microsoft Corporation
MSDTCPRX.DLL    0x7fef4e70000    0xbc000    C:Windowssystem32MSDTCPRX.DLL    Microsoft Corporation
MTXCLU.DLL    0x7fef4f30000    0x60000    C:Windowssystem32MTXCLU.DLL    Microsoft Corporation
BROWCLI.DLL    0x7fef55f0000    0x12000    C:Windowssystem32BROWCLI.DLL    Microsoft Corporation
RESUTILS.DLL    0x7fef5610000    0x19000    C:Windowssystem32RESUTILS.DLL    Microsoft Corporation
CLUSAPI.DLL    0x7fef5640000    0x50000    C:Windowssystem32CLUSAPI.DLL    Microsoft Corporation
webio.dll    0x7fef64e0000    0x64000    C:Windowssystem32webio.dll    Microsoft Corporation
winhttp.dll    0x7fef6550000    0x6e000    C:Windowssystem32winhttp.dll    Microsoft Corporation
mscorjit.dll    0x7fef7d90000    0x184000    C:WindowsMicrosoft.NETFramework64v2.0.50727mscorjit.dll    Microsoft Corporation
System.ni.dll    0x7fef87f0000    0xa1e000    C:WindowsassemblyNativeImages_v2.0.50727_64System247913fa7ae6fcf04ea33d28d24ab611System.ni.dll    Microsoft Corporation
mscorlib.ni.dll    0x7fef9210000    0xedb000    C:WindowsassemblyNativeImages_v2.0.50727_64mscorlib9a017aa8d51322f18a40f414fa35872dmscorlib.ni.dll    Microsoft Corporation
mscorwks.dll    0x7fefa0f0000    0x9ae000    C:WindowsMicrosoft.NETFramework64v2.0.50727mscorwks.dll    Microsoft Corporation
MSCOREE.DLL    0x7fefaaa0000    0x66000    C:Windowssystem32MSCOREE.DLL    Microsoft Corporation
SAMLIB.dll    0x7fefac30000    0x1d000    C:Windowssystem32SAMLIB.dll    Microsoft Corporation
SAMCLI.DLL    0x7fefac50000    0x14000    C:Windowssystem32SAMCLI.DLL    Microsoft Corporation
ntdsapi.dll    0x7fefafc0000    0x27000    C:Windowssystem32ntdsapi.dll    Microsoft Corporation
rasadhlp.dll    0x7fefaff0000    0x8000    C:Windowssystem32rasadhlp.dll    Microsoft Corporation
rtutils.dll    0x7fefb060000    0x11000    C:Windowssystem32rtutils.dll    Microsoft Corporation
rasman.dll    0x7fefb130000    0x1c000    C:Windowssystem32rasman.dll    Microsoft Corporation
rasapi32.dll    0x7fefb150000    0x62000    C:Windowssystem32rasapi32.dll    Microsoft Corporation
ktmw32.dll    0x7fefb480000    0xa000    C:Windowssystem32ktmw32.dll    Microsoft Corporation
wkscli.dll    0x7fefb490000    0x15000    C:Windowssystem32wkscli.dll    Microsoft Corporation
NETAPI32.dll    0x7fefb4b0000    0x16000    C:Windowssystem32NETAPI32.dll    Microsoft Corporation
dhcpcsvc.DLL    0x7fefb640000    0x18000    C:Windowssystem32dhcpcsvc.DLL    Microsoft Corporation
dhcpcsvc6.DLL    0x7fefb6c0000    0x11000    C:Windowssystem32dhcpcsvc6.DLL    Microsoft Corporation
fwpuclnt.dll    0x7fefb820000    0x53000    C:WindowsSystem32fwpuclnt.dll    Microsoft Corporation
WINNSI.DLL    0x7fefb970000    0xb000    C:Windowssystem32WINNSI.DLL    Microsoft Corporation
IPHLPAPI.DLL    0x7fefb980000    0x27000    C:Windowssystem32IPHLPAPI.DLL    Microsoft Corporation
dsrole.dll    0x7fefbea0000    0xc000    C:Windowssystem32dsrole.dll    Microsoft Corporation
Comctl32.dll    0x7fefbf70000    0x1f4000    C:WindowsWinSxSamd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.7600.16385_none_fa645303170382f6Comctl32.dll    Microsoft Corporation
VERSION.dll    0x7fefc6f0000    0xc000    C:Windowssystem32VERSION.dll    Microsoft Corporation
ntmarta.dll    0x7fefc7c0000    0x2d000    C:Windowssystem32ntmarta.dll    Microsoft Corporation
wshtcpip.dll    0x7fefc7f0000    0x7000    C:WindowsSystem32wshtcpip.dll    Microsoft Corporation
GPAPI.dll    0x7fefc8e0000    0x1b000    C:Windowssystem32GPAPI.dll    Microsoft Corporation
USERENV.dll    0x7fefc900000    0x1e000    C:Windowssystem32USERENV.dll    Microsoft Corporation
DEVRTL.dll    0x7fefc920000    0x12000    C:Windowssystem32DEVRTL.dll    Microsoft Corporation
credssp.dll    0x7fefca50000    0x9000    C:Windowssystem32credssp.dll    Microsoft Corporation
netutils.dll    0x7fefca90000    0xc000    C:Windowssystem32netutils.dll    Microsoft Corporation
bcryptprimitives.dll    0x7fefcaa0000    0x4c000    C:Windowssystem32bcryptprimitives.dll    Microsoft Corporation
rsaenh.dll    0x7fefcb60000    0x47000    C:Windowssystem32rsaenh.dll    Microsoft Corporation
schannel.DLL    0x7fefcbf0000    0x59000    C:Windowssystem32schannel.DLL    Microsoft Corporation
DNSAPI.dll    0x7fefcc80000    0x5b000    C:Windowssystem32DNSAPI.dll    Microsoft Corporation
msv1_0.DLL    0x7fefcd90000    0x51000    C:Windowssystem32msv1_0.DLL    Microsoft Corporation
wship6.dll    0x7fefcdf0000    0x7000    C:WindowsSystem32wship6.dll    Microsoft Corporation
mswsock.dll    0x7fefce00000    0x54000    C:Windowssystem32mswsock.dll    Microsoft Corporation
CRYPTSP.dll    0x7fefce60000    0x17000    C:Windowssystem32CRYPTSP.dll    Microsoft Corporation
kerberos.DLL    0x7fefce80000    0xb3000    C:Windowssystem32kerberos.DLL    Microsoft Corporation
bcrypt.dll    0x7fefcfb0000    0x22000    C:Windowssystem32bcrypt.dll    Microsoft Corporation
ncrypt.dll    0x7fefcfe0000    0x4e000    C:Windowssystem32ncrypt.dll    Microsoft Corporation
AUTHZ.DLL    0x7fefd030000    0x2f000    C:Windowssystem32AUTHZ.DLL    Microsoft Corporation
cryptdll.dll    0x7fefd120000    0x14000    C:Windowssystem32cryptdll.dll    Microsoft Corporation
srvcli.dll    0x7fefd380000    0x23000    C:Windowssystem32srvcli.dll    Microsoft Corporation
Secur32.dll    0x7fefd420000    0xb000    C:Windowssystem32Secur32.dll    Microsoft Corporation
SSPICLI.DLL    0x7fefd470000    0x25000    C:Windowssystem32SSPICLI.DLL    Microsoft Corporation
apphelp.dll    0x7fefd4a0000    0x57000    C:Windowssystem32apphelp.dll    Microsoft Corporation
CRYPTBASE.dll    0x7fefd500000    0xf000    C:Windowssystem32CRYPTBASE.dll    Microsoft Corporation
RpcRtRemote.dll    0x7fefd5b0000    0x14000    C:Windowssystem32RpcRtRemote.dll    Microsoft Corporation
profapi.dll    0x7fefd5d0000    0xf000    C:Windowssystem32profapi.dll    Microsoft Corporation
MSASN1.dll    0x7fefd670000    0xf000    C:Windowssystem32MSASN1.dll    Microsoft Corporation
KERNELBASE.dll    0x7fefd680000    0x6b000    C:Windowssystem32KERNELBASE.dll    Microsoft Corporation
WINTRUST.dll    0x7fefd790000    0x39000    C:Windowssystem32WINTRUST.dll    Microsoft Corporation
CFGMGR32.dll    0x7fefd7d0000    0x36000    C:Windowssystem32CFGMGR32.dll    Microsoft Corporation
CRYPT32.dll    0x7fefd810000    0x166000    C:Windowssystem32CRYPT32.dll    Microsoft Corporation
MSCTF.dll    0x7fefd9a0000    0x109000    C:Windowssystem32MSCTF.dll    Microsoft Corporation
WS2_32.dll    0x7fefdab0000    0x4d000    C:Windowssystem32WS2_32.dll    Microsoft Corporation
NSI.dll    0x7fefdc80000    0x8000    C:Windowssystem32NSI.dll    Microsoft Corporation
sechost.dll    0x7fefdc90000    0x1f000    C:WindowsSYSTEM32sechost.dll    Microsoft Corporation
LPK.dll    0x7fefdcb0000    0xe000    C:Windowssystem32LPK.dll    Microsoft Corporation
USP10.dll    0x7fefdcc0000    0xca000    C:Windowssystem32USP10.dll    Microsoft Corporation
COMDLG32.dll    0x7fefdd90000    0x98000    C:Windowssystem32COMDLG32.dll    Microsoft Corporation
CLBCatQ.DLL    0x7fefde30000    0x99000    C:Windowssystem32CLBCatQ.DLL    Microsoft Corporation
RPCRT4.dll    0x7fefded0000    0x12e000    C:Windowssystem32RPCRT4.dll    Microsoft Corporation
ADVAPI32.dll    0x7fefe000000    0xdb000    C:Windowssystem32ADVAPI32.dll    Microsoft Corporation
OLEAUT32.dll    0x7fefe0e0000    0xd7000    C:Windowssystem32OLEAUT32.dll    Microsoft Corporation
SHLWAPI.dll    0x7fefe240000    0x71000    C:Windowssystem32SHLWAPI.dll    Microsoft Corporation
GDI32.dll    0x7fefe2c0000    0x67000    C:Windowssystem32GDI32.dll    Microsoft Corporation
msvcrt.dll    0x7fefe380000    0x9f000    C:Windowssystem32msvcrt.dll    Microsoft Corporation
imagehlp.dll    0x7fefe420000    0x17000    C:Windowssystem32imagehlp.dll    Microsoft Corporation
ole32.dll    0x7fefe880000    0x201000    C:Windowssystem32ole32.dll    Microsoft Corporation
IMM32.DLL    0x7fefea90000    0x2e000    C:Windowssystem32IMM32.DLL    Microsoft Corporation
SHELL32.dll    0x7fefeac0000    0xd86000    C:Windowssystem32SHELL32.dll    Microsoft Corporation

Hopefully with the added details will be helpful. Thanks.

Specs: SQL Server 2008 SP 1, MS Server 2008 R2 Server

Hi clee0903, Since the error message said this file is being accessed by another process, I would like to suggest you to use Process Explorer to find out which process is accessing

I’ve tried the process explorer attempt earlier but it’s hard to hit the search at the right time when the restore breaks. That’s why I kept process monitor running during the duration of the restore then I filtered on the file that was giving access violation.

Hi clee0903, Is there any Anti-Virus software?If there is Anti-Virus software existing on your machine, I would like to recommend that you disable it temporarily. Meanwhile I would like to recommend that you