修改Sql Server系統(tǒng)表的方法
作者:佚名
Sql Server系統(tǒng)表在Sql Server不同版本中的修改方法是不太一樣的,下面就將為您分版本進(jìn)行Sql Server系統(tǒng)表修改方法介紹,供您參考。
如果需要修改SQL數(shù)據(jù)庫中的系統(tǒng)表,應(yīng)該如何做呢?下面就將為您介紹修改Sql Server系統(tǒng)表的方法,希望對(duì)您學(xué)習(xí)SQL數(shù)據(jù)庫有所幫助。
一、Sql Server 2000中修改Sql Server系統(tǒng)表的方法如下:
1 EXEC sp_configure 'allow updates', 1
2 RECONFIGURE WITH OVERRIDE;
3 -- do some modification to system tables
4 EXEC sp_configure 'allow updates', 0
5 RECONFIGURE WITH OVERRIDE;
二、Sql Server 2005/2008中修改Sql Server系統(tǒng)表的方法一:
- 1 用"C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Binn\sqlservr.exe" -m啟動(dòng)sql server的單用戶模式
- 2 在打開的SSMS的連接窗口中錄入”admin:InstanceName”。
- 3 進(jìn)行系統(tǒng)數(shù)據(jù)表修改操作。
三、Sql Server 2005/2008修改Sql Server系統(tǒng)表的方法二:
- 1 以普通方式打開SSMS,進(jìn)入“工具”->“選項(xiàng)”->“設(shè)計(jì)器”->“表設(shè)計(jì)器和數(shù)據(jù)庫設(shè)計(jì)器”,去掉“阻止保存要求重新創(chuàng)建表的更改”選項(xiàng)的勾選 。
- 2 在表設(shè)計(jì)器中完成相應(yīng)的操作(比如我這里的將列順序改變),這樣在保存時(shí)SSMS會(huì)自動(dòng)更改Sql Server系統(tǒng)表,達(dá)利曲線救國(guó)的目的。
【編輯推薦】
SQL Server系統(tǒng)表的作用
責(zé)任編輯:段燃
來源:
互聯(lián)網(wǎng)