For your local instance use:
.
and choose Windows Authentication so you don't have to enter SQL credentials.
This is the best place to start.
https://www.connectionstrings.com/
For your specific scenario, you want this.
https://www.connectionstrings.com/sql-server/
From there, you have several options.
Standard Security
Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Password=myPassword;
OR
Trusted Connection
Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;
etc...
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.