上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页
摘要: 1.先配置允许远程连接 2.SQL server 配置管理器 a)启动TCP/IP b)配置IP端口 下面的端口多个实例,一定不能相同,否则连接不上 3.配置防火墙,入站规则 4.测试连接登录 a) IP/实例名 (有时设置完,还是报错,重启电脑。如果还是不行,尝试第二种登录方式) b)IP,端口 阅读全文
posted @ 2021-05-21 10:48 乌柒柒 阅读(1145) 评论(0) 推荐(1) 编辑
摘要: //循环 Thread thread=new Thread(() => { string vv = ""; while (true) { if (on_off) { getWeightEvent = new ManualResetEvent(false); getWeightEvent.WaitOn 阅读全文
posted @ 2021-01-19 10:58 乌柒柒 阅读(2013) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/sun307146966/article/details/8862101 一、List<T>对象中的T是值类型的情况(int 类型等) 对于值类型的List直接用以下方法就可以复制: List<T> oldList =new List<T>(); o 阅读全文
posted @ 2020-12-18 14:48 乌柒柒 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 来源:https://mp.weixin.qq.com/s/4uW6z8yvTt89_y9OyK_y5g 1.record 类型(record 是引用类型,跟 class 很像(确实差不多)) Cat pet1 = new Cat { Nick = "松子", Name = "Jack", Age 阅读全文
posted @ 2020-11-26 15:41 乌柒柒 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 应尽量避免在 where 子句中使用 or 来连接条件,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num=10 or num=20 可以这样查询: select id from t where num=10union allselect id fr 阅读全文
posted @ 2020-11-19 16:51 乌柒柒 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 分组后拼接字符串 SELECT pgs.PtypeId,pgs.KtypeId,pgs.pgDetail,SUM(pgs.pgDetail) ,stuff((select 'ǒǜ'+convert(varchar(25), g.pgIDCode) FROM (SELECT pggoodsidcode 阅读全文
posted @ 2020-10-21 16:33 乌柒柒 阅读(109) 评论(0) 推荐(0) 编辑
摘要: “值字符串”.PadLeft(“设定长度的字符串”, '0') 例如:“12”.PadLeft(“0001”, '0') 值为:0012 阅读全文
posted @ 2020-09-27 17:41 乌柒柒 阅读(103) 评论(0) 推荐(0) 编辑
摘要: DECLARE @table1 TABLE ( ID INT , Col1 NVARCHAR(50) , Col2 NVARCHAR(50) ); INSERT INTO @table1 VALUES ( 1, 'a,b,c', '诶,必,塞,地,伊' ); INSERT INTO @table1 阅读全文
posted @ 2020-08-18 11:31 乌柒柒 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 1、先给不同的服务商创建不同的登录名(如下以一个服务商为例) 2.将登录名加入到public服务器角色中 3.将public服务器角色的属性——>安全对象中取消查看所有数据库的权限 或者执行如下SQL: REVOKE VIEW ANY DATABASE TO [public] 4.将待授权的数据库的 阅读全文
posted @ 2020-08-05 17:55 乌柒柒 阅读(898) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-18 15:47 乌柒柒 阅读(0) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 12 下一页