Uninstall: Execute the command c:\\sqlserver2005\\Setup.exe /qb REMOVE=ALL INSTANCENAME=<InstanceName> where setup.exe is the installation after SQLEXPR_ADV.EXE decompression program. The reason for this is because the control panel is not clean when uninstalled, and the instance of sql is still there. This method is best. Automatic backup: Original: http://www.mssqltips.com/tip.asp?tip=1174 Idea: 1: Generate an automatic backup sql script, a storage process called sp_BackupDatabase.
1USE [master] 2GO 3/**//****** Object: StoredProcedure [dbo].[sp_BackupDatabase] Script Date: 02/07/2007 11:40:47 **** **/4SET ANSI_NULLS ON 5GO 6SET QUOTED_IDENTIFIER ON 7GO 8 910-- ============================================ ========== 11-- Author: Edgewood Solutions 12-- Create date: 2007-02-07 13-- Description: Backup Database 14-- Parameter1: databaseName 15-- Parameter2: backupType F=full , D=differential, L=log16-- ================================================= ===== 17CREATE PROCEDURE [dbo].[sp_BackupDatabase] 18 @databaseName sysname, @backupType CHAR(1) 19AS 20BEGIN 21 SET NOCOUNT ON; 2223 DECLARE @sqlCommand NVARCHAR(1000) 24 DECLARE @dateTime NVARCHAR(20) 2526 SELECT @dateTime = REPLACE(CONVERT(VARCHAR, GETDATE(),111),'/','') + 27 REPLACE(CONVERT(VARCHAR, GETDATE(),108),':','') 2829 IF @backupType = 'F' 30 SET @sqlCommand = 'BACKUP DATABASE ' + @databaseName + 31 ' TO DISK = ''C :\\Backup\\' + @databaseName + '_Full_' + @dateTime + '.BAK''' 32 33 IF @backupType = 'D' 34 SET @sqlCommand = 'BACKUP DATABASE ' + @databaseName + 35 ' TO DISK = ' 'C:\\Backup\\' + @databaseName + '_Diff_' + @dateTime + '.BAK'' WITH DIFFERENTIAL' 36 37 IF @backupType = 'L' 38 SET @sqlCommand = 'BACKUP LOG ' + @databaseName + 39 ' TO DISK = ''C:\\Backup\\' + @databaseName + '_Log_' + @dateTime + '.TRN''' 40 41 EXECUTE sp_executesql @sqlCommand 42END
Note that you have to compile it. 2: Call a sql script 2 of this stored procedure. This script can be called by an external program, using sqlcmd.exe to explain the execution.
1sp_BackupDatabase 'master', 'F'2GO3sp_BackupDatabase 'model', 'F'4GO5sp_BackupDatabase 'msdb', 'F'6GO7QUIT
3: Set up a scheduled task, execute the above script every day 2. < Br>sqlcmd -S serverName -E -i C:\\Backup\\Script 2.sql
The above statement is the parameter of the scheduled task "Run".
How to modify the maximum number of remote desktop connections1, open the Group Policy Editor window
The memory of the computer is limited. These netizens know that, when buying a computer, they always
registry can not open how to do? My computer, when the registry is opened, the prompt is disabled by
1. Create a new website under IIS6 and use that port 80. 2, remember that IIS default ASP.NET is 2.0
A simple way to exchange NTFS and FAT32 file system
Improve Windows 2003 speed method
How to implement Windows Server 2003 network load balancing
Crack the detailed steps of the win2003 "Terminal Server Authorization" activation license
phpMyAdmin appears blank (error) solution
Let windows server 2003 32-bit support 8G memory large memory
Win2003 system reinstall NTFS partition can not access the solution
Win2003 through the system file checker to help you solve the DLL file loss problem
Easily turn off win2003 shutdown prompt window to speed up the shutdown speed
Quick way to quickly release system memory in windows2003 system
An unexpected error occurred 0x8ffe2740 IIS failed to start
Disable win2003 shutdown event tracking program and shutdown audit to make shutdown acceleration
Win10 opens multiple ways of remote desktop
Win7 start menu program background color inconsistency how to solve?
Delete damaged win8 application and normal software that cannot be deleted normally
What are the attacks on the web server?
Use Ghost to achieve backup of Linux system
Quickly improve the speed of anti-virus software
Win10 10130 taskbar brings new download progress indicator animation show
Want to flash BIOS to activate Windows 7? First look at your own BIOS SLIC