摘要:
encryptstring DESCryptoServiceProvider desc = new DESCryptoServiceProvider(); byte[] key = System.Text.Encoding.Unicode.GetBytes(encryptkey); byte[] data = System.Text.Encoding.Unicode.GetBytes(encryp... 阅读全文
摘要:
SQL Server中执行带参数的存储过程的方法是:EXEC 存储过程名字 ‘参数1′,’参数2′,数值参数EXEC 是一个关键字。 阅读全文
摘要:
// sb sqlstring setting = System.Configuration.ConfigurationManager.AppSettings["ConnectString"].ToString(); SqlConnection myconn = new SqlConnection(setting); myconn.Open(); SqlCommand cmd = new SqlC... 阅读全文