odbc

AWS RedShift - .NET Core (ODBC Support?)

自古美人都是妖i 提交于 2019-12-12 12:13:28
问题 How can I connect and run queries against AWS RedShift using .NET Core? Code sample please. I have gone through the AWS docs and .Net Core docs but no luck. 回答1: This answer is one for a particular point in time and won't age well... The EntityFramework Core project is the one I'd keep the closest eye on. The lack of ODBC is well known, especially for those who want to connect to Oracle. For the time being, you may need to fork an Oracle client for .NET core and make modifications as

Excel Data Model without using PowerPivot

折月煮酒 提交于 2019-12-12 11:20:56
问题 I have a question about the "Data Model" in excel. Whenever I read about this function, it is used with PowerPivot. I ask because I would like to do something like this: I have table A : ID info1 And table B : ID info2 Now if I connect these tables with with the data model function (through the ID-Column), I thought that I could then join tableB.info2 to tableA and have a table that shows ID,info1,info2 But that doesn't seem to be possible, or is it possible and I'm doing something wrong? Is

Connect to an Oracle DB using ODBC

谁说胖子不能爱 提交于 2019-12-12 10:54:15
问题 I am developing an application that needs to interract with a "lightly documented" Legacy Oracle Database. To Start that process I want to start creating a view into that Database using ODBC links into an MS Access database so I can figure out the DB structure but I can't figure out how to setup the ODBC connection to the Oracle DB. I have been able to connect using the Host and Service Name to and view the DB using SQL Developer; but, I can't figure out how to setup ODBC. I am running

SSIS: version of ODBC source is not compatible with this version of the dataflow

怎甘沉沦 提交于 2019-12-12 10:10:43
问题 I'm using Visual Studio 2015 to create a simple SSIS package. The data source is a DB2 database, and I'm using an ODBC driver on my workstation to connect to DB2. The target is SQL Server 2014. The package runs fine locally, but whenever I run it on the server, I'm having trouble with the ODBC data source. The driver on the server is the exact same one with the exact same name as the one on my workstation. To get the package into the server, I've imported the dtsx file into SSIS in Stored

Error binding table-valued parameter while using ODBC, c++

痞子三分冷 提交于 2019-12-12 09:58:49
问题 I am attempting to pass a table-valued parameter as a parameter in a stored procedure using ODBC. I have followed examples from MSDN, but receive the following error when I call SQLBindParameter : HY004 [Microsoft][ODBC SQL Server Driver]Invalid SQL data type Here is my code. //Allocate stament handle SQLAllocHandle(SQL_HANDLE_STMT, hDbc, &hStmt); //Prep command SQLPrepare(hStmt, (SQLCHAR*)"{call myStoredProc(?)}", SQL_NTS) //Variables const int arraySize = 2; const int varcharSize = 30;

How to find the ODBC driver name for a connection string?

你离开我真会死。 提交于 2019-12-12 09:53:43
问题 Whenever I use ODBC drivers with a full connection string, and not just a DSN entry, I often get an error similar to this Data source name not found and no default driver specified I have the correct syntax of the connection string (or so the Internet says), but I suspect I don't know the correct name for the current version of the ODBC driver I am using How do I find the correct name, for either 32 or 64 bit? 回答1: Use the ODBC Data Source Administrator app. Make sure you use the 32 bit or

Connect to MS Access remote .mdb file from php on linux

末鹿安然 提交于 2019-12-12 08:08:32
问题 I have been digging internet for couple days, reading very old information, that leads to very old and nonexisting sites, still, I understood, what is needed to achieve my goal. We have a file.mdb on server running WindowsXP, so I need to add it to ODBC data sources. I do that with simple steps, ending up with "System DSN", that allows access to that .mdb file I need to install on this same server some sort of ODBC bridge, that would allow me to create remote connection to this server, making

Go/Golang sql.DB reuse in functions

霸气de小男生 提交于 2019-12-12 07:50:22
问题 sql.Open() returns a variable of type *sql.DB I have a function that calls 10 other functions that all need to make database calls Is it more correct/efficient to: Send the *sql.DB pointer to every function, or Create a new *sql.DB object in each function Meaning func DoLotsOfThings() { db, _ := sql.Open() defer db.Close() DoTask1(db) DoTask2(db) } or func DoLotsOfThings() { DoTask1() DoTask2() } func DoTask1() { db, _ := sql.Open() defer db.Close() } func DoTask1() { db, _ := sql.Open()

ODBC or ODP.Net for C#?

雨燕双飞 提交于 2019-12-12 06:56:48
问题 I've been tasked with writing a few custom C# reporting programs for a client. These programs will only read the Oracle databases, never update or change the data. Is there any significant advantage to using ODP.Net over ODBC? I know several people that advocate using Oracle's Instant Client (I think it includes ODP.Net) because it's easier to deploy (supposedly) than having the client install the ODBC drivers. Having had no experience with deploying apps that rely on ODBC or ODP.Net, I can't

3146 ODBC Call Failed - Access 2010

試著忘記壹切 提交于 2019-12-12 06:45:05
问题 Please reference code below... Private Sub Save_Click() On Error GoTo err_I9_menu Dim dba As Database Dim dba2 As Database Dim rst As Recordset Dim rst1 As Recordset Dim rst2 As Recordset Dim rst3 As Recordset Dim SQL As String Dim dateandtime As String Dim FileSuffix As String Dim folder As String Dim strpathname As String Dim X As Integer X = InStrRev(Me!ListContents, "\") Call myprocess(True) folder = DLookup("[Folder]", "Locaton", "[LOC_ID] = '" & Forms!frmUtility![Site].Value & "'")