Cov txheej txheem:

Sp_who yog dab tsi hauv SQL Server?
Sp_who yog dab tsi hauv SQL Server?

Video: Sp_who yog dab tsi hauv SQL Server?

Video: Sp_who yog dab tsi hauv SQL Server?
Video: yam ua koj ntshaw yog dab tsi (123 yexus hlub kuv) 2024, Tej zaum
Anonim

sp_ uas yog cov txheej txheem khaws cia uas tsim los rov qab cov ntaub ntawv hais txog cov ntu tam sim no hauv cov ntaub ntawv. Cov kev sib tham no feem ntau hu ua SPIDS ( Server Cov txheej txheem ID). Thaum sp_ uas yog qee zaum siv, nws tus muam tus txheej txheem sp_koj 2 yog siv ntau zaus.

Ntawm no, sp_who2 yog dab tsi?

sp_koj 2 yog undocumented li no unsupported stroed txheej txheem nyob rau hauv SQL neeg rau zaub mov, tab sis dav siv instted ntawm sp_who los sau cov txheej txheem tam sim no muaj nyob rau hauv SQL Server. Tsis tas li ntawd, sp_koj 2 ua rau kev siv zog ua kom cov zaub kom zoo li compact li ua tau rau cov zis hauv hom ntawv.

Dab tsi yog SPID hauv SQL Server? A SPID hauv SQL Server yog a Server Tus txheej txheem ID. Cov txheej txheem ID no yog qhov tseem ceeb ntawm kev sib tham hauv SQL Server . Txhua zaus ib daim ntawv thov txuas rau SQL Server , kev sib txuas tshiab (los yog SPID ) yog tsim. Qhov kev sib txuas no muaj qhov tshwj xeeb thiab qhov chaw nco thiab tsis tuaj yeem cuam tshuam nrog lwm tus SPIDs.

Hais txog qhov no, qhov txawv ntawm Sp_who thiab sp_who2 yog dab tsi?

Cov sp_who thiab sp_who2 ob qho tib si commands lub hom phiaj yog tib yam. Tab sis lub txawv yog, sp_ uas txhawb nqa cov kab lus txwv tsis pub hais txog cov txheej txheem tam sim no hauv SQL Server. sp_koj 2 txhawb qee cov kab lus ntxiv txog cov txheej txheem uas tam sim no khiav hauv SQL Server ces sp_ uas lus txib.

Koj tuaj yeem tshawb xyuas dab tsi ua haujlwm ntawm SQL Server?

Txhawm rau txheeb xyuas cov xwm txheej ntawm SQL Server Agent:

  1. Nkag mus rau Database Server computer nrog tus Thawj Tswj tus account.
  2. Pib Microsoft SQL Server Management Studio.
  3. Nyob rau sab laug pane, txheeb xyuas SQL Server Agent tab tom khiav.
  4. Yog hais tias SQL Server Agent tsis khiav, right-click SQL Server Agent, thiab ces nias Start.
  5. Nyem Yog.

Pom zoo: