摘要: 在开启跟踪时,可以打开“RowCounts”列,根据受影响的行数,可以大概判断该语句是执行成功还是失败 阅读全文
posted @ 2023-05-01 21:36 竹楼风雨声 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 部分代码: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using S 阅读全文
posted @ 2023-04-30 12:57 竹楼风雨声 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 一、SQL SERVER 连接字符串语法: 1、SQL SERVER验证(两种写法)(安全连接) string connStr = "Data Source=.;Initial Catalog=DatabaseName;User Id=sa;Password=123"; 或 string connS 阅读全文
posted @ 2023-04-09 17:48 竹楼风雨声 阅读(173) 评论(0) 推荐(0) 编辑
摘要: class A { public int num = 3; public void m1(B b) { b.m2(this); } } class B { public void m2(A a) { Console.WriteLine(a.num); } } class Test { public 阅读全文
posted @ 2022-11-07 19:58 竹楼风雨声 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 转载自:https://blog.csdn.net/fightHHA/article/details/81626383 https://blog.csdn.net/weixin_49199646/article/details/109492763?spm=1001.2101.3001.6650.8& 阅读全文
posted @ 2022-10-17 19:51 竹楼风雨声 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1、方法重写 class Parent { public void m1() { m2(); } public virtual void m2() { Console.WriteLine("I am Parent."); } } class Child : Parent { public overr 阅读全文
posted @ 2022-10-09 20:16 竹楼风雨声 阅读(15) 评论(0) 推荐(0) 编辑
摘要: VisualStudio2019安装完成之后,由于开发需求需要安装其它模块或组件,点击工具,选择获取工具和功能,进行选择安装。 做个笔记随笔记录一下。 选择需要的模块进行即可。 【转自】https://www.cnblogs.com/jiayan1578/p/13665423.html 阅读全文
posted @ 2022-09-10 20:11 竹楼风雨声 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1、 if 参数 = 值1 begin 执行代码1 end else if 参数 = 值1 begin 执行代码2 end else begin 执行代码3 end 2、goto 标签 3、 declare @busno varchar(10) = '0001' -- = 'ALL' -- = '' 阅读全文
posted @ 2022-09-09 10:06 竹楼风雨声 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 数据迁移:把旧数据库中的所有用户表数据插入到新库存中 --新数据库为:hydee --旧数据库为:hdyee_old use hydee; go set nocount on SET QUOTED_IDENTIFIER OFF declare @sql nvarchar(max) declare @ 阅读全文
posted @ 2022-08-26 16:28 竹楼风雨声 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 详细内容查看:https://blog.csdn.net/weixin_43347659/article/details/120829241 查询某个表的主键名称: select c.name from sys.indexes i join sys.index_columns ic on i.obj 阅读全文
posted @ 2022-08-23 17:11 竹楼风雨声 阅读(120) 评论(0) 推荐(0) 编辑