odbc

Laravel migration cannot find driver when using sqlsrv database in windows

十年热恋 提交于 2021-02-19 03:55:09
问题 I am using sqlsrv database connection in my project as I need to connect to Microsoft SQL Database. I have successfully installed the sqlsrv driver because I can connect to the Database to retrieve data. But when I try to do the Laravel Migration, it shows an error: Illuminate\Database\QueryException : could not find driver (SQL: select * from sysobjects where type = 'U' and name = migrations) Below is my .env DB_CONNECTION=sqlsrv DB_HOST=**********.database.windows.net DB_PORT=1433 DB

Alternatives to writing an ODBC driver

自闭症网瘾萝莉.ら 提交于 2021-02-19 03:23:32
问题 We are storing allot of time series data into our own proprietary "database". In the next version of our system we want to give our users a simple query mechanism to extract the raw data from the database (as a complement to the reports our system can create) by using standard tools. I have looked at the possibility to write an ODBC driver, but it looks like quite a daunting task, especially when the use will be very simple select statements. I would be grateful for any tips, ideas and/or

setting the location where pyodbc searches for odbcinst.ini file

馋奶兔 提交于 2021-02-19 02:36:26
问题 I am trying to query ODBC compliant databases using pyodbc in ubuntu . For that, i have installed the driver (say mysql-odbc-driver). After installation the odbcinst.ini file with the configurations gets created in the location /usr/share/libmyodbc/odbcinst.ini When i try to connect to the database using my pyodbc connection code, i get a driver not found error message . Now when I copy the contents of the file to /etc/odbcinst.ini , it works! This means pyodbc searches for the driver

Pyspark connection to the Microsoft SQL server?

大憨熊 提交于 2021-02-17 02:47:40
问题 I have a huge dataset in SQL server, I want to Connect the SQL server with python, then use pyspark to run the query. I've seen the JDBC driver but I don't find the way to do it, I did it with PYODBC but not with a spark. Any help would be appreciated. 回答1: Please use the following to connect to Microsoft SQL: def connect_to_sql( spark, jdbc_hostname, jdbc_port, database, data_table, username, password ): jdbc_url = "jdbc:sqlserver://{0}:{1}/{2}".format(jdbc_hostname, jdbc_port, database)

Pyspark connection to the Microsoft SQL server?

廉价感情. 提交于 2021-02-17 02:47:29
问题 I have a huge dataset in SQL server, I want to Connect the SQL server with python, then use pyspark to run the query. I've seen the JDBC driver but I don't find the way to do it, I did it with PYODBC but not with a spark. Any help would be appreciated. 回答1: Please use the following to connect to Microsoft SQL: def connect_to_sql( spark, jdbc_hostname, jdbc_port, database, data_table, username, password ): jdbc_url = "jdbc:sqlserver://{0}:{1}/{2}".format(jdbc_hostname, jdbc_port, database)

Localhost Coldfusion install showing cfquery parameters on page (Not speaking with ODBC)

此生再无相见时 提交于 2021-02-11 14:38:32
问题 Goal: Run cfquery of remote server on local Coldfusion install. Problem/Symptoms: The cfquery parameters are printing onto the screen, instead of running query on remote.Example of cfquery parameter printout on screen Facts: Running Mac OS X Mojave (10.14.3). Coldfusion is installed. I can access the CF Admin panel at http://localhost:8500/CFIDE/administrator/index.cfm Data Source is installed in Coldfusion Admin and status is "OK" Using Mamp Pro 5.3. It's running -- can start and stop Apache

Achieve a database connection to rmd document via shiny app

冷暖自知 提交于 2021-02-11 12:54:17
问题 I have the shiny app below in which I pass database password via shiny app and then I want to connect it with rmd document in order to further process this con to produce plots. The issue is that I can get a succesfull connection outside of the shiny environment but when I try to do this via shiny and rmd I get: Error : nanodbc/nanodbc.cpp:1021: 01S00: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'bpsrawdata'. [Microsoft][ODBC SQL Server Driver]Invalid connection

Data source name not found, and no default driver specified

爷,独闯天下 提交于 2021-02-08 12:19:34
问题 I need help fixing an error: SQL state IM014 in SQLConnect and SQL state IM002 in SQLConnect . I run the same script, one on webserver/remote/ and the other one from the local Machine trying to access the same database but i get different error message. When i run it from web server i get SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQL where as when i run it on local machine i get [Microsoft][ODBC Driver Manager] The

Data source name not found, and no default driver specified

家住魔仙堡 提交于 2021-02-08 12:18:53
问题 I need help fixing an error: SQL state IM014 in SQLConnect and SQL state IM002 in SQLConnect . I run the same script, one on webserver/remote/ and the other one from the local Machine trying to access the same database but i get different error message. When i run it from web server i get SQL error: [unixODBC][Driver Manager]Data source name not found, and no default driver specified, SQL state IM002 in SQL where as when i run it on local machine i get [Microsoft][ODBC Driver Manager] The

how to make a connection string for oracle that includes hostname, instance name, user id, password using system.data.oracleclient?

僤鯓⒐⒋嵵緔 提交于 2021-02-08 11:23:19
问题 I have made a connection string in oracle like: Data Source=hostname;Initial Catalog=IMPORT_UTILITY;User ID=abc;password=123 I want to make the same for oracle. I am using ODBC . can anyone tell me what will be the connection string for oracle that will be equivalent to above sql connection string using odbc? 回答1: For Oracle 12c R2 and the Instant Client ODBC Driver (version 12.2.0.1.0) the following connection string should work without having to create a DSN and/or a tnsnames.ora file: