I am trying to connect to sqlite database through RODBC package.
1.) I installed the SQLite ODBC driver from http://www.ch-werner.de/sqliteodbc/ and configured it using the ODBC Data Source Administrator in Windows 7. The timeout lock is set to 20 ms, the synchronization mode is NORMAL and "Do not create database data. " I see the data source in the "Custom DSN" tab as a SQLite3 ODBC driver.
2.) In R, I run the following commands to connect to the database. There are no problems at the moment. It seems to be configured correctly.
library(RODBC)
con <- odbcConnect("dbss")
odbcGetInfo(con)
DBMS_Name
"SQLite"
DBMS_Ver
"3.8.2"
Driver_ODBC_Ver
"03.00"
Data_Source_Name
"dbss"
Driver_Name
"sqlite3odbc.dll"
Driver_Ver
"0.996"
ODBC_Ver
"03.80.0000"
Server_Name
"U:\\Research\\data\\smartsystemtic\\db.sqlite"
3.) , , . ( SQLite Studio), "" 4 3 .
> sqlQuery(con, paste("SELECT * FROM School"))
[1] SchID Location Authority SchSize
<0 rows> (or 0-length row.names)
, SQLite Studio 3 .
4.)
> sqlTables(con)
[1] TABLE_CAT TABLE_SCHEM TABLE_NAME TABLE_TYPE REMARKS
<0 rows> (or 0-length row.names)
SQLite Studio 4 .
- , ? .