Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DBI or odbc package for SQL server

Tags:

r

odbc

r-dbi

We are moving away from RODBC which seems to have a limited error handling system (sometimes to query goes through even though there was an error, and there is no way to get the error message. we have tried all RODBC functions)

However there seem to be 2 packages similar: odbc and DBI, Can someone explain what is the difference between the two? Both seem to work well.

like image 615
RockScience Avatar asked Jan 30 '18 08:01

RockScience


People also ask

Is Oledb better than ODBC?

ODBC is constrained to relational data stores; OLE DB supports all forms of data stores (relational, hierarchical, etc) In general, OLE DB provides a richer and more flexible interface for data access because it is not tightly bound to a command syntax (like SQL in the case of ODBC).

Which is faster ODBC or Oledb?

2- OLE DB is more faster than ODBC ... Microsoft ADO, OL DB, and ODBC MDAC Components. Developers can use any of MDAC's components (ODBC, OLE DB, and ADO) to connect to several relational and non-relational data stores.

Can I use ODBC for SQL Server?

ODBC is the primary native data access API for applications written in C and C++ for SQL Server. There's an ODBC driver for most data sources. Other languages that can use ODBC include COBOL, Perl, PHP, and Python.


1 Answers

look at the odbc github https://github.com/r-dbi/odbc#reading

They compare with the RSQLServer package and the odbc package seems to be faster.

like image 123
Alexandre Lima Avatar answered Sep 26 '22 02:09

Alexandre Lima