For some applications, you might need to use a connection string to connect to your data source. For detailed information about how to use a connection string in an ODBC application, refer to the documentation for the application that you are using.The connection strings in the following sections are examples showing the minimum set of connection attributes that you must specify to successfully connect to the data source. Depending on the configuration of the data source and the type of connection you are working with, you might need to specify additional connection attributes. For detailed information about all the attributes that you can use in the connection string, see Configuration Options Appearing in the User Interface
The following is an example of a connection string for a connection that uses a DSN:DSN=[DataSourceName][DataSourceName] is the DSN that you are using for the connection.You can set additional configuration options by appending key-value pairs to the connection string. Configuration options that are passed in using a connection string take precedence over configuration options that are set in the DSN.
Some applications provide support for connecting to a data source using a connector without a DSN. To connect to a data source without using a DSN, use a connection string instead.The placeholders in the example are defined as follows, in alphabetical order:
[PortNumber] is the number of the TCP port that the LakeHouse instance uses to listen for client connections.
[ServerInfo] is the IP address or host name of the LakeHouse instance to which you are connecting.
[OneLakeDatabase] is the name of the database that you want to access.
[YourUserName] is the user name that you use to access the LakeHouse instance.
The following is an example of a DSN-less connection string for a connection to a LakeHouse instance that requires user login:Driver=Simba Onelake ODBC Driver;Server=[ServerInfo];
Port=[PortNumber];Database=[OneLakeDatabase];
UID=[YourUserName];For example:Driver=Simba Onelake ODBC Driver;
Server=192.168.222.160;Port=1500;Database=TestDB;
UID=simba;