DBI_GetColNames: Retrieve Column Names from an Microsoft SQL Connection

Description Usage Arguments Value Creation notes Author(s) Examples

View source: R/DBIhelpers.R

Description

Retrieve Column Names from an Microsoft SQL Connection

Usage

1
DBI_GetColNames(conn, schema, tableName)

Arguments

conn

A DBIConnection object, as returned by dbConnect().

schema

Name of schema that table is under. character vector of length 1.

tableName

Name of table. character vector of length 1.

Value

Character vector of column names in specified table.

Creation notes

First created in 2020-11-03 with the script OSMdownloadAndSFtoSQLInterface.R in the MARC-KC/HelpLibrary Repository

Author(s)

Jacob Peterson

Examples

1
2
3
4
5
6
7
8
## Not run: 
library(DBI)

con <- connectODBC("DB_MARC_PRD.marcdl")

tableColNames <- DBI_GetColNames(con, "marcdl", "VW_CovidHospitals")

## End(Not run)

MARC-GIS/marcR documentation built on Nov. 16, 2020, 1:41 p.m.