C# Database Connection Strings - What They Are, How to Build Them, And More

Опубликовано: 30 Сентябрь 2024
на канале: IAmTimCorey
70,845
1k

Newsletter signup (with exclusive discounts): https://signup.iamtimcorey.com/ (your email will be kept safe and you will not be spammed).
Facebook Page:   / iamtimcorey  

Want to see a full C# application built from scratch?
Check out this course: https://iamtimcorey.com/courses/cshar...

There is a lot of confusion connection strings and how to build them. This video should clear up most, if not all, of your questions. If you want to see how to put a connection string into use, check out my video on connecting to SQL from C# (   • How to connect C# to SQL (the easy way)  ). If you missed the webpage I used in the first part of this video, it is located at https://www.connectionstrings.com/

Timestamps contributed by: Ralfs HBK
0:00 - Intro
1:32 - Where to get connection strings: SQL Server
3:11 - Connection strings explained: The Server
7:39 - Connection strings explained: The Database
11:03 - Connection string explained: The Authentication
18:13 - Other connection strings
21:42 - Storing the connection string: App.config
26:12 - Multiple connection strings
28:56 - Note on Open Data Base Connections
31:10 - Concluding remarks