早上看到有個Database Backup的Job失敗(SQL Server 2005),錯誤如下:The owner () of job <Job Name> does not have server access. 這個Job的Owner是域使用者,而且確定是有許可權可以訪問資料庫的。直接用域賬戶從Management studio登陸沒有問題。將Job Owner更改為SQL
今天準備測試SQL Server 2012 Cluster的功能,但是Cluster需要共用磁碟。按照以前在VM7中的方法增加磁碟然後修改都失敗了,後來看到網上用iSCSI Software Initiator類比共用磁碟的。測試下來完全沒有問題,今天把這篇文章轉載過來跟大家分享。 Creating a SQL Server Failover Cluster in virtual machines is a fantastic learning experience, especially
By Gail Shaw, 2010/04/23 (first published: 2009/02/16) A corrupt database is probably one of most DBA's worst nightmares. It results in downtime, managers shouting and all other sorts of unpleasant thingsIn this article, I'm going to explain some of
最近使用者有個需求,需要監控檔案夾下面檔案的數量。如果超過一定的閥值需要發MAIL預警。從網上找了些VB Script的代碼然後自己修改了一下就可以了。 原始碼如下: strMessage = "File number more than10, please check"strTo= "sample@home.cn"strFrom="sample@home.cn"strSubject="File number more than 10,please
SQL Server 2012引入了資料行存放區索引,對每列的資料進行分組和儲存,然後聯結所有列以完成整個索引。這不同於傳統索引,傳統索引對每行的資料進行分組和儲存,然後聯結所有行以完成整個索引。 在訪問基於行儲存的索引時,如果要查詢一個欄位需要將整個Page讀入記憶體,所以預設會讀到所有行的資料:通過上面的圖片可以看出,如果一個查詢只想查詢欄位A的值,代價是讀取所有的頁面,包括了不需要的欄位B,C,D,E。
前一段時間測試SQL Server 2014記憶體資料庫的時候發現如果資料庫大小超過了設定的最大記憶體,SQL Server出現Error: 701錯誤。 錯誤資訊: Error: 701, Severity: 17, State: 123.There is insufficient system memory in resource pool 'internal' to runthis