Description Usage Arguments Examples
This function allows you to connect to a MS SqlServer Database
1 | connect_db(server, db, uid, pwd)
|
server |
Database Server Url/IP Address |
db |
Database Name |
uid |
User id |
pwd |
Password |
1 | dbHandle <- connect_db("server.com","db_test","admin","password")
|
Warning messages:
1: In odbcDriverConnect(paste("driver={SQL Server Native Client 11.0};server=", :
[RODBC] ERROR: state IM002, code 0, message [unixODBC][Driver Manager]Data source name not found, and no default driver specified
2: In odbcDriverConnect(paste("driver={SQL Server Native Client 11.0};server=", :
ODBC connection failed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.