It is a problem with sqlFetch
which parse table name. Unfortunately it did not handle table quotes, so it's search for table 40
in schema HelloWorld
. You need to directly call sqlQuery
(with quoted table name, brackets for MS SQL Server):
sqlQuery(dbhandle, "SELECT * FROM [HelloWorld.40]")
Side note: you should specify which database you are using.