Dreamweaver develops your project, it is not the application / website itself.
Your code connects to an SQL Server and depends on what you are coding in. Nancy has provided a basic example and one use case. I am not a fan of provding code out of context myself as it can be missunderstood if the person reading is not fully across things. It all depends on what you are doing, the language and the SQL Setup, if it is SQL light or a full database so you really need to provide a bit more information. You would never (for security) have your SQL on the same rendering as the page itself as well.
- What language are you coding in?
- Is the database on the same hosting or on another instance? - Is the database basic authentication or something else?
Further to the OP's question, @Nancy OShea has shown PHP code to connect to a MySQL/MariaDB database using MySQLi (MySQL Improved). My preference would be to use PDO (PHP Data Objects) for the connection type. PDO can be used for other than MySQL/MariaDB databases. For more, see https://websitebeaver.com/php-pdo-vs-mysqli
Here I have a video where I use a SQLite database (which is a full blown standalone database) in a NodeJS environment.