Database Connection String Generator
History
Favorites
Documentation
Advanced Options
Connection History
Favorite Connections
Documentation
Connection String Parameters
Common Parameters
- Server/Host: The network address of your database server
- Port: The port number the database listens on (defaults vary by database type)
- Database Name: The name of the specific database to connect to
- Username/Password: Credentials for database authentication
SQL Server Specific
- Authentication: Choose between SQL Server or Windows authentication
- Encrypt: Enable encryption for the connection
- Trust Server Certificate: Bypass certificate validation (for development)
MySQL Specific
- SSL Mode: Control the level of SSL encryption
- Character Set: Specify the character encoding (utf8mb4 recommended)
Advanced Options
- Connection Timeout: How long to wait for a connection to be established
- Command Timeout: How long to wait for a command to execute
- Connection Pooling: Enable/disable connection pooling for better performance
Code Examples
.NET Connection Example
using (var connection = new SqlConnection(connectionString))
{
connection.Open();
// Execute commands here
}
Python Connection Example
import pyodbc
conn = pyodbc.connect(connectionString)
cursor = conn.cursor()
# Execute queries here
conn.close()