下圖左方為 A4 測試頁,右邊為 Letter 測試頁
- 延伸閱讀
- 紙匣預設紙張
SELECT *
FROM sys.fn_xe_file_target_read_file('system_health*.xel', NULL, NULL, NULL)
WHERE timestamp_utc > DATEADD(DAY, -1, GETUTCDATE());
SELECT *
FROM sys.fn_xe_file_target_read_file('system_health*.xel', NULL, NULL, NULL)
WHERE CONVERT(datetime2(7), timestamp_utc) > DATEADD(DAY, -1, GETUTCDATE());
The configuration file 'appsettings.json' was not found and is not optional. The expected physical path was 'C:\Windows\system32\appsettings.json'.
An exception has been raised that is likely due to a transient failure. Consider enabling transient error resiliency by adding 'EnableRetryOnFailure' to the 'UseSqlServer' call.
The type initializer for 'Microsoft.Data.SqlClient.TdsParser' threw an exception.
namespace ContainIssue
{
internal class Program
{
static void Main(string[] args)
{
using var context = new AdventureWorks2022Context();
string[] lastNames = new string[] { "Alberts", "Bennett" };
var source = context.People
.Where(w => !lastNames.Contains(w.LastName));
Console.WriteLine("TSQL 語法:");
Console.WriteLine(source.ToQueryString());
Console.WriteLine("-----------");
Console.WriteLine($"資料筆數:{source.Count()}");
}
}
}
use AdventureWorks2022
GO
DROP INDEX IF EXISTS IX_Person_LastName ON Person.Person
GO
CREATE INDEX IX_Person_LastName ON Person.Person (LastName)
GO
SELECT LastName , COUNT(*)
FROM Person.Person
WHERE LastName IN ('Diaz' , 'Hernandez')
GROUP BY LastName
SELECT LastName , COUNT(*)
FROM Person.Person
WHERE LastName IN ('Diaz' , 'Hernandez')
GROUP BY LastName
ORDER BY COUNT(*)
=IIf(
Fix(Fields!ItemCount.Value) = Fields!ItemCount.Value,
Format(Fields!ItemCount.Value, "#,0"),
Format(Fields!ItemCount.Value, "#,0.00"))
SSRS 函數 Fix 說明
SELECT
ServerProperty('LicenseType') ,
ServerProperty('NumLicenses')