


Create new db located in default location. Restart the database engine to restore the SQL Server to normal multi user mode.Īfter this step the availability group role(resource) should automatically go from failed to online status.Ī. Tdpsqlc Restore master FULL /BackupMethod=Legacy /BackupDestination=TSM /SqlServer=ĭ. If this does not occur, manually take it offline. Start the SQL Server in single-user mode.Īfter this step, the availability group role(resource) will automatically go from an online to failed status. For example the sql script for Archive_stream db would be:ī. All user databases are unattached Īttach each database using a GUI or sql script. Login to SQL SERVER Management Studio and check for a healthy state of the system databases.

After the rebuild, the command prompt should be displayed again.Ĭheck the output from the rebuild of the database to check it was successful:Ĭ:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\Summary.txtįor example the following output shows a successful result:Ĥ. In this case the default instance name is being used, which is MSSQLSERVERģ. The command prompt must be run as Administrator.ĭ:\>Setup /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS= /SAPWD= From a command prompt window, enter the following command. The default location on the server is C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Release.Ģ. Insert the SQL Server 2012 installation media into the disk drive, or from a command prompt, change directories to the location of the setup.exe file on the local server.
