Description Usage Arguments Value Examples
Connects to databases currently using the odbc api, and also ecrypt password for safe storage.
1 2 |
dsn:The |
Data Source Name. |
uid: |
User id for database connecting to. |
pwd: |
User password for database |
db: |
Database name i.e. TMG |
Update: |
Update encrypted password |
...: |
Additional ODBC keywords, these will be joined with the other arguments to form the final connection string. |
Connection to database
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #Standard connection to teradata and to database "postgres",
unadviced as password in contained within the code:
src_connectR(dsn = "POSTGRES", uid = "USERNAME", pwd = "PaSsword",
db = "postgres", Update = F)
#Standard connection to teradata and to all database,
unadviced as password in contained within the code:
src_connectR(dsn = "POSTGRES", uid = "USERNAME", pwd = "PaSsword",
Update = F)
#Connection to teradata and to all databases,
R will take store encrypted username and password:
connectR(dsn = "POSTGRES")
#Connection to teradata and to all databases,
as Update = TRUE, stored password will be updated:
connectR(dsn = "POSTGRES",Update=T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.