Description Usage Arguments Details Value See Also Examples
Send SQL-query and get server response as data.table
1 2 | mssql(con,
query = "SELECT 200 AS Response, CURRENT_TIMESTAMP AS Relevance")
|
con |
connection object of class |
query |
valid SQL-expression as character |
Connection problems are mostly processed and diagnostics is returned as data.table. Error codes are HTTP status codes.
Microsoft SQL server response as data.table
mssql_connection
for creating connection object
Other Database: mssql_connection
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
# Create connection object:
conn <- mssql_connection(server = "10.100.104.142", domain = "SUEK",
user = "user", password = "password")
# Ask for data:
mssql(conn, "SELECT 200 AS V1, 300 AS V2")
# Output:
# V1 V2
# 1: 200 300
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.