Why it matters
A connection string is a key to the database
So it should never sit in a browser, a file or an export.
A connection is Microsoft SQL or Databricks, opened with the credential in its connection string or, with Entra SSO, as the signed-in user through the OAuth On-Behalf-Of flow. Define it once as a shared Connection item in a folder and let any number of datasets use it, or give a single dataset its own. Connection strings are encrypted where Data Editor stores them, and the browser only ever sees a placeholder.
A connection can also create a dataset's table. An administrator defines its columns in the dataset's Design, without typing SQL, and Data Editor runs a plain CREATE TABLE through the connection where the database allows it, or shows the statement for a DBA to run. It never alters or drops an existing table.
Definitions are portable: a folder, or the whole instance, exports to a JSON file that can be protected with a password, and imports into another instance after a preview. The connection strings stay behind: on import, each shared connection is mapped to one that already exists there or created with a connection string entered on the spot.