odbc

Insert 1 million records from SQL Server to BigQuery table, linked via CDATA odbc driver

馋奶兔 提交于 2021-02-08 10:22:51
问题 I need to insert 1 million (and more) records from a SQL Server table to a BigQuery table, that is present in SQL Server as "linked server" via CDATA odbc driver with remoting daemon in it (documentation). Also, source table might have no column with number of row, Id etc. For now, I can insert 1 record per second into BigQuery with this driver, using this query: INSERT INTO [GBQ].[CDataGoogleBigQuery].[GoogleBigQuery].[natality] SELECT * FROM [natality].[dbo].[natality] GO But for such a

why does access 2010 with postgresql odbc driver call IDENT_CURRENT?

99封情书 提交于 2021-02-08 03:28:47
问题 I am migrating an access 2003 application to access 2010. The application uses the postgres odbc driver to access its data. On access 2010 it tries to use the IDENT_CURRENT function on the postgresql server (as seen with wireshark) to identify the id of a recently inserted row ... Unfortunately IDENT_CURRENT is not a function supported by postgresql as far as I know ... I am using the latest postgresql ODBC driver (9.0) with a postgresql 8.3 database. 回答1: Using currval is the right way to go

Can I access sqlite3 using octave?

回眸只為那壹抹淺笑 提交于 2021-02-07 20:31:11
问题 Is there a way to read and write to sqlite3 from octave? I'm thinking something along the lines of RODBC in R or the sqlite3 package in python, but for octave. I looked on octave-forge http://octave.sourceforge.net/packages.php But could only find the 'database' package, which only supports postgresql. Details: OS: Ubuntu 12.04 Octave: 3.6.2 sqlite: 3.7.9 回答1: I realise this is an old question, but most answers here seem to miss the point, focusing on whether there exists a bespoke octave

Get ID of Last Inserted Record - Access DAO, ODBC, SQL Server 2008 Identity Field

三世轮回 提交于 2021-02-07 19:46:00
问题 It's a very common question but I'm having trouble getting the ID of the last inserted record. I'm using DAO with ODBC linked tables to duplicate a record and it's child records. My tables are in SQL Server 2008 and have Identity fields for ID fields. Here's what I've tried so far. My first bit of code here results in error 3167, Record is Deleted. If I do a debug.Print the recordset actually contains 3 records. Dim r as DAO.Recordset, db as DAO.Database Set db = CurrentDb Set r = db

Get ID of Last Inserted Record - Access DAO, ODBC, SQL Server 2008 Identity Field

安稳与你 提交于 2021-02-07 19:45:06
问题 It's a very common question but I'm having trouble getting the ID of the last inserted record. I'm using DAO with ODBC linked tables to duplicate a record and it's child records. My tables are in SQL Server 2008 and have Identity fields for ID fields. Here's what I've tried so far. My first bit of code here results in error 3167, Record is Deleted. If I do a debug.Print the recordset actually contains 3 records. Dim r as DAO.Recordset, db as DAO.Database Set db = CurrentDb Set r = db

ODBC SQL Server Driver Login timeout expired

て烟熏妆下的殇ゞ 提交于 2021-02-07 18:26:29
问题 I'm failing to connect to a SQL server SQLExpress. The connection worked fine a few days ago. This is how I tried to connect (I'm using Microsoft SQL server management studio): connection = pyodbc.connect("DSN=sqlServer; UID=myuser;PWD=mypassword") cursor = connection.cursor() The error I get: ('HYT00', '[HYT00] [Microsoft][ODBC SQL Server Driver]Login timeout expired (0) (SQLDriverConnect)') In the ODBC Data Source Administrator, when I test the data source I get: 回答1: I got the similar

iSeries Access ODBC Driver with unixodbc on Debian - Invalid UTF-8 characters being returned from iSeries

只谈情不闲聊 提交于 2021-01-29 19:38:36
问题 Using ODBC driver, ibm-iaccess-1.1.0.10-1.0.amd64, on Debian Linux. When I perform a php sql query and validate the response, I see some of the data returned is not valid utf-8. mb_check_encoding returns 'false' and the character on screen in a chrome browser is the diamond question mark character. This happens on a few CHAR field types. if(!mb_check_encoding($row["field"])) { ... exit with utf-8 error } I can work around this by converting from UTF-8 to UTF-8: mb_convert_encoding($row["field

OleDB or ODBC from Azure Func or Logic App

守給你的承諾、 提交于 2021-01-29 17:47:48
问题 I have a legacy application which uses Access database (.mdb file). Basically it reads an existing mdb file and fill with new data, which is consumed by downstream systems. We cannot get rid of mdb file and the functionality is very important as it is consumed by various clients. We need to migrate that application to Azure and we are proposing several Azure Func and Logic App. We are looking at possible option to achieve this feature. As a poc when I try accessing mdb file from AF running on

ADO recordset crashes while evaluating EOF after Excel upgrade

风格不统一 提交于 2021-01-29 16:22:16
问题 I have an Excel sheet that connects to a Basis database using an ODBC connection. It worked fine when we were running Excel 2010 on Windows Server 2008, but then we upgraded to Excel 2016 on Windows Server 2016, and it doesn't work anymore. Here's some code that demonstrates the problem: Public Sub cnntest() Dim cnn As ADODB.Connection Dim sql As String Dim rs As ADODB.Recordset Set cnn = New ADODB.Connection cnn.Open "DSN=redacted;UID=redacted;PWD=redacted;" sql = "SELECT ITEM FROM IC_ITM

Is there a way to detect SQL Dialect without knowing the database type?

爷,独闯天下 提交于 2021-01-29 09:22:37
问题 I'm using Dbeaver to connect via ODBC to a database. I have no idea what type of database it is. It might be proprietary. Who knows? Is there a way to figure out what dialect of SQL to use? LIMIT statements aren't working, and I don't want to destroy things by selecting * all day long. I've tried a couple other ways to limit results - https://en.wikipedia.org/wiki/Select_(SQL)#Limiting_result_rows - but I couldn't find an option that worked. Thanks in advance! 回答1: Assuming you are doing this