library(RODBC)
c=odbcDriverConnect('Driver=SQL Server;Server=localhost;Database=......;Trusted_Connection=True')
And then you can do odbcquery like:
res=sqlQuery(c,"SELECT * FROM ....")
And you get a data frame !
http://www.connectionstrings.com/ has odbc connection strings for many dbs
http://www.connectionstrings.com/ has odbc connection strings for many dbs
No comments:
Post a Comment