This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- http://wiseman-wiseguy.blogspot.tw/2008/05/ansipadding-and-variable-length.html | |
-- https://msdn.microsoft.com/zh-tw/library/ms175001(v=sql.120).aspx | |
--SELECT SESSIONPROPERTY('ANSI_PADDING') | |
SELECT | |
CASE WHEN SESSIONPROPERTY('ANSI_PADDING') = 0 THEN 'OFF' | |
ELSE 'ON' | |
END |

如果不是太舊版的SQL Server,ANSI_PADDING預設應該都是ON的
沒有留言:
張貼留言