【正文】
iews, they did not simplify the administration, design, or development of a partitioned data set. When using partitioned views, all of the base tables (on which the view is defined) must be created and managed individually. Application design is easier and users benefit by not needing to know which base table to directly access, but administration is plex as there are numerous tables to manage and data integrity constraints must be managed for each table. Because of the management issues, partitioned views were often used to separate tables only when data needed to be archived or loaded. When data was moved into the readonly table or when data was deleted from the readonly table, the operations were expensive—taking time, log space, and often creating blocking. Additionally, because partitioning strategies in previous versions required the developer to create individual tables and indexes and then UNION them through views, the optimizer was required to validate and determine plans for each partition (as indexes could have varied). Therefore, query optimization time in SQL Server2000 often goes up linearly with the number of processed partitions. In SQL Server 2005, each partition has the same indexes by definition. For example, consider a scenario in which the current month of Online Transaction Processing (OLTP) data needs to be moved into an analysis table at the end of each month. The analysis table (to be used for readonly queries) is a single table with one clustered index and two nonclustered indexes。感謝所有關(guān)心、支持、幫助過我的良師益友。在我撰寫畢業(yè)設(shè)計的過程中,趙老師傾注了大量的心血和汗水,無論是在畢業(yè)設(shè)計的選題、構(gòu)思和資料的收集方面,還是在畢業(yè)設(shè)計的研究方法以及成文定稿方面,我都得到了趙老師悉心細致的教誨和無私的幫助,特別是她廣博的學識、深厚的學術(shù)素養(yǎng)、嚴謹?shù)闹螌W精神和一絲不茍的工作作風使我終生受益,在此表示真誠地感謝和深深的謝意。雖然這個設(shè)計還不是很完善,但是在設(shè)計過程中所學到的東西是這次畢業(yè)設(shè)計的最大收獲和財富,使我終身受益。我學到了許多書本上沒有的知識,明白了自己原來知識還比較欠缺,明白了學習是一個長期積累的過程,明白了程序開發(fā)工作不僅僅是對知識掌握的考驗,更是對一個人的信心、毅力等意志品質(zhì)的考驗。我會在以后的學習中再接再厲,希望在今后的實踐學習中能夠?qū)W到更多的知識,來完善該系統(tǒng)。 進一步改進思想“天津農(nóng)學院學生獎項管理系統(tǒng)”還有很多不完善的地方,有一些功能還沒有實現(xiàn),如學生對自己獎項的管理;有一些功能還不是很完善,如后臺管理操作。 }5 討論 設(shè)計存在的問題此系統(tǒng)設(shè)計中,系統(tǒng)的功能基本得到實現(xiàn),但是在系統(tǒng)的邏輯完整性還有些欠缺。刪除失??!39。)/script)。 if (() 0) { (delSuccess,script language=javascriptalert(39。 SqlCommand cmd = new SqlCommand(sql, conn)。 //鎖定用戶信息的行 string sql = DELETE FROM tb_adminInfo WHERE adminID = 39。 SqlConnection conn = new SqlConnection(strcon)。Initial Catalog=prizeManagementDB。如圖17所示。 ( != )) }(5)管理員管理 此項功能中,超級管理員可以添加國家級、市級、院級,以及各個系級的管理員,輸入賬號、姓名、級別類型即可添加,也可以刪除管理員名額。 } else if ( != null amp。 if ( != getPassword(Session[adminID].ToString())) { = true。 = false。 Session[adminName] = 。 } else if ( == ) { = true。 = false。如圖16所示。 (0, new ListItem(請選擇, ))。 = ID。 = ds。 (ds, nameTable)。 SqlDataAdapter da = new SqlDataAdapter(sql, conn)。 + level + 39。 SqlConnection conn = new SqlConnection(sqlcon)。Initial Catalog=prizeManagementDB。如圖15所示。 } } ()。)/script)。 if (() 0) { (perfect, script language=javascriptalert(39。 SqlCommand cmd = new SqlCommand(sql, conn)。 WHERE ID = 39。, prizeDetail = 39。, prizeDemo = 39。 string sql = UPDATE tb_prizeInfo SET prizeName = 39。Integrated Security=True。圖 14 獎項管理頁面部分代碼://更新數(shù)據(jù)修改 private void prizeInfoUpdate() { string strcon = Data Source=.。 } (2)獎項管理 在此項功能中,管理員以及各系級別老師,可以增加獎項名稱,修改獎項內(nèi)容,可以不斷的完善數(shù)據(jù)庫中獎項種類。 } else { =。 } if (category == 001) { = false。 = ()。 if (!IsPostBack) { Int year=()。 = false。 = false。 = false。 圖 13 學生管理頁面部分代碼: 綁定添加學生信息各個控件 protected void itemsBind(string category) { if (category == 002 || category == 003 || category == 004) //國家級、市級、院級管理員看不到此模塊 { = true。具體功能介紹如下: (1)學生管理功能在學生管理功能模塊中,我們可以選擇學生性別,系別,入學年份;根據(jù)入學年份、系別自動生成學號前四位,最后三位需要管理員自己輸入學生編號,添加學生信息,或者刪除學生信息,對信息進行修改。輸入賬號、密碼即可進入后臺,不同級別的管理員進入后臺頁面會顯示不同的效果, 如圖12所示。 ()。 GROUP BY stuNumber ORDER BY stuNumber DESC。 string sql = SELECT COUNT(*) AS prizeSum FROM tb_stuPrize WHERE stuNumber = 39。Initial Catalog=prizeManagementDB。 } //顯示該學生的獲獎次數(shù) protected void onRowsDataBound(object sender, GridViewRowEventArgs e) //左DATALIST數(shù)據(jù)綁定自動觸發(fā)事件 { if ( == ) { string stuNumber = [0].Text。 ()。 ()。 (ds)。 DataSet ds = new DataSet()。 string sql = 。Initial Catalog=prizeManagementDB。圖 11 統(tǒng)計查詢頁面部分代碼: private void GridViewStuStaticsBind() { = 。} 統(tǒng)計查詢頁面在統(tǒng)計查詢頁面中,當輸入榮獲獎項次數(shù),就可以顯示具體信息,例如輸入獲獎次數(shù)為1次以上,就會顯示所有獲得過1次以上獲獎的學生具體信息。 } } protected void onRowsCommand(object sender, GridViewCommandEventArgs e) { //GridViewRowgvRow= (GridViewRow)((Button)()).。 (ds, sameNamePrize)。 SqlDataAdapter da = new SqlDataAdapter(sql, conn)。 + + 39。 + prizeName + 39。Integrated Security=True)。 SqlConnection conn = new SqlConnection(Data Source=.。圖 9 農(nóng)學院獎項查詢頁面在如圖8所示的頁面中,如果點擊“獎項說明”,則會出現(xiàn)如圖10所示的頁面查詢查詢效果。如圖8所示。 } } 獎項查詢頁面此頁面中,實現(xiàn)的功能為選擇獲獎級別,可以查出獲得此級別獎項的學生人數(shù)、以及獎項具體說明。 = 沒有學號為“ + [text] + ”的學生獎項信息,或該學號不存在!。 = (paintColor(level))。 //獲取其中控件hideContent的文本值 ((