How to connect to SQL Server from R under cygwin? -
i'm having real difficulty coming set of tools/configuration works connect microsoft sql server r under cygwin.
i'm using rodbc library
i can connect when i'm using r under windows using statement like:
db.connex.string <- 'driver={sql server};server=machine_name;database=db_name;trusted_connection=true' db.connex <- odbcdriverconnect(db.connex.string)
when try same command in r under cygwin, flurry of warnings , errors start out:
> warnings() warning messages: 1: in odbcdriverconnect(db.connex.string) : [rodbc] error: state 00000, code 1807981029, message [iodbc][driver manager]no such file or directory 2: in odbcdriverconnect(db.connex.string) : [rodbc] error: state im003, code 1807981029, message [iodbc][driver manager]specified driver not loaded 3: in odbcdriverconnect(db.connex.string) : [rodbc] error: state im003, code 1807981029, message [iodbc][driver manager]specified driver not loaded 4: in odbcdriverconnect(db.connex.string) : [rodbc] error: state im003, code 1807981029, message [iodbc][driver manager]specified driver not loaded
any appreciated.
under cygwin r complaining cannot find driver @ all. make sure check following:
- have installed unixodbc manage drivers?
- are sure have installed odbc driver (like freetds)?
- and sure have set odbc.ini file connection details database server?
i have not found many references installing odbcunix on cygwin, seems possible. , if microsoft sql server want connect to, have released mssql specific driver linux works on linux , recommend above freetds. not know if possible install on cygwin.
Comments
Post a Comment