SQL Server 2000,一個資料表上要建立索引時,出現以下訊息,
不得在一個資料表上建立超過 249 個非叢集索引或資料行統計資料
Cannot create more than 249 nonclustered indices or column statistics on one table.
先查看索引數,當然不可能有249個,所以查詢了統計資訊。
select 'drop statistics '+object_name(a.id)+'.'+a.name
from sysindexes a inner join .sysindexkeys b
on a.id = b.id and a.indid = b.indid inner join syscolumns c
on b.id = c.id and b.colid = c.colid
where indexproperty(a.id, a.name, 'IsStatistics') = 1
and object_name(a.id) = 'your_table'
先確認是否已有249個統計值,如果有,就先刪除不要的,再建一次index應該就行了。
訂閱:
張貼留言 (Atom)
pdf.js 無法顯示部份字
有個檔案在pdf viewer套件中無法顯示內容,但下載檔案後使用工具又可以正常顯示。 本來以為是套件版本太舊的原因,於是去下載pdf viewer套件 https://github.com/mozilla/pdf.js 更新後還是一樣。 覺得應是字型缺漏的問題,於是用PDF-X...
-
上網找了免費的白箱檢測工具,找到了 puma scan 因為支援OWASP TOP 10的檢測,所以這是一個符合客戶需求又能與Visual studio結合的工具(白話說...交差了事矣....) 更重要的是這不用錢....檢測工具都貴森森的,尤其是源碼檢測工具。 ht...
-
建了一個工作排程,定時執行batch檔。 batch中寫了一段xcopy,主要針對有異動較新檔案時才複製。 echo off for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find...
-
.net 執行SQL指令時,出現以下錯誤。 已經開啟一個與這個 Command 相關的 DataReader,必須先將它關閉。 在web.config connectionstring 加入 "MultipleActiveResultSets=True...
沒有留言:
張貼留言