index / page info
heap/clustered index / nonclustered index
訂閱端誤刪table,重新initialize 單一table
- 40
- 0
訂閱端誤刪table,重新initialize 單一table
SSMS無法開啟ErrorLog (An exception occurred while executing a Transact-SQL statement or batch. Microsoft.SqlServer.ConnectionInfo)
- 73
- 0
Msg 22004, Level 16, State 1, Line 0
Failed to open loopback connection. Please see event log for more information.
Msg 22004, Level 16, State 1, Line 0
Error log location not found.
DB mail not working
Mail stuck in ExternalMailQueue
This login ([NT SERVICE\MSSQLSERVER ) is needed, no matter DB mail was configured under which service account.
Permission to Create CNO VNO
若要自動建立 CNO,建立容錯移轉叢集的使用者必須擁有組織單位 (OU) 或是將構成叢集的伺服器所在容器的 Create Computer objects/建立電腦物件 權限。
fn_dblog & fn_dump_dblog
fn_dblog & fn_dump_dblog
You cannot reference a synonym that is located on a linked server. Msg 7357,Msg 7357
- 86
- 0
SQL 重啟時會以sys.master_files記錄的size重建TempDB
SQL 重啟時會以sys.master_files記錄的size重建TempDB
- tempdb.sys.database_files : 記錄目前size
- sys.master_files : 記錄configured size / SQL重啟時會以configure size建立Temp DB
set statistics IO on
physical and logical IO activity
AG + TDE
- 55
- 0
AG + TDE
DB Mirror / without join Domain / 使用 Certificate for outbond connection
DB Mirror without join domain
Linked Server / 連到 AG readonly node
Linked Server 連到 AG readonly node
AG 設定replication後加入新節點
- 178
- 0
若replica是在Replication設定後才加入AG,那麼該replica可能無法即時看見Local Publications。若該replica開放readable 或是當AG failover到該replica時,便可看見。
AG + Read-only Routing
AG + Read-only Routing
DBCC checkdb / dbcc checktable
- 65
- 0
- 2022-09-21
DBCC checkdb / dbcc checktable
SqlLocalDB 公用程式
SqlLocalDB / multiple versions
SetSPN 好用工具 - Microsoft Kerberos Configuration Manager for SQL Server
SetSPN
sys.messages
- 503
- 0
SQL error code 列表
啟動mirroring時發生SQL Error 927
Database '%.*ls' cannot be opened. It is in the middle of a restore