摘要:
string hostName = ConfigurationManager.AppSettings["HostName"]; string userName = ConfigurationManager.AppSettings["UserName"]; string password = Conf 阅读全文
摘要:
USE 数据库名称; GO ALTER DATABASE 数据库名称SET RECOVERY SIMPLE; GO DBCC SHRINKFILE (数据库名称_Log, 1); GO -- Reset the database recovery model. ALTER DATABASE 数据库名 阅读全文
摘要:
/// <summary> /// 压缩文件 /// </summary> /// <param name="sourceFilePath">原文件夹路径</param> /// <param name="destinationZipFilePath">目的文件路径以及文件名称</param> pu 阅读全文
摘要:
/// <summary> /// 将json转换为DataTable /// </summary> /// <param name="strJson">得到的json</param> /// <returns></returns> private System.Data.DataTable Jso 阅读全文
摘要:
//connectionString 连接数据库字符串 TableName 需要导入的数据表名 dt 需要导入的DataTable private bool SqlBulkCopyByDatatable(string connectionString, string TableName, Syste 阅读全文
摘要:
运行 :C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis -i 等待安装完成.... 阅读全文
摘要:
--开启游标遍历查询所需信息 declare @code varchar(50) declare my_test cursor for --定义游标 select DISTINCT Files[字段] from 【源表名】 --打开游标遍历循环条码 open my_test while @@FETC 阅读全文
摘要:
/// <summary> /// List转成json /// </summary> /// <typeparam name="T"></typeparam> /// <param name="jsonName"></param> /// <param name="list"></param> / 阅读全文
摘要:
function clearNoNum(obj) { //先把非数字的都替换掉,除了数字和. obj.value = obj.value.replace(/[^\d.]/g, ""); //必须保证第一个为数字而不是. obj.value = obj.valu... 阅读全文
摘要:
var imgs=document.getElementsByTagName("img");for(var i = 0;imgs[i];i++){ imgs[i].setAttribute('src', 'http://www.****.com/' + (imgs[i].getAttribute('... 阅读全文