Skip to content
Back to skills

Odbc

ASecurity

R odbc package for ODBC database connections. Use for connecting to any ODBC-compatible database.

  • 5 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 4, 2026
datasqldatabase

Works with

  • cli

Security analysis

A100/100

Scanned June 4, 2026

npx -y skills add LeoLin990405/r-analytics-skill --skill odbc --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Odbc?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Odbc
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/leolin990405-odbc/badge)](https://www.skillsdirectory.com/skills/leolin990405-odbc)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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)
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.