freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

詳解mysql數(shù)據(jù)庫(kù)安全配置(編輯修改稿)

2024-09-01 15:40 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 ate void AddObjects(SqlConnection Connection, string Types, string Name, Liststring IgnoreNames, ExcelWorksheet Sheet, ref int Index) { CellStyle itemStyle = new CellStyle()。 ()。 = 。 = 。 CellStyle typeStyle = new CellStyle()。 ()。 = 。 = 。 [Index, 0].Value = Name。 [Index, 0].Style = typeStyle。 Index++。 DataSet data = new DataSet()。 using (SqlCommand mand = new SqlCommand((SELECT * FROM sysobjects WHERE XTYPE IN ({0}) ORDER BY NAME, Types), Connection)) { SqlDataAdapter adapter = new SqlDataAdapter(mand)。 (data)。 if ( 0) { DataTable objects = [0]。 for (int i = 0。 i 。 i++) { string objectName = [i][name].ToString()。 if (!(objectName)) { [Index, 0].Value = objectName。 [Index, 0].Style = itemStyle。 DataSet data2 = new DataSet()。 using (SqlCommand mand2 = new SqlCommand((exec sp_depends 39。{0}39。, objectName), Connection)) { adapter = new SqlDataAdapter(mand2)。 (data2)。 } if ( 0) { DataTable dependencies = [0]。 Dictionarystring, KeyValuePairstring, string uniqueDependencies = new Dictionarystring, KeyValuePairstring, string()。 for (int j = 0。 j 。 j++) { string itemName = [j][name].ToString()。 if (().StartsWith(dbo.)) itemName = (4)。 if (!(itemName)) (itemName, new KeyValuePairstring, string(itemName, [j][type].ToString()))。 } ListKeyValuePairstring, string allItems = new ListKeyValuePairstring, string()。 foreach (KeyValuePairstring, KeyValuePairstring, string item in uniqueDependencies) { (new KeyValuePairstring, string(, ))。 } (new KVPComparer())。 foreach (KeyValuePairstring, string item in allItems) { Index++。 [Index, 1].Value = 。 [Index, 2].Value = 。 } } else { Index++。 [Index, 1].Value = (N/A)。 } Index += 3。 AddProgress((({0}/{1}) {2} done, i + 1, , objectName))。 } else AddProgress((({0}/{1}) {2} ignored, i + 1, , objectName))。 } } else [Index, 0].Value = (N/A)。 } Index++。 } private void AddProgress(string Status) { if (Progress != null) Progress(this, new ProgressEventArgs(Status))。 } } public class ProgressEventArgs : EventArgs { private string status。 public string Status { get { return status。 } set { status = value。 } } public ProgressEventArgs(string Status) { status = Status。 } } internal class KVPComparer : IComparerKeyValuePairstring, string { public int Compare(KeyValuePairstring, string x, KeyValuePairstring, string y) { int pare = (, )。 if (pare == 0) return (, )。 else return pare。 } }} 使用使用很簡(jiǎn)單,編譯(你得找個(gè)EXCEL輸出代碼。),在命令行(改成Win應(yīng)用也可以?。┹斎?個(gè)參數(shù):數(shù)據(jù)庫(kù)名、服務(wù)器名和密碼。當(dāng)然,大家都有自己的品味,喜歡怎么改輸出格式就怎么改吧。 結(jié)論印度資深系統(tǒng)分析員只是讓我給個(gè)EXCEL文件,沒(méi)有讓我寫(xiě)代碼,所以把我自己的研究成果發(fā)上來(lái)也無(wú)傷大雅。一般我都喜歡把寫(xiě)的東西弄成可重用的,不僅僅為了一個(gè)固定的目的,所以也便有了4個(gè)參數(shù)和同時(shí)輸出函數(shù)和視圖的依賴列表。 最后輸出的的EXCEL文件有6000多行,我真懷疑到底有多少人愿意看這個(gè)文件。 題外話其實(shí)漂洋過(guò)海來(lái)了澳洲,來(lái)到這個(gè)都是印度開(kāi)發(fā)人員的公司,經(jīng)常讓我做些工作,最后都不采納的,或許,印度人跟哪個(gè)國(guó)家的人都一樣,對(duì)the new guy表現(xiàn)好的就要讓他halt一下。槍打出頭鳥(niǎo),人怕出名豬怕壯,新人在試用期間又要給老板看表現(xiàn),但又不能讓老員工有壓力,混口飯吃不容易。 譬如讓我用了一個(gè)星期研究SSIS,成果都出來(lái)了,最后給無(wú)視了。所以,也便有了 數(shù)據(jù)處理利器SSIS入門(mén)與進(jìn)階 這篇文章,省得讓我的研究給扔到大海。 譬如讓我研究給那個(gè)巨大的數(shù)據(jù)表分區(qū),我辛苦寫(xiě)了詳細(xì)的計(jì)劃,步驟,相關(guān)的SQL,注意事項(xiàng)等等等,最后我問(wèn)起來(lái),一句話答復(fù):我不會(huì)應(yīng)用的。 另外一個(gè)題外話:同事給報(bào)表執(zhí)行一個(gè)復(fù)雜的SQL查詢(存儲(chǔ)過(guò)程),以前都是在幾秒內(nèi)完成的,某天開(kāi)始,要4分鐘,怎么改都是要4分鐘,任何機(jī)器都是,但在數(shù)據(jù)庫(kù)本身所在的SSMS跑卻正常。后來(lái)在業(yè)務(wù)執(zhí)行插入SET ARITHABORT ON,問(wèn)題解決。最后發(fā)現(xiàn)是SQL Plan出了問(wèn)題,只需要修改一下存儲(chǔ)過(guò)程(隨便加個(gè)空行),保存便可,不需要SET ARITHABORT ON。 另外第二個(gè)題外話,我發(fā)現(xiàn)印度程序員的確能做事的,對(duì)要做的事情很熟悉,譬如那個(gè)資深系統(tǒng)分析員,對(duì)新業(yè)務(wù)的分析是很快捷準(zhǔn)確的。不過(guò)寫(xiě)的代碼和SQL的規(guī)范和質(zhì)量。,就跟大家平時(shí)所說(shuō)的差不多了 更新20100713 ;;,現(xiàn)在可以Copyamp。Paste到WinForm/WPF/WebForm/ MVC...資料引用:數(shù)據(jù)庫(kù)連接字符串大全轉(zhuǎn)自: SQL Server ODBC Standard Security:Driver={SQL Server}。Server=Aron1。Database=pubs。Uid=sa。Pwd=asdasd。 Trusted connection:Driver={SQL Server}。Server=Aron1。Database=pubs。Trusted_Connection=yes。 PRompt for username and passWord:(Prompt) = adPromptAlways Driver={SQL Server}。Server=Aron1。DataBase=pubs。 OLE DB, OleDbConnection (.NET) Standard Security:
點(diǎn)擊復(fù)制文檔內(nèi)容
物理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1