惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
博客园_首页
博客园 - 【当耐特】
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
GbyAI
GbyAI
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
H
Help Net Security
T
Tailwind CSS Blog
B
Blog RSS Feed
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
The Cloudflare Blog
博客园 - 叶小钗
雷峰网
雷峰网
量子位

博客园 - ahdung

[转载备份]Transparent windows in WPF CorelDRAW的shell扩展ShellXP.dll导致资源管理器explorer.exe卡死/冻结/无响应/挂起 Windows开的热点手机能连上但上不了网 【手记】桌面变成英文desktop的解决办法 【手记】翻新显卡安装驱动程序 [SQLCLR]跑起unsafe程序集的前提备忘 【手记】让Fiddler捕获到SQLCLR中的网络请求 【手记】Reflexil直接让方法返回true或false 【组件分享】自定义窗口标题菜单 DLL/OCX文件的注册与数据执行保护DEP 【SQL】用SSMS连接Oracle手记 偶尔要用的git命令备忘 【手记】解决Graphics.DrawImage带ImageAttributes在XP报内存不足的问题 似乎是VS2017的一个BUG 【SQL】在数据库中发起http请求的小改进 【SQL】从待选项中随机选一个 【手记】解决Intel Management Engine Interface黄色感叹号 【手记】如果Idx/Sub字幕导不进MKVToolNix,看看是否这个原因 【手记】解决涉及office的程序报“Unable to cast COM object of type System._ComObject...”的问题
.Net程序连接SQL Server默认会话选项备查
ahdung · 2021-01-04 · via 博客园 - ahdung

尝试环境:.netfx2.0~4.8、.net core 3.1~5.0、SQL Server 2008 R2 SP1,发现.net版本之间及数据兼容模式如何设置没差异。

FlagNameValueDescription
1 DISABLE_DEF_CNST_CHK   Controls interim or deferred constraint checking.
2 IMPLICIT_TRANSACTIONS   For dblib network library connections, controls whether a transaction is started implicitly when a statement is executed. The IMPLICIT_TRANSACTIONS setting has no effect on ODBC or OLEDB connections.
4 CURSOR_CLOSE_ON_COMMIT   Controls behavior of cursors after a commit operation has been performed.
8 ANSI_WARNINGS ON Controls truncation and NULL in aggregate warnings.
16 ANSI_PADDING ON Controls padding of fixed-length variables.
32 ANSI_NULLS ON Controls NULL handling when using equality operators.
64 ARITHABORT   Terminates a query when an overflow or divide-by-zero error occurs during query execution.
128 ARITHIGNORE   Returns NULL when an overflow or divide-by-zero error occurs during a query.
256 QUOTED_IDENTIFIER ON Differentiates between single and double quotation marks when evaluating an expression.
512 NOCOUNT   Turns off the message returned at the end of each statement that states how many rows were affected.
1024 ANSI_NULL_DFLT_ON ON Alters the session's behavior to use ANSI compatibility for nullability. New columns defined without explicit nullability are defined to allow nulls.
2048 ANSI_NULL_DFLT_OFF   Alters the session's behavior not to use ANSI compatibility for nullability. New columns defined without explicit nullability do not allow nulls.
4096 CONCAT_NULL_YIELDS_NULL ON Returns NULL when concatenating a NULL value with a string.
8192 NUMERIC_ROUNDABORT   Generates an error when a loss of precision occurs in an expression.
16384 XACT_ABORT   Rolls back a transaction if a Transact-SQL statement raises a run-time error.

选项参考:https://docs.microsoft.com/en-us/sql/t-sql/statements/set-statements-transact-sql