摘要: https://blog.darkthread.net/blog/access-sharepoint-doclib-with-dotnet/ 可参考它的方法.代码是通用的(它里面包括了文件夹操作等) 我安装的包如下: 读取文件: var ctx = new ClientContext(url); / 阅读全文
posted @ 2020-11-06 13:55 望着天的蜗牛 阅读(884) 评论(0) 推荐(0)
摘要: 1.应用场景: A,B两台服务器或两个实例中的两个数据库adb需要访问bdb 临时使用,方式可以像下面这样操作 select * From openrowset('SQLOLEDB','数据库实例名';'账号';'密码',数据库.dbo.表) 如果是长期使用可以有访问需求的服务器上与被访问服务器创建 阅读全文
posted @ 2020-09-09 14:33 望着天的蜗牛 阅读(225) 评论(0) 推荐(0)
摘要: 共享目录前设置权限 (非NTFS这种方式可以直接 把权限设好) net share abc=d:\1 /grant:administrator,full 如果是NTFS的可以使用下面的命令来设置权限 1、cacls D:\test /E /R 域\administrator (取消administr 阅读全文
posted @ 2020-08-18 11:04 望着天的蜗牛 阅读(1051) 评论(0) 推荐(0)
摘要: pgsql 1. 没有isnull 用 coalesce 2. 字符串拼接用 || 3. 字符串类型和int类型不会自动转换(用作条件时) 4. 多行转一列 string_agg(distinct(字段名),'分隔符') distinct是为了去重可以不要 5. unnest(string_to_a 阅读全文
posted @ 2020-06-09 10:15 望着天的蜗牛 阅读(372) 评论(0) 推荐(0)
摘要: select e.Customer,a.SAPModel,a.PackNo,a.Quantity,a.Bin,a.LastUpdated as StockInTime,a.High,a.Width,a.Length, a.Weight, a.Batch, case when a.PackedType 阅读全文
posted @ 2020-03-11 14:47 望着天的蜗牛 阅读(682) 评论(0) 推荐(0)
摘要: --拷指定分支的提交到另一分支 1、切换分支到V1.0.10:git checkout V1.0.10 2、git log 查看V1.0.9分支的前七位符号 3、在V1.0.10上git reset --hard c1d5362(V1.0.9前七位符号) 4、然后正常执行 git add . --拷 阅读全文
posted @ 2020-03-04 11:15 望着天的蜗牛 阅读(712) 评论(0) 推荐(0)
摘要: ivew非template/render模式 模式下标签注意 阅读全文
posted @ 2020-02-20 10:10 望着天的蜗牛 阅读(1376) 评论(0) 推荐(1)
摘要: 环境 win 10 使用原因: 刚刚开始做项目,上传的附件都直接存在网站目录下了. 使用 Server..MapPath("~/")或 AppDomain.CurrentDomain.BaseDirectory 方式取的网站运行的物理根路径 , 但在后期使用过程中发现用户上传的东西越来越多.放在网站 阅读全文
posted @ 2020-01-08 14:16 望着天的蜗牛 阅读(858) 评论(0) 推荐(0)
摘要: 版权声明:本文为CSDN博主「暮雪寒寒」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/qq_27628011/article/details/89319710 MERGE tABatch AS t -- 需 阅读全文
posted @ 2019-11-25 14:18 望着天的蜗牛 阅读(301) 评论(0) 推荐(0)
摘要: declare @did int select @did=request_session_id from sys.dm_tran_locks where resource_type = 'OBJECT' and resource_database_id =DB_ID('数据库名') kill @di 阅读全文
posted @ 2019-11-20 15:33 望着天的蜗牛 阅读(347) 评论(0) 推荐(0)