connect

ODBC Teradata Driver HY001 Memory allocation error. What is the meaning?

匿名 (未验证) 提交于 2019-12-03 01:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using the python script that inserts a batch of data into Teradata using the teradata python module with a script similar to the one below. It uses an ODBC connection and occasionally I get the following error: [HY001][Teradata][ODBC Teradata Driver] Memory allocation error . What does this error mean? And any suggestions on how to fix this? connection.executemany( 'INSERT INTO {}.{} ("{}") VALUES ({})' .format(database, table_name, '","'.join(column_names), ','.join(['?']*len(columns_names))), records_for_insert, batch=True ) 回答1: The

Thread Finished Event in Python

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a PyQt program, in this program I start a new thread for drawing a complicated image. I want to know when the thread has finished so I can print the image on the form. The only obstacle I'm facing is that I need to invoke the method of drawing from inside the GUI thread, so I want a way to tell the GUI thread to do something from inside the drawing thread. I could do it using one thread but the program halts. I used to do it in C# using a BackgroundWorker which had an event for finishing. Is there a way to do such thing in Python? or

VBA using HttpClient to connect to an external REST API

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm reading on some old posts that in order to connect the VBA code to an external REST API, you need to import the reference "Microsoft WinHTTP Services" and use the following code: Set req = CreateObject("WinHttp.WinHttpRequest.5.1") Or Import a different reference and use the following code: Set objHTTP = CreateObject("MSXML2.XMLHTTP") These are old posts (2006, 2009) and I wonder if today (2014) Microsoft has provided something similar to HttpClient like they did for C#, VB.Net, C++ Question: What is the recommended way in VBa (Excel

WinSCP commandline: Hostkey not found in cache error

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to connect to Unix server from WinSCP commandline for the first time. It closes with the the following error: The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-rsa 1024 42:9e:c7:f4:7f:8b:50:10:6a:06:04:b1:d4:f2:04:6d If you trust this host, press Yes . To connect without adding host key to the cac he, press No. To abandon the connection press Cancel . In the WinSCP commandline, it does not ask for any input (Yes or No)

Unable to connect to SQLServer because of SSLException

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Since yesterday I'm unable to connect to the MicroSoft SQLServer (v11.1.3000.0) on my local development machine from JBoss EAP 6.2. SQLServer now wants to connect using SSL. I get the following exception: Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "java.lang.RuntimeException: Could not generate DH keypair". ClientConnectionId:da0dbbf4-33a0-45ac-9885-fa1e31c47c6e at com.microsoft.sqlserver.jdbc

Using UnixODBC and FreeTDS to connect to Pervasive SQL server in ubuntu?

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to connect to a Pervasive Sql Server which is running on Windows 10 from an Ubuntu 14.04.4 server. I am using the following services to try connect to the server: FreeTDS unixODBC Before starting I tried to ping the host machine from the vm console with success. I then run the following command to check FreeTDS has installed correctly; tsql -C Which returned: Compile-time settings (established with the "configure" script) Version: freetds v0.95.95 freetds.conf directory: /usr/local/etc MS db-lib source compatibility: no Sybase

How to connect Flutter App to sql server [closed]

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Some context: The Db already exist and the app is for internal use of the company, that's why I'm not doing an API Hi guys, I need to connect my app to an SQL server to execute a query and retreive data from it. I've already tried with this plugin but no succes SqlJocky5 Someone have done something similar already with flutter? How you did it? there's another library for connecting the app with a sql server? So, What I'm looking for is if there's a library to do it like in Xamarin Forms (SqlClient) or in Android Studio Java (JDBC Driver)

AWS Lambda times out connecting to RedShift

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My Redshift cluster is in a private VPC. I've written the following AWS Lamba in Node.js which should connect to Redshift (dressed down for this question): 'use strict'; console.log('Loading function'); const pg = require('pg'); exports.handler = (event, context, callback) => { var client = new pg.Client({ user: 'myuser', database: 'mydatabase', password: 'mypassword', port: 5439, host: 'myhost.eu-west-1.redshift.amazonaws.com' }); // connect to our database console.log('Connecting...'); client.connect(function (err) { if (err) throw err;

Connect Azure RDP, “The logon attempt failed”

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've just created two Windows VM's in Azure, one 2012 Datacenter and a 2008 R2 SP1 and i am not able to connect via remote desktop to either of them. Both machines are running under the same cloud service and the RDP ports are mapped to two distinct public ports. Every time i try to connect i get the error message "The logon attempt failed". Using NMAP in a Linux VM i also have there, i was able to check that the port 3389 is OPEN in both machines. Also, the public RDP ports respond correctly (e.g. are open). I tried to enter using two

Connection to Azure MySQL server fails due to incorrect connection string

匿名 (未验证) 提交于 2019-12-03 01:33:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: When trying to connect to my MySQL server in Azure from mysql client, I get the following error, even though I am using the correct username and server name. How can I fix this? The connection string may not be right. Please visit portal for references. 回答1: When connecting to your server instance of Azure Database for MySQL, you are required to follow the <username@hostname> format , whether you are doing it from mysqlexe client or MySQL workbench. We recommend you get the complete connection string for your client from the Azure portal and