dbparser (version 1.0.3)

open_db: Establish connection to given data base

Description

open_db opens connection to given database.

Usage

open_db(driver, server, output_database, trusted_connection = TRUE)

Arguments

driver

odbc object to define database driver.

server

string, indicated the db server name.

output_database

string, the database name to be used, it has to be created before using it

trusted_connection

boolean, is the connection secure

Value

sets the open connection in memory to be used by other functions

Details

This function establishes connection to given database to store, optionally, the parsed drug bank elements.

Examples

Run this code
# NOT RUN {
open_db(xml_db_name =  "drugbank.xml", driver = "SQL Server",
server = "MOHAMMED\\\\SQL2016", output_database = "drugbank2")
# }

Run the code above in your browser using DataCamp Workspace