新聞中心
文章主要描述的是SQL Server數(shù)據(jù)格式修改之時(shí),沒(méi)有對(duì)按鈕進(jìn)行保存的實(shí)際情況的破解,如果你現(xiàn)在使用的是 SQL Server 2008數(shù)據(jù)庫(kù), 當(dāng)你對(duì)其數(shù)據(jù)結(jié)構(gòu)進(jìn)行修改之后,保存時(shí)會(huì)報(bào)下圖情況:

成都創(chuàng)新互聯(lián)專注為客戶提供全方位的互聯(lián)網(wǎng)綜合服務(wù),包含不限于成都做網(wǎng)站、成都網(wǎng)站制作、息烽網(wǎng)絡(luò)推廣、微信小程序開(kāi)發(fā)、息烽網(wǎng)絡(luò)營(yíng)銷、息烽企業(yè)策劃、息烽品牌公關(guān)、搜索引擎seo、人物專訪、企業(yè)宣傳片、企業(yè)代運(yùn)營(yíng)等,從售前售中售后,我們都將竭誠(chéng)為您服務(wù),您的肯定,是我們最大的嘉獎(jiǎng);成都創(chuàng)新互聯(lián)為所有大學(xué)生創(chuàng)業(yè)者提供息烽建站搭建服務(wù),24小時(shí)服務(wù)熱線:18980820575,官方網(wǎng)址:www.cdcxhl.com
Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created.
這是 SQL Server 2008 的一種自我保護(hù),當(dāng)你的修改可能導(dǎo)致數(shù)據(jù)表被刪除并重新創(chuàng)建時(shí)(dropped and re-created),就會(huì)有這個(gè)提醒。
SQL Server數(shù)據(jù)格式修改導(dǎo)致表被重新創(chuàng)建可能是以下幾種情況:
在表中間添加一個(gè)新列;
刪除列
更改列為 Null 性
更改列的順序
更改列的數(shù)據(jù)類型
若要不使用這個(gè)保護(hù),需要在“工具”菜單中單擊“選項(xiàng)”,展開(kāi)“設(shè)計(jì)器”,然后單擊“表設(shè)計(jì)器和數(shù)據(jù)庫(kù)設(shè)計(jì)器”。 清除“阻止保存要求重新創(chuàng)建表的更改”復(fù)選框。
on the Tools menu, click Options, expand Designers, and then click Table and Database Designers. Select or clear the Prevent saving changes that require the table to be re-created check box.
如下圖:
以上的相關(guān)內(nèi)容就是對(duì)SQL Server數(shù)據(jù)格式修改的介紹,望你能有所收獲。
【編輯推薦】
- 優(yōu)化SQL Server數(shù)據(jù)庫(kù)中的注意點(diǎn)
- C#來(lái)對(duì)SQL Server存儲(chǔ)過(guò)程進(jìn)行創(chuàng)建
- SQL Server導(dǎo)入升級(jí)還有什么你沒(méi)做?
- SQL Server索引的使用誤區(qū)講述
- SQL Server索引實(shí)際結(jié)構(gòu)的理解
網(wǎng)站名稱:SQL Server數(shù)據(jù)格式修改忘記保存按鈕的破解
分享鏈接:http://www.5511xx.com/article/dpgidss.html


咨詢
建站咨詢
