原创 sqlserver 2005 sql腳本判斷數據表是否已創建

這裏記錄下來主要是方便自己以後測試,通過print打印結果. DECLARE @t1 NVARCHAR(100) if not exists(select * from sysobjects where name = 'T_flow_s

原创 c# 中如何禁止用戶拖動標題頭部來改變LISTVIEW的標題頭部的列寬

來自帖子:https://bbs.csdn.net/topics/190163760 測試了下面代碼可用,編程環境爲vs2010 ListView的ColumnWidthChanging事件來處理. private void listV

原创 ACCESS中用SUM()函數的精度問題

鏈接來自 https://zhidao.baidu.com/question/74046761.html 我在access中使用sum函數時也遇到了該問題,明明數據表中存儲的數據是兩位小數,通過select value from t_ta

原创 c#中執行腳本語言(vbscript)

1.參考來自鏈接 https://www.xuebuyuan.com/513011.html 與 https://bbs.csdn.net/topics/380229790 這個庫文件Interop.MSScriptControl.dll

原创 SQL Server 2005 無法連接服務器(error:10061)

很久不用數據庫了,突然無法連接不上了,Windows身份驗證與SQL Server身份驗證均連接不上. 提示這個錯誤【在與SQL Server建立連接時出現與網絡相關的或特定於實例的錯誤。未找到或無法訪問服務器。 請驗證實例名稱是否正確並

原创 listbox中添加對象(c#)

來自鏈接 https://bbs.csdn.net/topics/390317481 環境vs2010. using System; using System.Collections.Generic; using System.Comp

原创 如何打包c#編寫的程序

參照這個鏈接【C# winform程序怎麼打包成安裝項目(圖解)】 https://blog.csdn.net/u011981242/article/details/51059441 打包成功,我這裏記錄下,有空把自己測試的打包過程記錄下

原创 SQL Server 小數類型(float 和 decimal)

轉自鏈接 https://www.cnblogs.com/ljhdo/p/4910699.html SQL Server 小數類型(float 和 decimal) 在SQL Server中,實際上小數數值只有兩種數據類型:float 和

原创 vb6.0 option explicit的自動添加

來自鏈接http://blog.sina.com.cn/s/blog_bf20cb3b0101cezc.html 強制聲明變量是指變量在使用之前必須進行聲明。在模塊開始的位置加上option explicit語句,強制顯示聲明模塊中的所有

原创 生成一定範圍內的浮點隨機數

來自鏈接 https://bbs.csdn.net/topics/390689473?page=1 private void button1_Click(object sender, EventArgs e) { Random

原创 使用 MethodInfo 調用帶ref參數的方法

參考來自鏈接 https://bbs.csdn.net/topics/70385719 using System; using System.Collections.Generic; using System.ComponentMode

原创 C#中ref 和 out 的使用介紹(函數多個返回值)

來自鏈接 https://www.cnblogs.com/tangt/p/3914147.html 待有空編寫測試代碼.

原创 c#字符串操作

1.C#字符串多行方式賦值,來自鏈接 https://bbs.csdn.net/wap/topics/350257775 private const string f_string1 = @"using System.W

原创 使用 MethodInfo 調用帶參數的方法

參考來自鏈接 https://www.cnblogs.com/CodingHiding/articles/3328362.html using System; using System.Collections.Generic; usin

原创 c#動態編譯與代碼執行

1.來自鏈接 http://www.cnblogs.com/nanfei/p/6046128.html,https://www.cnblogs.com/lyl6796910/p/4676842.html,https://blog.csdn