MSSQL Connection

  • 81
  • 0
  • 2017-11-28

MSSQL 連線方式 

 

# Standard Security ( 一般連線方式 )

Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Password=myPassword;

# Trusted Connection ( 學校使用連線方式 )

Data Source=myServerAddress;
Initial Catalog=myDataBase;
Integrated Security=SSPI;

資料來源 : 

https://www.connectionstrings.com/sql-server-2012/