Kuv yuav xaiv tus schema hauv SQL Server li cas?
Kuv yuav xaiv tus schema hauv SQL Server li cas?

Video: Kuv yuav xaiv tus schema hauv SQL Server li cas?

Video: Kuv yuav xaiv tus schema hauv SQL Server li cas?
Video: Автоматизация с Python! Автоматическое выполнение скрипта (Windows 10) 2024, Lub peb hlis ntuj
Anonim

Siv SQL Server Management Studio

Right-click lub Security folder, taw tes rau Tshiab, thiab xaiv Schema . Hauv Schema - Tshiab dialog box, ntawm nplooj ntawv General, sau ib lub npe rau tus tshiab schema hauv Schema npe box. Hauv Schema tus tswv lub thawv, sau lub npe ntawm tus neeg siv database lossis lub luag haujlwm los ua tus tswv schema.

Tib neeg kuj nug, Kuv yuav xaiv ib qho schema hauv SQL li cas?

Siv SQL ntawv Server Management Studio Txoj cai-nias lub Security folder, taw tes rau Tshiab, thiab xaiv Schema . Hauv Schema - Tshiab dialog box, ntawm nplooj ntawv General, sau ib lub npe rau tus tshiab schema hauv Schema npe box. Hauv Schema tus tswv lub thawv, sau lub npe ntawm tus neeg siv database lossis lub luag haujlwm los ua tus tswv schema.

Ib yam li ntawd, kuv yuav hloov schema hauv SQL Server li cas? Rau hloov schema ntawm ib lub rooj los ntawm kev siv SQL Server Management Studio, hauv Object Explorer, right-click on the table and then click Design. Nias F4 kom qhib lub qhov rais Properties. Hauv Schema lub thawv, xaiv ib qho tshiab schema . Pib nrog SQL Server 2005, tus cwj pwm ntawm schemas hloov.

Kuj nug, dab tsi yog schema hauv SQL Server nrog piv txwv?

Dab tsi yog a schema hauv SQL Server . A schema yog ib phau ntawm cov khoom siv database xws li cov ntxhuav, views, triggers, khaws cia cov txheej txheem, indexes, thiab lwm yam. Ntawm qhov tod tes, ib lub database yuav muaj ib los yog ntau yam. schemas . Rau piv txwv , hauv peb BikeStores qauv database, peb muaj ob schemas : kev muag khoom thiab kev tsim khoom.

Kuv yuav muab kev nkag mus rau schema hauv SQL Server li cas?

Koj tuaj yeem GRANT schema kev tso cai uas muaj txiaj ntsig rau txhua yam uas twb muaj lawm thiab txhua yam uas yuav muaj nyob hauv qhov ntawd schema . GRANT SELECT, INSERT, UPDATE, DELETE ON SCHEMA :: < schema > TSI; Ntxiv mus, yog tias koj xav tau ces tsis kam kev tso cai ntawm ib yam khoom hauv qhov ntawd schema , koj ua tau.

Pom zoo: