尝试运行简单查询时出现以下错误。我使用Crystal Reports连接中的相同ODBC连接参数运行此查询,但是不使用R运行此查询。有人可以解释吗?
#GFI
channel <- odbcConnect("GFI", uid="read_only", pwd="read_only");
#LOCAL
qryL <- paste("SELECT * FROM dbo.attr")
lc <- sqlQuery(channel, qryL)
print(lc)
# [1] "42S02 208 [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'dbo.attr'."
# [2] "[RODBC] ERROR: Could not SQLExecDirect 'SELECT * FROM dbo.attr'"