odbc

SQL Server Import and Export Wizard Error: “Index was outside the bounds of the array” via 32bit ODBC data source?

白昼怎懂夜的黑 提交于 2019-12-24 01:53:09
问题 I get an "Index was outside the bounds of the array." error when I do the following. 1) I launch the Import and Export Data Wizard (32 bit). 2) Data source: .Net Framework Data Provider for Odbc. 3) I provide a connection string and DSN for a 32 bit Progress OpenEdge 10.2A ODBC driver that I've set up. 4) I set up a flat file destination. 5) When I click "Next" I get the following error: TITLE: SQL Server Import and Export Wizard Column information for the source and the destination data

OdbcCommand on Stored Procedure - “Parameter not supplied” error on Output parameter

那年仲夏 提交于 2019-12-24 01:48:40
问题 I'm trying to execute a stored procedure (against SQL Server 2005 through the ODBC driver) and I recieve the following error: Procedure or Function 'GetNodeID' expects parameter '@ID', which was not supplied. @ID is the OUTPUT parameter for my procedure, there is an input @machine which is specified and is set to null in the stored procedure: ALTER PROCEDURE [dbo].[GetNodeID] @machine nvarchar(32) = null, @ID int OUTPUT AS BEGIN SET NOCOUNT ON; IF EXISTS(SELECT * FROM Nodes WHERE NodeName=

How to set UTF8 on PHP when connect to ACCESS 2007 (ODBC)

空扰寡人 提交于 2019-12-24 01:18:09
问题 I have Thai,Japan,Korea Character (3 Fields) in Access file. I created a script in PHP to connect to this file but character on display is shown ??????? ??????? and ?????? What to SET to show normal character This is my script <html> <head> <title>TEST</title> </head> <body> <? $objConnect = odbc_connect("test","","") or die("Error Connect to Database"); $strSQL = "SELECT * FROM table1"; $objExec = odbc_exec($objConnect, $strSQL) or die ("Error Execute [".$strSQL."]"); ?> <table width="600"

SSIS Package Works in VS but not in SSIS because of ODBC Data Flow Task Error

萝らか妹 提交于 2019-12-24 01:06:40
问题 We have a test package that was designed using VS2017 that has one "Data Flow Task" object with "ODBC Source" and "ODBC Destination" objects within it. The package is simply trying to move records from table 'Table_1' to table 'Table_2' in the same SQL Server 2014 database named 'Test'. When we execute the package from VS2017, it runs successfully. However, when we import that package into SSIS, and then run the package directly from there, we get the following error messages (see screen

Connect to ONLINE MySQL database using DSN ODBC

十年热恋 提交于 2019-12-24 01:05:45
问题 I am connecting an online MySQL database. I have downloaded MySQL ODBC Connector 5.1. Now am trying to setup the DSN. But am getting the error: Connection Failed : [HY000] [MySQL] [ODBC 5.1 Driver]Access Denied for user 'user123'@'myweb.com' I have hosted this site with some hosting provider. Do i need some details from the provider???? I am doing this > Control Panel--->Administrative Tools--->Data Sources (ODBC)--->Then i chose MySQL ODBC Driver 5.1-----> then i enter the following in the

Connect to two different databases in PHP?

守給你的承諾、 提交于 2019-12-24 00:56:03
问题 I am thinking to connect to 2 database in my project in php. one is an existing database from our ticketing system that uses MS ACESS and the other one is the one im using now its MYSQL. The use of the MS access is just to retrieve data from it and the MYSQL will be used to both retrieve and store data. Is it possible to connect to both database at the same time?? 回答1: Short answer: Yes . Long answer: You should ensure that your code always uses connection identifiers to avoid confusion and

Select uniques, and one of the doubles

偶尔善良 提交于 2019-12-24 00:55:38
问题 I have a table with columns A, B and C. Column A might have duplicates. I need a query that will get me a resultset with unique values in column A, and I don't care which possible duplicate it takes. I don't know anything beforehand about the rest of the data. An example might be: A B C 1 8 8 1 7 7 2 10 10 In this case I'd want to select: A B C 1 x x 2 10 10 x = It doesn't matter which value it would pick. Kind regards, Matthias Vance Edit I thought I found my solution with: SELECT * FROM (

C# - Join tables from two different databases using different ODBC drivers

孤人 提交于 2019-12-24 00:44:57
问题 I have a C# application which needs to pull data from two different databases: Database 1 is a MYOB database (which uses ODBC to connect using MYOB's driver) Database 2 is an Access database, again I'm using ODBC to connect to it. Eg. this is the query I would like to run: $query = "SELECT * FROM [" + myobConnectString + "].Accounts, ["+accessConnectString+"].tblTest WHERE tblTest.ID = Accounts.AccountID"; My question is how can I run this (or if it's even possible)? Thanks! 回答1: In addition

Test SQL Server Connection

风流意气都作罢 提交于 2019-12-24 00:39:08
问题 I built an Excel-based tool that uses ODBC connections and querytables to pull data from a SQL Server (2014). This tool has to be compatible with Mac Office 2016 (hence the ODBC and querytables). I'm struggling with testing whether the user can connect to the SQL Server. With the ODBC connection, if it fails to connect, a SQL Server error login dialog opens and then a login dialog opens before my error handling can take effect. Every solution to this issue that I found uses either ADODB

Converting std::wstring to SQLWCHAR *

时光总嘲笑我的痴心妄想 提交于 2019-12-24 00:34:08
问题 I have a C++ program that is dynamically creating a query string which will then be passed to a SQLExecDirect call to connect to a database using ODBC. I'm having trouble passing the variable from one function to another, so I think I must be missing something basic? In the ConstructQuery function (which returns type SQLWCHAR * ), I have: std::wstring test = L"test string"; //This test string will actually be several concatenated strings SQLWCHAR *statement = (SQLWCHAR *)test.c_str(); std: