I use VB.NET, we use the following three ways to connect to the database,
OdbcConnection SqlConnection as long as the attribute and the ConnectionString key words one by one in the processing, the OleDbConnection besides, also mentioned that OLE DB applications use IDataInitialize: : GetDataSource initialization data source object, this sentence from the official web site:
https://docs.microsoft.com/zh-cn/sql/relational-databases/native-client/applications/using-connection-string-keywords-with-sql-server-native-client? Redirectedfrom=MSDN& View=SQL server - ver15
Among them, using IDataInitialize: : GetDataSource OLE DB applications use the connection string has the following syntax:
Connection - the string: :=empty - string [;] | attribute [;] | attribute; Connection - the string
Empty - string: :=
Attribute: :=attribute - keyword=