Cov txheej txheem:

Kuv yuav nrhiav tau SQL Server database ntaub ntawv li cas?
Kuv yuav nrhiav tau SQL Server database ntaub ntawv li cas?

Video: Kuv yuav nrhiav tau SQL Server database ntaub ntawv li cas?

Video: Kuv yuav nrhiav tau SQL Server database ntaub ntawv li cas?
Video: Kev Muag Khoom thiab Kev Sib Cuam Tshuam Nrog Cov Neeg Qhua Yam Muaj Kev Nyab Xeeb 2024, Kaum ib hlis
Anonim

Muaj ob peb txoj hauv kev los txiav txim qhov chaw ntawm lub SQL Server mdf ua ntaub ntawv (s) thiab cov ntaub ntawv sib txuas ntaub ntawv (s). Qhib Enterprise Manager, right click on the database koj txaus siab rau thiab xaiv cov khoom. Xaiv tus Cov ntaub ntawv seem thiab scroll hla mus rau qhov Txoj kev thiab FileName kab.

Hauv qhov no, kuv yuav saib cov ntaub ntawv SQL Server database li cas?

Yog tias koj xav tau paub koj ku cov ntaub ntawv database nyob, khiav T- SQL ntawv code: siv tus tswv; SELECT lub npe 'Logical Name', lub cev_name' Cov ntaub ntawv Qhov chaw' NTAWM sys. master_files; Qhov no yuav rov qab ib daim ntawv teev tag nrho cov ntaub ntawv thiab log cov ntaub ntawv rau cov SQL Server piv txwv.

Qhov thib ob, cov ntaub ntawv txuas ntxiv rau SQL database yog dab tsi? SQL ntawv Server databases siv ob cov ntaub ntawv - ib MDF ntaub ntawv , lub npe hu ua thawj cov ntaub ntawv database , uas muaj cov schema thiab cov ntaub ntawv , thiab LDF ntaub ntawv , uas muaj cov cav. Saib wikipedia. A database kuj tseem tuaj yeem siv lwm yam cov ntaub ntawv database , uas ib txwm siv a. ndf ua txuas ntxiv.

Kuj kom paub, SQL Server database cov ntaub ntawv khaws cia nyob qhov twg?

Qhov system cov ntaub ntawv database rau cov database yog khaws cia hauv cov neeg siv lub zos AppData txoj kev uas ib txwm muab zais. Piv txwv li C:Users--user--AppDataLocalMicrosoftMicrosoft SQL Server Hauv zos DB InstancesLocalDBApp1.

Kuv yuav saib SQL cav li cas?

Mus saib cov cav uas muaj feem xyuam rau kev ua haujlwm ntawm SQL Server

  1. Txoj cai-nias SQL Server Logs, taw tes rau Saib, thiab tom qab ntawd nyem SQL Server Log lossis SQL Server thiab Windows Log.
  2. Nthuav SQL Server Logs, right-click any log file, and then click View SQL Server Log. Koj tuaj yeem muab ob npaug rau-nias txhua daim ntawv teev npe.

Pom zoo: