Cov txheej txheem:

Kuv yuav rov qab SQL Server database hloov pauv li cas?
Kuv yuav rov qab SQL Server database hloov pauv li cas?

Video: Kuv yuav rov qab SQL Server database hloov pauv li cas?

Video: Kuv yuav rov qab SQL Server database hloov pauv li cas?
Video: Data Visualization with Tableau! Refreshing Data Sources 2024, Kaum ib hlis
Anonim

Siv SQL Server Management Studio

  1. Txoj nyem rau ntawm qhov database koj xav tau rov qab los mus rau ib lub sijhawm.
  2. Xaiv Tasks/ Rov qab los / Database .
  3. Nyob ntawm restore database dialog xaiv lub ncua sij hawm xaiv.

Kuj kom paub yog, Kuv yuav ua li cas hloov pauv hauv SQL?

Undo ib hloov . Koj tuaj yeem thim rov qab kev hloov uas tseem tsis tau cog lus rau kev tswj qhov chaw. Hauv Object Explorer, right-click cov khoom, folder, lossis database nrog kev hloov koj xav undo, xaiv Lwm yam SQL ntawv Qhov chaw tswj cov haujlwm > Undo kev hloov . Xwb, right-click ib yam khoom ntawm Commit tab, thiab nyem Undo kev hloov.

Dab tsi yog rollback hauv SQL nrog piv txwv? ROLLBACK yog cov SQL ntawv hais kom ua uas yog siv rau reverting cov kev hloov pauv ua los ntawm ib tug lw. Thaum a ROLLBACK hais kom ua yog muab nws reverts tag nrho cov kev hloov txij li thaum kawg COMMIT los yog ROLLBACK.

Ntawm no, nws puas tuaj yeem thim rov qab tom qab cog lus hauv SQL Server?

Ua hauv SQL Server Commit yog siv rau kev hloov mus tas li. Thaum peb siv cog lus nyob rau hauv ib qho lus nug ces qhov kev hloov pauv los ntawm cov lus nug ntawd yuav raug mus tas li thiab pom. Peb ua tsis tau Rov qab rov qab tus cog lus.

Puas tuaj yeem rov qab ua tiav tom qab cog lus?

Txog thaum koj cog lus kev lag luam: Tom qab koj cog lus kev hloov pauv, cov kev hloov pauv tau pom rau lwm tus neeg siv cov lus uas ua tiav tom qab tus cog lus . Koj tuaj yeem rov qab (undo) tej kev hloov pauv ua thaum lub sij hawm kev lag luam nrog cov ROLLBACK nqe lus (saib ROLLBACK.

Pom zoo: