SQL Server 2012 in restoring mode

Hi All,
My database is in "restoring" mode and is taking forever to complete the activity. Need some help to get my db back.
Regards,
Abhinay Tharwal

Have you specified WITH RECOVERY clause in RESTORE command?
RESTORE
DATABASE <database name> WITH RECOVERY
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence

Similar Messages

  • Error rsItemNotFound when using ReportingService2010 endpoint in SharePoint Mode (SQL Server 2012 & SP2013)

    Hi all,
    I installed SQL Server 2012 in SharePoint Mode, with SharePoint 2013 on a Windows Server 2012 virtual machine. The issue occurs when I try to use the ListChildren operation of the ReportService2010 endpoint.
    It manages to connect to the server, but it refuses to list any children. Here's the code I'm using:
    using System;
    using System.Net;
    internal class Test
    public static void Main()
    var rs = new ReportingService2010
    Credentials = new NetworkCredential("username", "password", "machine")
    CatalogItem[] items = null;
    // Retrieve a list of all items from the report server database.
    try
    items = rs.ListChildren("/", true);
    catch (Exception e)
    Console.WriteLine(e.Message);
    When executed, this code throws an exception (which is caught and displayed) : "The item '/' cannot be found. (rsItemNotFound)"
    The same code works (i.e. does not throw any exception and the items variable contains some CatalogItem) when used against a SQL Server 2012 configured in native mode.
    I'm not sure what I'm doing wrong here, maybe the first parameter shouldn't be "/" but something else?
    Thanks for your help
    Aotio

    +1
    I'm getting this error as well.  My test software is connecting to two different servers; one is running on SharePoint 2010 and I have no problems using the ReportingService2010 functions on that, but I am getting this same error when trying to connect
    to a service on SharePoint 2013.

  • Run Reporting services 2005 with databases housed on SQL Server 2012?

    Hi, I have a RS 2005 install in which the ReportServer and ReportServerTempDB databases reside on a different SQL Server 2005 server. I am planning to upgrade DB server to 2012 and would like to keep SSRS as 2005.As a second phase I will upgrade SSRS2005
    to SSRS 2008. So I would be running something like this:
    Server A: SQL 2005 Reporting Services
    Server B: SQL 2012 database engine - housing ReportServer and ReportServerTempDB
    Is this configuration supported? 

    Hello,
    According to the
    BOL, Report Server service checks the database version at startup. If the report server is connected to a database that is an earlier version, the report server will update the database during startup.If you have a newer report server database, you
    cannot use it with an earlier version of a report server instances.
    In that case, the earlier versions of SQL Server Database Engine that can be used to host the SSRS report server databases. For example, In SQL Server 2005 Reporting Services, we can use either SQL Server 2000 or SQL Server 2005 to host the databases, for
    SSRS 2012, we can use SQL Server 2012,2008 R2,2008,2005.
    Based on my test, In the Reporting Services 2005 Configure Manager, we can create a new database on a remote SQL Server 2012 database engine and the Initialization is successful.
    In this way, the databases are created from the script file which installed with the Reporting Services instance, you can find the Catalog.sql and CatalogTempDB.sql  under folder C:\Program Files\Microsoft SQL Server\MSSQL.3\Reporting Services\ReportServer.
    However, when upgrade the existing ReportServer database and ReportServerTempDB database on the SQL Server 2012 by restore from a backup, we cannot use this existing database for Reporting Services 2005 and get the following message:
    The database version (162) does not match your reporting serivces installation.And the initialization failed.
    In your case, you can host the ReportServer database and ReportServerTempDB database of SSRS 2005 on SQL Server 2012 database enginer by create a new database from Reporting Services 2005 Configure Manager. But you cannot use the existing
    database which upgrade to SQL Server 2012.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here. 
    Fanny Liu
    TechNet Community Support

  • Is it possible to transfer a database from SQL Server 2012 to SQL Server Express 2012?

    Is it possible to transfer a database from SQL Server 2012 to
    SQL Server Express 2012? Ideally I would like to backup the database from SQL Server 2012 and restore it on SQL Server Express 2012. Is that possible?

    Is it possible to transfer a database from SQL Server 2012 to
    SQL Server Express 2012? Ideally I would like to backup the database from SQL Server 2012 and restore it on SQL Server Express 2012. Is that possible?
    Yes it is possible but database size should not be greater than 10 G as max databse size supported for Express 2012 is 10 G
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • FILESTREAM garbage collector in sql server 2012

    HI
    what is FILESTREAM garbage collector in sql server 2012
    I restored a backup of a sharepoint 2010  content database it is rbs enabled
    when I restore  blobs are deleting from a rbs storage folder how its happen
    adil

    This is a good read
    http://www.sqlskills.com/blogs/paul/filestream-garbage-collection/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SQL Server 2012 restoring database from backup file

    Hi All,
    1. I was restoring the database from PROD box to DEV box with the deferent name.
    For Ex: Both PROD and DEV boxes are having "A" database. Now I am refreshing database"A" from PROD bot to DEV box with name "B". Now while restoring in SQL server 2012 I used GUI and took database name as "A" by default.
    by mistake I executed the request. before completing I notice that "A" database in DEV Box went to restoring mode.
    Now, in middle I stopped the query but still I am seeing database "A" is in restoring state.
    Please guide me is there any way to bring database online with current data?
    2. Why sql server 2012 takes tail log backup of the existing database while restoring database with different name?

    Hi,
    check this link for the same issue and solutions:
    http://stackoverflow.com/questions/520967/sql-server-database-stuck-in-restoring-state
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • How to restore a database backup taken from a SQL Server 2012 instance to SQL Server 2014

    I am trying to restore a database backup taken from a SQL Server 2012 instance to my new SQL Server 2014 instance.  When I add the .bak through the Mgmt studio UI, it does not seem to find a backup set in the file so I cannot proceed (does not give
    me any errors though either.  I tried restoring through TSQL command but only got a database restore terminating abnormally error with no other details.  How can I restore this database to SQL 2014?

    Hello,
    Please examine SQL Server Error Log and share with us any error you can find. The following article may locate the log:
    http://msdn.microsoft.com/en-us/library/ms187109.aspx
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Errors while Changing the Database to Mutli User Mode from Single user mode in SQL Server 2012

    Hi,
    Good Afternoon :).  Need your help in resolving one of the issue with SQL Server 2012.
    Today, we kept one of the database in the Single User mode and wanted to bring back to Multi User mode.  But we are getting the below error.  There are no user sessions connected to this database which are blocking each other.  I see multiple
    SYSTEM sessions are in blocked state.  The blocking is not cleared even affter restarting the SQL services.
    Verified the SQL Server Errorlog and couldnt get much useful information to troubleshoot the issue.
    pasted the information from the sys.sysprocesses as well for your kind reference.
    Msg 1205, Level 13, State 68, Line 1
    Transaction (Process ID 55) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.
    Msg 5069, Level 16, State 1, Line 1
    ALTER DATABASE statement failed.
    spid
    kpid
    blocked
    waittype
    waittime
    dbid
    login_time
    status
    cmd
    18
    1004
    36
    0x0005
    144
    5
    4/9/2014 13:13
    background                    
    TASK MANAGER    
    35
    1796
    36
    0x0005
    35
    5
    4/9/2014 13:34
    background                    
    TASK MANAGER    
    36
    2464
    37
    0x0005
    363
    5
    4/9/2014 13:34
    background                    
    TASK MANAGER    
    37
    5100
    36
    0x0005
    254
    5
    4/9/2014 13:04
    background                    
    TASK MANAGER    

    Clearly 36 and 37 are causing deadlock.
    see
    https://www.simple-talk.com/sql/database-administration/handling-deadlocks-in-sql-server/
    http://www.mssqltips.com/sqlservertip/1036/finding-and-troubleshooting-sql-server-deadlocks/
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • SQL Server 2012 Reporting services Report Builder ClickOnce in SharePoint integrated mode

    Hi
    I've installed SSRS 2012 in Integrated Mode with SharePoint 2013.
    I've created RS Application, I have the Content types for Report Builder Report but when I try to create a new Report Builder Report from a document library (using ribbon) it try to lauch the following url
    http://sp2013/bi/_layouts/15/ReportServer/RSAction.aspx?RSAction=ReportBuilder&FileUrl=http://sp2013/_layouts/15/ReportServer/rs.rsapplication&SaveLocation=http%3A%2F%2Fsp2013%2Fbi%2FDocuments&Source=http%3A%2F%2Fsp2013%2Fbi%2FDocuments%2FForms%2FAllItems%2Easpx
    which gives an 404 Not found error
    I've installed Report Builder 3.0 as standalone because from SQL installation I didn't get an Report Builder
    What else should I do ?
    I've noticed that ReportBuilder_3.....application is in webservices folder of sharepoint
    Please help
    Sorin Sandu

    Hi Sorin,
    SQL Server 2012 Reporting Services (SSRS) includes stand-alone and ClickOnce versions of Report Builder. The ClickOnce version can be used with Reporting Services installed in native or SharePoint integrated mode. For more information about how to start
    Report Builder, please see:
    http://msdn.microsoft.com/en-us/library/ms159221(v=sql.110).aspx
    Reference:
    SharePoint 2010 – SQL 2012 Reporting Services
    SharePoint 2010 - SQL 2012 Reporting Services Part 2
    Hope this helps.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • RDL Reports are not working after installing SQL Server 2012 Service Pack 2 in the SharePoint integration Mode

    I am using Reporting Service Integration mode with SharePoint. SSRS is installed on separated machine of SharePoint stacks in Integration Mode. Everything was working properly and I could create/edit/modify RDL reports(parameters, Datasource, Subscription)
    inside SharePoint and Document Libraries.
    But after installing SQL Server 2012 Service Pack 2, on opening RDL reports inside SharePoint I receive this error message. 
    The permissions granted to user 'i:0#.f|membership|username' are insufficient for performing this operation. ---> Microsoft.ReportingServices.Diagnostics.Utilities.AccessDeniedException: The permissions granted to user 'i:0#.f|membership|username' are insufficient for performing this operation
    I should mention that SSRS is installed in the SharePoint integration Mode and there is no SSRS management console.

    Hi Hedayat-Abedijoo,
    According to your description, you are using Reporting Services in SharePoint Integrated mode, and everything worked fine before you install SQL Server 2012 Service Pack 2. After the package is installed, when you open RDL reports, the error occurred: The
    permissions granted to user 'i:0#.f|membership|username' are insufficient for performing this operation.
    According to my search, there may be two reasons for the problem:
    This is caused when the application pool account that runs the SharePoint Web application you are on in IIS and the application pool account that SharePoint believes is running the site differ. This happens if the application pool account is changed directly
    in IIS instead of through SharePoint (using the approved method).
    This error can be caused when Kerberos authentication has been set up correctly and delegation in a double hop scenario will succeed, but Reporting Services integration has been set up for Trusted Account rather than Windows Authentication. This causes
    SharePoint to continue to impersonate the logged-on user when contacting Reporting Services; when Reporting Services compares the application pool account to the user account making the request, they are not equal.
    In this case, we can solve the problem by changing the application pool account in IIS back to the previous account and set AuthenticationTypes to RSWindowsNTLM only. For detail information, please refer to 8.3 “The permissions granted to user 'Domain\User'
    are insufficient for performing this operation” in the document:http://msdn.microsoft.com/en-us/library/ee384252(SQL.100).aspx
    If you have any questions, please feel free to let me know.
    Thanks,
    Wendy Fu

  • How to backup/restore credentials in sql server 2012

    Hi, Can any one direct how to restore credentials using T-sql or GUI on SQL Server 2012.
    As per BOL, we know how to create credentials. 
    http://msdn.microsoft.com/en-us/library/ms189522.
    But looking for taking backup/restore credentials sql serve 2012.
    Thanks

    Hi,
    I highly recommend to go from step 1 to the end in this tutorial, but if you realy want to just only to restore than you can start in Lesson 4: Perform a Restore From a Full Database Backup
    http://msdn.microsoft.com/en-us/library/jj852091(v=sql.110).aspx
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • SQL Server 2012 Report Server mode is blank?

    Hi, I have configured SharePoint 2013 with SQL Server 2012 on Windows Server 2012
    with complete features on the same server.
    But when I checked Report Server mode under Report Service Configuration Manager it’s
    showing blank means Report Server mode neither in native mode nor in SharePoint integrated mode.
    What is the issue?
    I want
    Report Server mode should be in SharePoint integrated mode.

    You need to install the Reporting Services - SharePoint feature from the SQL Server installation media onto the SharePoint server. You then need to start the Service Instances in Manage Services on Server and create a new SSRS Service Application in Manage
    Service Applications.
    http://msdn.microsoft.com/en-us/library/gg492276.aspx
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • SQL Server 2012 Express error 9002 while restoring a backup from 2008

    Hi all,
    I have installed SQL Server 2012 Express on my laptop operating with win 8. Then I took the backup in my old laptop with SQL Server 2008R Express / Windows 7 and tried to restore it to the new one.
    After it restored it produced an error messaging saying that restore failed. The error code was 9002 and it says due to NOTHING. I checked the log file it is a file of 1024 kb size, not big. When I installed the SQL 2012 I disabled the autogrowth of the
    log file (exactly same setting as I had with 2008) The log is not big. I tried to further shrink, no change.
    Moreover the db is already there with full records, I can manipulate it.  Even take a back w/o problems. What is this issue? Is it resolved?
    thanks

    an error messaging saying that restore failed. The error code was 9002
    and it says due to NOTHING. I
    select *
    from sys.messages
    where message_id = 9002
    => "The transaction log for database '%ls' is full due to '%ls'. "
    Is your disk may low on free space?
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • How to install sp2 for sql server 2012 , where sql server 2012 instnce is installed in cluster mode

    Hi Everyone,
    I want to install sp2 for sql server 2012, My sql server 2012 instance is installed in cluster mode.
    Please suggest the best practice to install sp2 , what are prerequisite and recommendation.
    Please share installation guide for sp2 in cluster instance, if any one have.
    Thanks All
    Aditya

    Did you searched a bit before posting question.
    Please read
    https://support.microsoft.com/kb/958734?wa=wsignin1.0
    http://blogs.msdn.com/b/john_daskalakis/archive/2014/09/05/how-to-install-a-service-pack-at-a-sql-server-2012-failover-instance-best-practices.aspx
    http://blogs.msdn.com/b/jason_howell/archive/2012/08/28/how-to-patch-sql-server-2012-setup-with-an-updated-setup-package-using-updatesource-to-get-a-smart-setup.aspx
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Restore failure sql server 2012

    Hi All,
    SQL VERSION : 
    Microsoft SQL Server 2012 - 11.0.2100.60 (X64) Feb 10 2012 19:39:15 Copyright (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor).
    I have taken a backup of a database say A and trying to restore the same backup over a new database B. When I try restoring it it fails with error : Exclusive
    access could not be obtained because the database is in use.
    When I uncheck the tail log backup option it doesn't fail but keeps on going for a while. MDF size is about 2 GB and ldf is about 7 GB for the database A.(I know its bad and may be no one has taken a log backup for quite a while)
    Moreover , I found that the mdf and ldf file was created for the new database except that it was still performing the restore until I stopped it.
    Please guide me whether I need to be more patient or there is some other way around.
    Thanks and regards, Rishabh K

    I have taken a backup of a database say A and trying to restore the same backup over a new database B. When I try restoring it it fails with error : Exclusive
    access could not be obtained because the database is in use.
    Thanks and regards, Rishabh K
    This message says that some request was connected to database when you were trying to restore. You need to make sure nothing is accessing DB when you are trying to restore close all open SMS windows and query windows. Run below query
    use master
    go
    alter database db_name ser single_user with rollback immediate
    go
    restore database db_name from disk='location' with replace, recoverey
    --edit restore script as per need
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles
    HI Shanky_621,
    I am working on the dev environment and this is the new DB I have created just before restoring so no body else can request anything.
    One question : is there any possibility that there was uncommitted transaction recorded in the log file which is causing so much time to restore ?
    Thanks and regards, Rishabh K

Maybe you are looking for

  • Hard drive died, how to get music off iPod

    My hard drive died so I lost iTunes. I've reinstalled iTunes and need to move all my music from my iPod to iTunes. If I plug my iPod into my computer, will iTunes take all that music and create a new music library, or will it go the other way around

  • Adobe reader won't open PDF file

    I have Adobe Reader 9 and Windows 8 on a Dell computer. When I try to open a PDF file from a website it sends me to my Library on my computer and won't open the file. If I try to open a PDF file from my Desktop, it opens OK. What can I do to fix this

  • Problem with the Display Driver

    Hi. I just got this message when I started Adobe Photoshop today, that's the CS4 edition, about that there was a problem with the Display driver: "Photoshop have encountered a problem with the display driver, and has temporarily disabled GPU enhancem

  • Airport Express -- not generating IP?

    Hi, here's what's happening. I have a cable modem which is connected to a small 4 port (non configurable) hub. One of the ports goes to my airport express, the other to my tivo. The tivo works in this arrangement, but not the airport. I assumed that

  • Modal Text Search / Find Dialog

    Hi, I'm using CR 2008 SP2 .NET SDK. Is there anyway to set the Find Dialog of the CR Viewer to be a mdi child? Currently it is modal but it makes the usability of this find really horrible. In CRXI this form was not modal.