R odbc package for ODBC database connections. Use for connecting to any ODBC-compatible database.
Scanned 6/4/2026
Install via CLI
openskills install LeoLin990405/r-analytics-skill---
name: odbc
description: R odbc package for ODBC database connections. Use for connecting to any ODBC-compatible database.
---
# odbc Package
ODBC database connections.
## Connect
```r
library(DBI)
library(odbc)
# DSN connection
con <- dbConnect(odbc(), dsn = "MyDSN")
# Connection string
con <- dbConnect(odbc(),
Driver = "SQL Server",
Server = "server.example.com",
Database = "mydb",
UID = "user",
PWD = "password"
)
# List available drivers
odbcListDrivers()
# List DSNs
odbcListDataSources()
```
## SQL Server
```r
con <- dbConnect(odbc(),
Driver = "ODBC Driver 17 for SQL Server",
Server = "server.example.com",
Database = "mydb",
UID = "user",
PWD = "password",
Port = 1433
)
```
## MySQL/MariaDB
```r
con <- dbConnect(odbc(),
Driver = "MySQL ODBC 8.0 Driver",
Server = "localhost",
Database = "mydb",
UID = "user",
PWD = "password"
)
```
## Basic Operations
```r
# Query
df <- dbGetQuery(con, "SELECT * FROM table")
# Write
dbWriteTable(con, "new_table", df)
# Execute
dbExecute(con, "UPDATE table SET col = 'value'")
```
## Disconnect
```r
dbDisconnect(con)
```
No comments yet. Be the first to comment!
Find and analyze YouTube competitor channels using YouTube Data API v3. Discover competitors through keyword search, category matching, content similarity, and related channel discovery. Compare metrics, content strategies, and market positioning. Use when users want to (1) Find competitors for their YouTube channel, (2) Analyze competitor performance metrics, (3) Compare their channel against competitors, (4) Identify content gaps and opportunities, (5) Benchmark against similar creators, (6...