-
-
Save renatocantarino/6164449 to your computer and use it in GitHub Desktop.
Conecta no SQL e realiza Query.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(RODBC) | |
| cn<-odbcConnect('NW',uid='Usuario',pwd='Senha') | |
| sql <- "select top 30 ShipName from dbo.Orders" | |
| myresult<- (sqlQuery(cn, sql)) | |
| odbcClose(cn) | |
| print(myresult) |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NW = nome do Odbc