sqlTemplateExecute: Build and run a sqlTemplate file

Description Usage Arguments Value

Description

Build and run a sqlTemplate file

Usage

1
2
sqlTemplateExecute(sqlTemplate, activate = NULL, tagMap = NULL,
  stringsAsFactors = TRUE, connectVar, debug = FALSE)

Arguments

sqlTemplate

String: path to SQL Template File

activate

String: Vector of column names that should be uncommented. If using alias, include the alias: c('prod.CORP_DIV_CD','cust.ADDRESS')

tagMap

List: Tags and the string they should be replaced with

stringsAsFactors

Boolean. Will strings be converted to factors?

connectVar

RODBC Connection. Name of the object holding your ODBC connection.

debug

Boolean: Default False, weather to print query for debug

Value

Data frame of sql query results


TonyBlonigan/sqlTemplateR documentation built on May 14, 2019, 6:08 a.m.