Hi,
sql.reader is not exported into the global name space. It is kept private to the ProjectTemplate namespace and should not be called directly. The best way to read in a sql file is to create a project using the create.project() function; put the sql file in the data directory; then load the sql file using the load.project() command.
If you do need to access sql.reader directly, you can do this by explicitly calling sql.reader from the ProjectTemplate namespace using ProjectTemplate:::sql.reader()