Databricks SimbaSpark Driver Connection string - odbc

I am trying to create external table from Databricks odbc driver, but i am not able to switch between databases, can some one please help me with connection string to databricks using simba spark odbc driver

Related

IBM informix ODBC driver to OLEDB

We are doing a lift and shift of SSIS package through ADF. In this package, there is a connection between IBM Informix ODBC (DSN) to SQLDB(OLEDB). While we are migrating it through ADF, we see a issue with DSN, so tried creating a Connection string for DSN and we are using below connection string.
Driver={IBM INFORMIX 3.82 32 BIT};Host=xxxxx;Server=xxxxx;Service=1528;Protocol=olsoctcp;Database=d7main;Uid=xxxx;Pwd=xxxxx;DB_LOCALE=en_US.819;CLIENT_LOCALE=en_US.819;UNICODE=TRUE;
But there is issue in connection with the above connection string. "The error is Infoxmix ODBC connection string is asking for OLEDB provider."

Error while writing data from Linux server to SQL Server using dbWriteTable

I'm trying to write data to a table in SQL Server using dbWriteTable from odbc package. And, getting this error:
dbWriteTable(con1, 'mtcars', mtcars[1:5, ])
Error: 'CREATE TABLE "mtcars" ( "row_names" varchar(255), "mpg" FLOAT, "cyl" "disp" FLOAT, "hp" FLOAT, "drat" FLOAT, "wt" FLOAT, "qsec" FLOAT, "vs" FLOAT, "am" FLOAT, "gear" FLOAT, "carb" FLOAT)' nanodbc/nanodbc.cpp:1587: 42000: [FreeTDS][SQL Server]Incorrect syntax near 'mtcars'.
It's working fine from a windows machine. Any help would be appreciated..
The QUOTED_IDENTIFIER option is OFF for that session. Probably because of the FreeTDS driver.
The SQL Server Native Client ODBC driver and SQL Server Native Client
OLE DB Provider for SQL Server automatically set QUOTED_IDENTIFIER to
ON when connecting. This can be configured in ODBC data sources, in
ODBC connection attributes, or OLE DB connection properties. The
default for SET QUOTED_IDENTIFIER is OFF for connections from
DB-Library applications.
You can try setting QUOTED_IDENTIFER ON, or switch to the Microsoft ODBC Driver for Linux.

Unable to connect non-system databases in rstudio

I've been trying to connect DB(sql server management studio) to rstudio.
This is what i have tried
# Importing and listing the drivers usiang the ODBC
library(odbc)
odbcListDrivers()
sort(unique(odbcListDrivers()[[1]]))
# Database connection using DBI
library(DBI)
con <- dbConnect( odbc(),
Driver = "SQL Server",
Server="localhost\\SQLEXPRESS",
Database="master",
Trusted_Connection="True"
)
The above code successfully connects to the db but i can see only the system databases under the connection tab. The non-system db the user defined ones are not show in the connection panel of the R studio. How to fix this.
Connections panel
Non-system dbs in the database

Tableau Server Error connecting to ODBC driver

I can able to connect/fetch data from Tableau Desktop but in tableau server it is throwing below error with datasource, Datasource is build on BI ODBC driver. Access permission are assign granted to root folder Oracle_HOME.
Based on the error, it seems the the driver is not properly installed. Try downloading the Oracle driver from tableau drivers page. If its installed correctly please cross check on the configurations you have provided. If you are using the ODBC driver, have you created the DSN properly. The DSN needs to be configured properly with the server name and authorisations and once this is done you can use this DSN in tableau.
Once you have installed the driver properly
Click Connect to Data.
On the Connect page, click Other Databases (ODBC).
In the DSN drop-down list, select the name that you gave to your Oracle BI Server ODBC connection, and then click Connect.
Below is the link on how to connect with the BI Connector
How to Connect to Oracle BI Server with Tableau without the shortcomings of Oracle ODBC driver
By Default, tableau server pre-populates “Server Run As user” account to Network Service account (NT AUTHRITY\NetworkService). And this account does not have full permission.

File DSN for iSeries AS400 ODBC connection

How can I create a file dsn for connecting to an AS400 system using the iSeries ODBC driver?
The iSeries ODBC driver allows many settings to be configured. Where can I find a list of all properties that can be set in the file DSN?
Driver={iSeries Access ODBC Driver};System=server;Uid=user;Pwd=password;
Where server is the system to connect (either IP address or hostname), username and password.
You can have a .dsn file like this:
[ODBC]
DRIVER=iSeries Access ODBC Driver
System=server;
Uid=user;
Pwd=password;
Initial Catalog=library;
There is a good internet resource regarding connectionstrings of all flavors:
http://www.connectionstrings.com/
Here is the page for the AS400 ODBC drivers: http://www.connectionstrings.com/as-400
ODBC
IBM Client Access ODBC driver
Driver={Client Access ODBC Driver (32-bit)};System=my_system_name;
Uid=myUsername;Pwd=myPassword;
IBM iSeries Access ODBC driver
This driver is newer than the one above.
Driver={iSeries Access ODBC Driver};System=my_system_name;
Uid=myUsername;Pwd=myPassword;
IBM .Net Data Provider
Using the IBM.Data.DB2.iSeries namespace
DataSource=myServerAddress;UserID=myUsername;
Password=myPassword; DataCompression=True;
OLE DB, OleDbConnection
IBM Client Access OLE DB provider
Provider=IBMDA400;Data Source=MY_SYSTEM_NAME;
User Id=myUsername;Password=myPassword;
Where MY_SYSTEM_NAME is the name given to the system connection in OperationsNavigator
IBM Client Access OLE DB provider
Provider=IBMDA400;Data Source=MY_SYSTEM_NAME;User Id=myUsername;
Password=myPassword;Default Collection=MY_LIBRARY;
Where MY_SYSTEM_NAME is the name given to the System Connection, and MY_LIBRARY is the name given to the library in iSeries Navigator.
I just discovered you can create a file DSN using the ODCB Administration tool, for any type of ODBC driver.
Here is the IBM documentation on ODBC connection string parameters.
Here's a great detailed description of what each keyword is and how you can configure them. The discusion is for DSN-less connections, in applications, but is useful if you want to customize your file DSN. I found it more useful than the IBM documentation.
http://www.sqlthing.com/HowardsODBCiSeriesFAQ.htm

Resources