摘要: encryptstring DESCryptoServiceProvider desc = new DESCryptoServiceProvider(); byte[] key = System.Text.Encoding.Unicode.GetBytes(encryptkey); byte[] data = System.Text.Encoding.Unicode.GetBytes(encryp... 阅读全文
posted @ 2010-04-30 20:56 greencolor 阅读(236) 评论(0) 推荐(0) 编辑
摘要: SQL Server中执行带参数的存储过程的方法是:EXEC 存储过程名字 ‘参数1′,’参数2′,数值参数EXEC 是一个关键字。 阅读全文
posted @ 2010-04-30 02:04 greencolor 阅读(162) 评论(0) 推荐(0) 编辑
摘要: // sb sqlstring setting = System.Configuration.ConfigurationManager.AppSettings["ConnectString"].ToString(); SqlConnection myconn = new SqlConnection(setting); myconn.Open(); SqlCommand cmd = new SqlC... 阅读全文
posted @ 2010-04-30 01:31 greencolor 阅读(164) 评论(0) 推荐(0) 编辑