Saturday, December 2, 2023

Connection String

Örnek
unable to find valid certification path to requested target şeklinde bir hata alıyorsak connection string'e
encrypt=true;trustServerCertificate=true eklenir. Şöyle yaparız
jdbc:sqlserver://localhost:1433;encrypt=true;trustServerCertificate=true

Örnek
Schema belirtmek için şöyle yaparız
jdbc:sqlserver://localhost:1433;encrypt=true;trustServerCertificate=true;currentSchema=dbo

XACT_ABORT

SELECT CASE      WHEN ( ( ( @@OPTIONS & 512 ) = 512 ) ) THEN 'ON'      ELSE 'OFF'  END AS XACT_ABORT_STATUS; -- When XAC...