Foros del Web » Programación para mayores de 30 ;) » Bases de Datos General » SQL Server »

[SOLUCIONADO] error al restaurar

Estas en el tema de error al restaurar en el foro de SQL Server en Foros del Web. Buenas tardes estoy restaurando una base de datos en un servidor sql 2008 y me marca el siguiente error TITLE: Microsoft SQL Server Management Studio ...
  #1 (permalink)  
Antiguo 07/08/2015, 15:31
 
Fecha de Ingreso: abril-2015
Mensajes: 130
Antigüedad: 9 años, 1 mes
Puntos: 0
error al restaurar

Buenas tardes estoy restaurando una base de datos en un servidor sql 2008 y me marca el siguiente error

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

Restore failed for Server 'SHINILONE'. (Microsoft.SqlServer.SmoExtended)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=11.0. 2100.60+((SQL11_RTM).120210-1917+)&EvtSrc=Microsoft.SqlServer.Management.Smo.E xceptionTemplates.FailedOperationExceptionText&Evt ID=Restore+Server&LinkId=20476

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

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

Exclusive access could not be obtained because the database is in use.
RESTORE DATABASE is terminating abnormally. (Microsoft SQL Server, Error: 3101)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=1 1.00.2100&EvtSrc=MSSQLServer&EvtID=3101&LinkId=204 76

------------------------------
BUTTONS:

OK
------------------------------

ya lo trate de subir tambien por fils and filesgroups y me manda lo mismo.
  #2 (permalink)  
Antiguo 08/08/2015, 12:38
Avatar de Libras
Colaborador
 
Fecha de Ingreso: agosto-2006
Ubicación: En la hermosa perla de occidente
Mensajes: 7.412
Antigüedad: 17 años, 8 meses
Puntos: 774
Respuesta: error al restaurar

sencillo al restaurar pon que cierre las conexiones en la base de datos que se esta restaurando o puedes usar este query:

Código SQL:
Ver original
  1. ALTER DATABASE [tu base] SET single_user WITH ROLLBACK immediate
__________________
What does an execution plan say to t-sql query? Go f**k yourself, if you are not happy with me

Etiquetas: restaurar, server, sql
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 23:31.