I have connected R to SQL through ODBC. I'm done with fetching the database,also sort it ascending & assigned to "Resolution1" but now when i tried saving it, an error appeared:
first argument is not an open RODBC channel
My code is shown below:
library(RODBC)
channel<-odbcConnect("RSD")
sqlt<-sqlFetch(channel, "Resolution")
view(sqlt)
Resolution1<-(sqlQuery(channel, "select * from Resolution order by WLCODE,YEAR_OBS ASC"))
View(Resolution1)
sqlSave(Resolution1)