closing unused RODBC handle closing unused RODBC handle r r

closing unused RODBC handle


It's because that function contains odbcConnect(...) without odbcClose(...) as joran suggests. Since the odbcConnect object is created within the function, it is pending deletion the next time there's a garbage collection (?gc). Sometimes that happens when you call the function, sometimes it happens later.

When an odbcConnect object gets deleted by gc(), it closes the database connection and displays a message. Nothing to worry about.