odbc

install odbc driver to azure app service

陌路散爱 提交于 2019-11-28 14:17:16
I am running a simple Python web app in the Azure app service that needs to acces an Azure SQL database. In order to que an Azure SQL database from python one needs to install the ODBC driver. I have done that at my local machine and it works perfectly. How do I install the ODBC driver at the Azure machine that is running my app or if it is nescessary at all? Per my experience , the Azure Web App Service Runtime is Windows system. That does not require a reload driver. I tried to access Azure SQL Database in my flask web app. You could refer to my working code. view.py from datetime import

SQL Server ODBC Driver not raising errors

一个人想着一个人 提交于 2019-11-28 13:54:34
This question is part in a series of bugs in the Microsoft ODBC driver: ODBC driver fails to raise errors; but instead suppresses them Reading columns out of order returns incorrect results Cannot execute a stored procedure that is a SYNONYM Microsoft has said they will not be fixing these bugs in their ODBC driver. Background If i have a sample table: CREATE TABLE Wallet ( WalletID int NOT NULL, Name varchar(50) NOT NULL ) i attempt to issue sql that inserts into the table without specifying a value to the NOT NULL WalletID column: INSERT INTO Wallet (WalletID, Name) VALUES (1, 'Fan') INSERT

Java ODBC MS-Access Unicode character problems

拥有回忆 提交于 2019-11-28 13:01:58
I am trying to make an application that connects to an Access database. I have made it through making the ODBC connection of my Java program with an .mdb file but I have this problem with Unicode characters. If a record is written in English (Latin) characters then the .mdb file recognizes the characters but if the record is written in Greek then some weird characters appear and I can't get the record with the ResultSet object. Can someone help? Gord Thompson The JDBC-ODBC Bridge will not work correctly with the Access ODBC driver when strings contain Unicode characters whose code point is

MySQL ODBC 3.51 Driver UTF-8 encoding

我只是一个虾纸丫 提交于 2019-11-28 12:49:16
Currently I am migrating MSSQL to MySQL. I am using the MySQL ODBC 3.51 driver to connect to MySQL using ODBC connectivity. I have Telugu language characters stored in the table. They are not showing properly while using the MySQL ODBC driver, but they are showing up properly while using the sqlserver ODBC driver. My connection string is Driver={MySQL ODBC 3.51 Driver};Server=localhost;Database=dbtest; User=user1;Password=mysql;Option=3;CharSet=utf8; Please suggest a solution to fix this. According to this you can make it work by setting the DNS's 'Connect Options'->'Initial Statement' to 'SET

PHP: Debugging PDO connection to Access database (.accdb)

杀马特。学长 韩版系。学妹 提交于 2019-11-28 12:39:38
问题 I am new to programming and would like to connect to a ms-access (accdb) database using a PDO class. Environement: PHP (5.5.11) / XAMPP / Windows 7 pro. PDO driver for ODBC (win32) is enabled. class db{ protected $dbName = "C:\xampp\htdocs\BillboardsManagement\Core\config\Billboards.accdb"; protected $Uid=""; protected $Upass=""; protected $conn; public function __construct() { try{ $this -> conn = new PDO('odbc:DRIVER={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=$this->$dbName;Uid=$this->

Connect to mysql 5.0 database using pure vbscript?

风格不统一 提交于 2019-11-28 12:24:18
I've tried the below script but I am getting an error: dim cn, rs set cn = CreateObject("ADODB.Connection") set rs = CreateObject("ADODB.Recordset") cn.connectionstring = "Provider=MysqlProv; Data Source=Adonis; User Id=mysqluser; Password = mysqlpass;" cn.open rs.open "select * from Countries", cn, 3 rs.MoveFirst while not rs.eof wscript.echo rs(0) rs.next wend cn.close wscript.echo "End of program" Its giving the following error: C:\mysql.vbs(6, 1) ADODB.Connection: Provider cannot be found. It may not be pro perly installed. When I googled for an odbc connector I came up to this page where

How To Convert An Elixir Binary To A String?

夙愿已清 提交于 2019-11-28 12:04:52
So I'm trying to convert a binary to a string. This code: t = [{<<71,0,69,0,84,0>>}] String.from_char_list(t) But I'm getting this when I try this conversion: ** (ArgumentError) argument error (stdlib) :unicode.characters_to_binary([{<<70, 0, 73, 0, 78, 0>>}]) (elixir) lib/string.ex:1161: String.from_char_list/1 I'm assuming the <<70, 0, etc. is likely a list of graphemes (it's the return from an API call and the API is not quite documented) but do I need to specify the encoding somehow? I know I'm likely missing something obvious (maybe that's not the right function to use?) but I can't seem

PHP & SQL Server - field names truncated

余生颓废 提交于 2019-11-28 11:54:01
Here is the relevant code: function connect(){ // DB credentials and info defined here.... $connection = odbc_connect("DRIVER={SQL Server Native Client 11.0}; Server=$server; Database=$db;", $loginname, $loginpass); return $connection; } function odbc_fetch_results($stmt, &$results) { $numrows = odbc_num_rows($stmt); $row = odbc_fetch_array($stmt); print_r($row); // Prints: Array ( [MEASUREMENT_UNI] => kg) if($row){ $results = array ($row); while( $row = odbc_fetch_array($stmt)){ array_push($results, $row); } } return $numrows; } $sql = "select * from measurements where ID=$id"; $stmt =

Microsoft Access and Java JDBC-ODBC Error

怎甘沉沦 提交于 2019-11-28 11:38:41
问题 Trying to insert some values in a Microsoft access database using java. I can an error however, java.sql.SQLException: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application Exception in thread "main" java.lang.NullPointerException To create the data source im using SysWoW64 > odbcad32 and adding it the datasource to system DNS. I say this as i have seen else where there are problems which occur with 64bit systems. However it

Accessing Access over JDBC (using ODBC?)

妖精的绣舞 提交于 2019-11-28 11:37:09
I'm looking for a way to open an Access MDB file inside a Java App (using JDBC). A quick Google Search suggests that I need the JDBC-ODBC Bridge for this... Does this mean that I need to configure every system I want to run my app on to provide a ODBC DSN for the MDB I want to open? And one more question (since I've never used ODBC before): will the communication happen over some sort of a socket (in a client/server-style), or through method/function calls (like with an embeded Derby db)? 1) You won't need to configure every system with a SYSTEM or USER ODBC DSN to access the MDB you want. You