MS SQL DBI resource connector
MS SQL DBI resource connector
Super classes
resourcer::DBIResourceConnector -> odbc.resourcer::ODBCResourceConnector -> MSSQLResourceConnector
Methods
Method isFor()
Check that the provided resource has a URL that locates a MS SQL object: the URL scheme must be "odbc+mssql".
Examples
if (FALSE) { # \dontrun{
# Create a resource
res <- resourcer::newResource(
url = "odbc+mssql://localhost:1433/EpidemiologyDB/PatientData",
identity = "sa", secret = "YourStrong@Password123")
# Create a resource client
client <- resourcer::newResourceClient(res)
# Coerce resource to a data frame
df <- client$asDataFrame()
# Disconnect the client
client$close()
} # }