1. How to start the SQL Server R2 service
1. Right-click on the Manage button on my Computer
2. Double-click Services and applications after entering
3. Double-click the service
4. Select the Paint section and right-click to start
2. Use the cmd command to open
start the service by entering net start Mssqserver in the console
3. Creating and managing SQL Server databases
1. How to create a database
Right-click Database Select New Database
Enter the database name (MySchool)
Select the directory to save the database click OK
4. Separation and addition of databases
How to detach a database:
1. Stop the SQL Server service to copy the. MSD and. ldf files to the USB drive
2. Right-click Student Database task separation OK
Additional steps: Right-click on the database to attach and click Add to find the path to determine
5. Backup and restore of databases
Right-click student task Backup
Select the destination folder for the backup to determine the backup success
2. Restoring a database
Right-click Database Restore Database Select Source Device browse
Select the source address of the backup file to add
Browse to the backup file to determine
Tick the coloring section
OK after restore is successful
and database debt settled a lump sum account