<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>SQL Server &#8211; 随手笔记</title>
	<atom:link href="https://www.anhana.com/archives/category/tech/sql-server/feed" rel="self" type="application/rss+xml" />
	<link>https://www.anhana.com</link>
	<description></description>
	<lastBuildDate>Thu, 24 Nov 2022 01:44:56 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.1</generator>
	<item>
		<title>SQL Server 使用select语句执行存储过程</title>
		<link>https://www.anhana.com/archives/825</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Thu, 24 Nov 2022 01:44:56 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.xihana.com/?p=825</guid>

					<description><![CDATA[使用到了OPENQUERY函数，第一个参数“LOCAL”为链接服务器的名称（建立了一个链接到自己的链接服务器） [&#8230;]]]></description>
		
		
		
			</item>
		<item>
		<title>无法解决 equal to 运算中 &#8220;Chinese_PRC_BIN&#8221; 和 &#8220;Chinese_PRC_CI_AS&#8221; 之间的排序规则冲突。</title>
		<link>https://www.anhana.com/archives/822</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Fri, 11 Nov 2022 03:08:57 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.xihana.com/?p=822</guid>

					<description><![CDATA[在表连接后面加如下标红字部分（Chinese_PRC_BIN、Chinese_PRC_CI_AS都可以） se [&#8230;]]]></description>
		
		
		
			</item>
		<item>
		<title>SQL Server 获取表本次更新了哪些字段以及新旧值</title>
		<link>https://www.anhana.com/archives/796</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Thu, 14 Apr 2022 02:24:07 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.xihana.com/?p=796</guid>

					<description><![CDATA[经查阅资料以及个人实际业务需求，编写了一个（在触发器使用）可以定位本次修改的id、修改的字段、字段新旧值，形成 [&#8230;]]]></description>
		
		
		
			</item>
		<item>
		<title>SQL Server 四舍五入 全舍不入</title>
		<link>https://www.anhana.com/archives/777</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Mon, 29 Nov 2021 00:42:54 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.hanao.org/?p=777</guid>

					<description><![CDATA[四舍五入:round(字段,小数后x位) round(col, 2) 全舍不入，只需在round添加第三个参数 [&#8230;]]]></description>
		
		
		
			</item>
		<item>
		<title>SQL Server 主动抛出异常并回滚事务</title>
		<link>https://www.anhana.com/archives/762</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Wed, 15 Sep 2021 08:55:10 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">https://www.hanao.org/?p=762</guid>

					<description><![CDATA[主要是事务使用，在存储过程或其他处理需要先表明“begin transaction”，回滚用“rollback [&#8230;]]]></description>
		
		
		
			</item>
		<item>
		<title>SQL Server 行转列逗号分隔</title>
		<link>https://www.anhana.com/archives/621</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Mon, 14 Sep 2020 02:06:47 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<guid isPermaLink="false">http://www.hana.xin/?p=621</guid>

					<description><![CDATA[SELECT STUFF(( SELECT ',' + suba.列名 FROM dbo.表名 suba FO [&#8230;]]]></description>
		
		
		
			</item>
		<item>
		<title>SQL Server 触发器自助抛异常并回滚事务</title>
		<link>https://www.anhana.com/archives/470</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Mon, 05 Aug 2019 07:54:26 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[回滚]]></category>
		<category><![CDATA[抛异常]]></category>
		<category><![CDATA[触发器]]></category>
		<guid isPermaLink="false">https://www.hana.co/?p=470</guid>

					<description><![CDATA[SQLServer触发器内对更新的数据进行判断，符合条件的操作则回滚。rollback关键字为回滚事务，rai [&#8230;]]]></description>
		
		
		
			</item>
		<item>
		<title>SQL Server 触发器内游标循环</title>
		<link>https://www.anhana.com/archives/468</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Tue, 30 Jul 2019 06:17:41 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[for]]></category>
		<category><![CDATA[循环]]></category>
		<category><![CDATA[游标]]></category>
		<category><![CDATA[触发器]]></category>
		<guid isPermaLink="false">https://www.hana.co/?p=468</guid>

					<description><![CDATA[一句insert批量插入，并需要在触发器里写各种判断逻辑，这时候需要用游标，代码如下： 除了把游标主键字段（下 [&#8230;]]]></description>
		
		
		
			</item>
		<item>
		<title>SQL Server 通过日期获取星座的函数</title>
		<link>https://www.anhana.com/archives/460</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Wed, 26 Jun 2019 01:54:00 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[函数]]></category>
		<category><![CDATA[星座]]></category>
		<guid isPermaLink="false">https://www.hana.co/?p=460</guid>

					<description><![CDATA[不知各位项目中会不会保存个人信息的星座属性，我这是项目中遇到了，把代码贴出来供需要的人吧， SQL Serve [&#8230;]]]></description>
		
		
		
			</item>
		<item>
		<title>在将 varchar 值 &#8216;10.00&#8217; 转换成数据类型 int 时失败。</title>
		<link>https://www.anhana.com/archives/447</link>
		
		<dc:creator><![CDATA[Hana]]></dc:creator>
		<pubDate>Sun, 28 Apr 2019 07:19:07 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[技术]]></category>
		<category><![CDATA[向下取整]]></category>
		<guid isPermaLink="false">https://www.hana.co/?p=447</guid>

					<description><![CDATA[在我们项目中有没有遇到这么个要求？做一个导入Excel功能，里面有数量列，系统中是int类型，用户上传的Exc [&#8230;]]]></description>
		
		
		
			</item>
	</channel>
</rss>
