MySQL ODBC driver (32 bit) linked server, architecture mismatch

Hello,
I am trying to create a linked server in SQL 2012 Management Studio with a MySQL external server. I have used the 32bit ODBC driver as instructed by the developer, following this rule:
To manage a data source that connects to a 32-bit driver under 64-bit platform, use c:\windows\sysWOW64\odbcad32.exe.
My connection is fine using the ODBC connector, but when I try to create the linked server I get an architecture mismatch error: The specified DSN contains an architecture mismatch between the Driver and Application Error 7303.
Can someone help?
Best regards
Kostas
Kostas Backas-Systemgraph Technologies

Hello,
What's the bit verison of the SQL Server ?
Based on your description, you create a DSN connect to MySQL database with 32 bit MySQL ODBC driver under 32bit ODBC Administrator tool (sysWOW64\odbcad32.exe).
When you create linked server on SQL Server instance, it will use 64 bit Microsoft OLE DB Provider for ODBC Drivers if the bit version of SQL Server is 64 bit. That may cause the error you received. In that case, please download 64bit MySQL ODBC driver and
create a DSN with 64 bit ODBC Administrator tool.
Reference: http://dev.mysql.com/downloads/connector/odbc/
If I have any misunderstanding, please correct me.
Regards,
Fanny Liu
If you have any feedback on our support, please click here. 
Fanny Liu
TechNet Community Support

Similar Messages

  • BO DS - MySQL ODBC driver on Win7 64 bit

    Hi
    We have installed BO DS klient tools (Designer) on Win 7 64 bit. We have also installed the MySQL ODBC driver for 64 bit and created the DSN. The test of the DSE is successfull. When we try to log on to the DS server with DS we get the error message:
    EROR: ODBC call <SQLDriverConnect> for data source <my_system> failed: [MicroSoft][ODBC Driver Manager] Te specified DSN contains an architecture mismatch between the Driver and Application. BODI-1111340
    Has anyone seen this error before and dos anyone know how to fix this?
    Kind regards
    Erik

    Hi,
    Windows 7 is still not supported even on the latest version of Data Services - XI 3.2 SP2. This may explain your issue. An example of supported desktop product for this version is Windows XP SP2 Professional, Windows Vista, Windows Vista SP1. Please check the supported platform document in our Service Market Place (http://service.sap.com)
    Hope this helps.

  • Adobe LiveCycle Designer ES Error while Connecting to MYSQL ODBC Driver

    Hi
    I'm getting an strange error message when i try to connect a LC PDF form to
    MYSQL DB using MySQL Connector /ODBC 3.51 Driver
    Here is the complete detail how i was trying to build a connection
    string :-
    I Opened a form in Adobe LiveCycle Designer ES2 Ver.9.0.0
    Clicked on Data View Pallete --> New Data Connection --> selected OLEDB Database radio button --> Build a Connection string (clicked on build button) --> selected MS OLE DB Provider for ODBC Drivers (the default selected option ) --> clicked on Next >> button --> Use connection string (radio button) --> Build connection string on clicking Build button --> Select Data Source windows opens --> Clicked on Machine Data Source tab --> created a new data source (with User Data Source) --> Selected the MySQL ODBC Driver (MySQL ODBC 3.51 Driver) --> Clicked on next button and then Finish
    A Connector/ ODBC 3.51.28 - Add Data Source Name window opens up which have the DSN connection details (DSN Name , Server , user , password , database).
    I put all the default details
    After this i got a error message saying that
    Adobe LiveCycle Designer ES has encountered a problem and needs to
    close. we are sorry for the inconvenience
    I tried this number of time and was getting this error message every
    time i try to put the DSN Detail and trying to connect to the DB. This
    was really irritating.
    Can somebody's what's the Issue . Is this a Resource Conflict or
    something else
    P.S :- I am using Adobe LiveCycle Designer ES2 Ver.9.0.0 with Windows XP and MySQL
    Connector /ODBC 3.51 and the DB Connection is working good for MS
    Access( though i don't need MySQL Connector fot this ).
    Any Help would be highly appreciated
    Thanks Alok

    Hi
    I'm getting an strange error message when i try to connect a LC PDF form to
    MYSQL DB using MySQL Connector /ODBC 3.51 Driver
    Here is the complete detail how i was trying to build a connection
    string :-
    I Opened a form in Adobe LiveCycle Designer ES2 Ver.9.0.0
    Clicked on Data View Pallete --> New Data Connection --> selected OLEDB Database radio button --> Build a Connection string (clicked on build button) --> selected MS OLE DB Provider for ODBC Drivers (the default selected option ) --> clicked on Next >> button --> Use connection string (radio button) --> Build connection string on clicking Build button --> Select Data Source windows opens --> Clicked on Machine Data Source tab --> created a new data source (with User Data Source) --> Selected the MySQL ODBC Driver (MySQL ODBC 3.51 Driver) --> Clicked on next button and then Finish
    A Connector/ ODBC 3.51.28 - Add Data Source Name window opens up which have the DSN connection details (DSN Name , Server , user , password , database).
    I put all the default details
    After this i got a error message saying that
    Adobe LiveCycle Designer ES has encountered a problem and needs to
    close. we are sorry for the inconvenience
    I tried this number of time and was getting this error message every
    time i try to put the DSN Detail and trying to connect to the DB. This
    was really irritating.
    Can somebody's what's the Issue . Is this a Resource Conflict or
    something else
    P.S :- I am using Adobe LiveCycle Designer ES2 Ver.9.0.0 with Windows XP and MySQL
    Connector /ODBC 3.51 and the DB Connection is working good for MS
    Access( though i don't need MySQL Connector fot this ).
    Any Help would be highly appreciated
    Thanks Alok

  • Using SQLBindParameter, SQLPrepare and SQLExecute to insert a Decimal(5,3) type fails with SQLSTATE: 22003 using ODBC Driver 11 for SQL Server

    Hello everyone.
    I'm using SQL Server 2014, and writting on some C++ app to query and modify the database. I use the ODBC API.
    I'm stuck on inserting an SQL_NUMERIC_STRUCT value into the database, if the corresponding database-column has a scale set.
    For test-purposes: I have a Table named 'decTable' that has a column 'id' (integer) and a column 'dec' (decimal(5,3))
    In the code I basically do:
    1. Connect to the DB, get the handles, etc.
    2. Use SQLBindParameter to bind a SQL_NUMERIC_STRUCT to a query with parameter markers. Note that I do include the information about precision and scale, something like: SQLBindParameter(hstmt, 2, SQL_PARAM_INPUT, SQL_C_NUMERIC, SQL_NUMERIC, 5, 3, &numStr,
    sizeof(cbNum), &cbNum);
    3. Prepare a Statement to insert values, something like: SQLPrepare(hstmt, L"INSERT INTO decTable (id, dec) values(?, ?)", SQL_NTS);
    4. Set some valid data on the SQL_NUMERIC_STRUCT
    5. Call SQLExecute to execute. But now I get the error:
    SQLSTATE: 22003; nativeErr: 0 Msg: [Microsoft][ODBC Driver 11 for SQL Server]Numeric value out of range
    I dont get it what I am doing wrong. The same code works fine against IBM DB2 and MySql. I also have no problems reading a SQL_NUMERIC_STRUCT using SQLBindCol(..) and the various SQLSetDescField to define the scale and precision.
    Is there a problem in the ODBC Driver of the SQL Server 2014?
    For completeness, here is a working c++ example:
    // InsertNumTest.cpp
    // create database using:
    create a table decTable with an id and a decimal(5,3) column:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE TABLE[dbo].[decTable](
    [id][int] NOT NULL,
    [dec][decimal](5, 3) NULL,
    CONSTRAINT[PK_decTable] PRIMARY KEY CLUSTERED
    [id] ASC
    )WITH(PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON[PRIMARY]
    ) ON[PRIMARY]
    GO
    // Then create an odbc DSN entry that can be used:
    #define DSN L"exOdbc_SqlServer_2014"
    #define USER L"exodbc"
    #define PASS L"testexodbc"
    // system
    #include <iostream>
    #include <tchar.h>
    #include <windows.h>
    // odbc-things
    #include <sql.h>
    #include <sqlext.h>
    #include <sqlucode.h>
    void printErrors(SQLSMALLINT handleType, SQLHANDLE h)
        SQLSMALLINT recNr = 1;
        SQLRETURN ret = SQL_SUCCESS;
        SQLSMALLINT cb = 0;
        SQLWCHAR sqlState[5 + 1];
        SQLINTEGER nativeErr;
        SQLWCHAR msg[SQL_MAX_MESSAGE_LENGTH + 1];
        while (ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO)
            msg[0] = 0;
            ret = SQLGetDiagRec(handleType, h, recNr, sqlState, &nativeErr, msg, SQL_MAX_MESSAGE_LENGTH + 1, &cb);
            if (ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO)
                std::wcout << L"SQLSTATE: " << sqlState << L"; nativeErr: " << nativeErr << L" Msg: " << msg << std::endl;
            ++recNr;
    void printErrorsAndAbort(SQLSMALLINT handleType, SQLHANDLE h)
        printErrors(handleType, h);
        getchar();
        abort();
    int _tmain(int argc, _TCHAR* argv[])
        SQLHENV henv = SQL_NULL_HENV;
        SQLHDBC hdbc = SQL_NULL_HDBC;
        SQLHSTMT hstmt = SQL_NULL_HSTMT;
        SQLHDESC hdesc = SQL_NULL_HDESC;
        SQLRETURN ret = 0;
        // Connect to DB
        ret = SQLAllocHandle(SQL_HANDLE_ENV, NULL, &henv);
        ret = SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER)SQL_OV_ODBC3, SQL_IS_INTEGER);
        ret = SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc);
        ret = SQLConnect(hdbc, (SQLWCHAR*)DSN, SQL_NTS, USER, SQL_NTS, PASS, SQL_NTS);
        if (!SQL_SUCCEEDED(ret))
            printErrors(SQL_HANDLE_DBC, hdbc);
            getchar();
            return -1;
        ret = SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt);
        // Bind id as parameter
        SQLINTEGER id = 0;
        SQLINTEGER cbId = 0;
        ret = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &id, sizeof(id), &cbId);
        if (!SQL_SUCCEEDED(ret))
            printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
        // Bind numStr as Insert-parameter
        SQL_NUMERIC_STRUCT numStr;
        ZeroMemory(&numStr, sizeof(numStr));
        SQLINTEGER cbNum = 0;
        ret = SQLBindParameter(hstmt, 2, SQL_PARAM_INPUT, SQL_C_NUMERIC, SQL_NUMERIC, 5, 3, &numStr, sizeof(cbNum), &cbNum);
        if (!SQL_SUCCEEDED(ret))
            printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
        // Prepare statement
        ret = SQLPrepare(hstmt, L"INSERT INTO decTable (id, dec) values(?, ?)", SQL_NTS);
        if (!SQL_SUCCEEDED(ret))
            printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
        // Set some data and execute
        id = 1;
        SQLINTEGER iVal = 12345;
        memcpy(numStr.val, &iVal, sizeof(iVal));
        numStr.precision = 5;
        numStr.scale = 3;
        numStr.sign = 1;
        ret = SQLExecute(hstmt);
        if (!SQL_SUCCEEDED(ret))
            printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
        getchar();
        return 0;

    This post might help:
    http://msdn.developer-works.com/article/12639498/SQL_C_NUMERIC+data+incorrect+after+insert
    If this is no solution try increasing the decimale number on the SQL server table, if you stille have the same problem after that change the column to a nvarchar and see the actual value that is put through the ODBC connector for SQL.

  • MAXDB ODBC driver and MS SQL SERVER

    Dear SAP Community
      I need to set up a linked server from MS Sql Server to a MAXDB instance.
    Well, after installing the ODBC driver, I've set up a data source and then I could successfully establish a connection to my MAXDB from a sample Excel file using that datasource.
    Then I moved to Sql server in order to define a linked server with this data source, likewise.
    Therefore, in the first option as a provider I've selected "Microsoft OLE DB provider for ODBC drivers" then I specified that datasource for both Product Name and Data Source (same setting), however I got the following error.
    Could you kindly help me? I have almost spent 2 days on this problem without figuring it out, and any help or hint would be extremely appreciated.
    Many many thanks in advance
    Alberto
    The OLE DB provider "MSDASQL" for linked server "MAXDB2" reported an error. The provider did not give any information about the error.
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MAXDB2". (Microsoft SQL Server, Error: 7399)

    Just for your information,
    I have the connection tested and running, without errors: I had to force the authentication before actually creating it.
    However, I don't see any table at the moment, so it would be extremely appreciate if anybody could provide me with some hints, perhaps I do have to put a connection string, as I kept blank those settings (just set only Product Name and Data Source).
    Many thanks in advance!
    Alberto
    /****** Object:  LinkedServer [MAXDB3]    Script Date: 07/18/2011 17:10:29 ******/
    IF  EXISTS (SELECT srv.name FROM sys.servers srv WHERE srv.server_id != 0 AND srv.name = N'MAXDB3')EXEC master.dbo.sp_dropserver @server=N'MAXDB3', @droplogins='droplogins'
    GO
    /****** Object:  LinkedServer [MAXDB3]    Script Date: 07/18/2011 17:10:29 ******/
    EXEC master.dbo.sp_addlinkedserver @server = N'MAXDB3', @srvproduct=N'MAXDB3', @provider=N'MSDASQL', @datasrc=N'MAXDB3'
    /* For security reasons the linked server remote logins password is changed with ######## */
    EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'MAXDB3',@useself=N'False',@locallogin=NULL,@rmtuser=N'DBADMIN',@rmtpassword='########'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'collation compatible', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'data access', @optvalue=N'true'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'dist', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'pub', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'rpc', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'rpc out', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'sub', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'connect timeout', @optvalue=N'0'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'collation name', @optvalue=null
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'lazy schema validation', @optvalue=N'false'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'query timeout', @optvalue=N'0'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'use remote collation', @optvalue=N'true'
    GO
    EXEC master.dbo.sp_serveroption @server=N'MAXDB3', @optname=N'remote proc transaction promotion', @optvalue=N'true'
    GO

  • Oracle ODBC Driver (Windows 2003 x64 Server)

    Hi all
    I have some trouble with this ODBC Driver ...
    I have installed Oracle Client 10.2.0.1.0 with the ODBC Driver and SQLplus etc.
    Now I have configured in the "Net Manager" some "Service Naming" as I did
    on other servers before. Then I Test the connection in the "Net Manager" it
    seams to work fine.
    When I now try to connect in SQL Plus the following error comes up:
    ORA-12154: TNS:could not resolve the connect identifier specified
    I did already do this:
    - Add "...\NETWORK\ADMIN" to the Path Variable of the server
    - sqlnet.ora looks like:
    SQLNET.AUTHENTICATION_SERVICES= (NTS)
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    - tnsnames.ora looks like:
    MyName.WORLD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myDomain.net)(PORT = 1521))
    (CONNECT_DATA =
    (SID = DBSIDxx)
    What do I have to do to get this working ???
    Thanks for any comments!
    Best regards
    Frank Uray

    Nevermind, I think I'm to assume that this is the same as:
    Re: unable to use SQL Plus (Windows 2003 x64 Server)

  • SQL 2012 64 Bit Linked Server to Excel 2013 64 Bit

    What is the syntax for sp_AddLinkedServer to add an Excel 2013 64 bit Workbook as a Linked Server for 64 bit SQL Server 2012?

    EXEC sp_addlinkedserver @server = N'ExcelDataSource',
    @srvproduct=N'ExcelData', @provider=N'Microsoft.ACE.OLEDB.12.0',
    @datasrc=N'C:\DataFolder\People.xlsx',
    @provstr=N'EXCEL 12.0' ;
    Refer http://technet.microsoft.com/en-us/library/ms190479.aspxAbout Provider download & Issues,http://social.msdn.microsoft.com/Forums/sqlserver/en-US/fbae9d36-e832-4706-a14e-629fc8d0c814/how-to-load-data-from-excel-2013?forum=sqlintegrationserviceshttp://social.msdn.microsoft.com/Forums/en-US/1d5c04c7-157f-4955-a14b-41d912d50a64/how-to-fix-error-the-microsoftaceoledb120-provider-is-not-registered-on-the-local-machine?forum=vstsdb
    Regards, RSingh

  • Can not see Oracle ODBC driver in Ms SQL Server 2007

    Hi
    I am trying to export an ms sql server table to Oracle using the Ms SQL Server 2007 export wizard and the only driver I found in the list is Microsoft OLEDB Provider for Oracle.
    I already installed Oracle client and I addedd an ODBC conenction of the datasources Why can I not see the Oracle ODBC driver?

    Which version of Oracle and what kind of Client Install
    Are you sure you did the full Client Install which will have ODBC ?
    Execute odbcad32 and look under Drivers Tab for Oracle ODBC Driver

  • Purchase or not ODBC Driver for MS SQL Server 2005

    Hi experts,
    We have Windows Server 2003 R2 Standard with MS SQL SERVER 2005 and our other branch want to access this system's Database at their end.
    other branch is planning to integrate database record to ERP
    Can u confirm whether they have to purchase ODBC driver or not.
    from where i can purchase ODBC driver online.
    Best Regards,
    Pardeep

    Hello,
    The data provider like ODBC and SQL Server Native Client are already integrated in all common MS Windows OS, so in common you don't need to install additional provider.
    But if you want to install and newer version, then you can get it for free from
    Feature Pack for Microsoft SQL Server 2005 SP4 => sqlncli.msi ( = SQL Native Client, which includes ODBC)
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Mysql odbc driver 3.51.27

    Hi all,
    I am connected to my db using mysql 3.51.27 version odbc driver and I dont see any of the parameter prompts to work.
    The report runs fine without parameters but when added throws an errors
    "The table can not be found "
    Has anyone faced this? I know the recommended driver is 3.51.12 but I dont seem to find it online anywhere.
    thanks

    Are you using a database command as your data source, or are you browsing the database and picking your table(s) from within the database expert?  If you're using a command, perhaps you're missing quotes around your parameters?  For example, if your parameter is a string - say a customer code - your command would have to look something like this:
    select * from customer where customer.code = '{?CustCodePrompt}'
    HTH,
    Carl

  • Windows 2008 64-bit SQL Server 2008 64-bit Linked Server fails - ODBC connects but has issues

    Installed the 64 but Oracle 11g client and Oracle ODAC. 
    From SQL Server Management Studio run script :  exec master.dbo.xp_cmdshell 'PING OracleHostNameHere'        Ping was successful
    OraOLEDB.Oracle shows up in the Provider list.  Run This Script:
    EXEC master.dbo.sp_MSset_oledb_prop N'OraOLEDB.Oracle', N'AllowInProcess', 1
    GO
    EXEC master.dbo.sp_MSset_oledb_prop N'OraOLEDB.Oracle', N'DynamicParameters', 1
    GO
    EXEC master.dbo.sp_addlinkedserver @server = N'Nav14', @srvproduct=N'Oracle', @provider=N'OraOLEDB.Oracle', @datasrc=N'TheOracleHostName'
    EXEC master.dbo.sp_addlinkedsrvlogin @rmtsrvname=N'TheOracleHostName',@useself=N'False',@locallogin=NULL,@rmtuser=N'TheUser',@rmtpassword='ThePassWord'
    Msg 15015, Level 16, State 1, Procedure sp_addlinkedsrvlogin, Line 49     The server 'TheHostName' does not exist. Use sp_helpserver to show available servers.
    Did the same process on a Windows 7 32 bit Enterprise - ODBC Works after installing ODAC
    ODBC worked, shows list of Oracle servers - picked the server - ODBC successful - MS Access able to use that ODBC service.
    In Windows 2008 64 bit installed both Oracle 11g Client and 64 bit ODAC - ODBC opens, the list of oracle servers doesn't populate, hard code in the host name - ODBC reports Success.
    Another Person Suggested:  Win7 64-bit with Oracle 11g. Oddly enough, it ran differently when I opened a command prompt window as administrator and ran setup.exe with the suggested command-line options:
    setup.exe -debug -printtime -printmemory -printdiskusage -logLevel finest
    While it had previously been failed both by running setup from the Explorer windows as administrator and by running it from the command line as administrator - it died every time at the same point mentioned by others in this thread - just after this message appeared in the log:
    Get view named [SummaryUI]
    ( I have tried re installing with no success)

    Windows 7 Enterprise 32-Bit
    Installed the version 12 for 32 bit ODAC and it worked. The key is to Install as Administrator once it is unzipped.
    Was able to set up Listener then
    Was able to set up ODBC using the ODAC. Connect MS Access 2010 to the Oracle views.
    Then, tried to install the 64 Bit onto Windows 2008 Server.
    It locked up during installation both times.
    Installed ODAC without an error.
    However, the ODBC setup will not provide a list of the servers in the ODBC  TNS Service Name listbox for Server 2008.
    In Windows 7, it populates the TNS Service Name.
    The list box in Windows 2008 is empty.
    Do you know what would cause that?
    The .ORA file scrips look the same on Windows 2008 as they do on Windows 7 except it does not have the (server = Dedicated) argument.
    Thanks.

  • Problem using odbc driver 10g with SQL Server 2005

    We are getting following error. Any solution?
    cannot retrieve the column codepage info from the OLE DB provider

    there is an additional error message
    The output column SR_CONTACT_POINT_ID (58) has a precision which is not valid. Precision must be between 1 and 38.

  • Can't export XML column via postgres odbc driver

    Hi,
    I'm developing a process to export rows from a table in SQL server 2012 to a table in a Postgres database (9.3).
    I'm using the postgres odbc driver in a linked server is SQL server.
    I can read and insert across this linked server fine, however I have an XML column in the in the table and the process is failing with the following error.
    INSERT into openquery(postgres_linked_server, 'SELECT column1, xml_column from mytable') 
    select  top 1 column1, xml_column data_from mytable
    Implicit conversion from data type xml to nvarchar is not allowed. Use the CONVERT function to run this query.
    I've tried casting the source row to varchar/nvarchar, I've tried inserting it into a staging table in postgres with a character varying field. I'm reaching the conclusion that I need to extract the xml from sql server and insert it into postgres using an
    intermediary. I'll try this with SSIS.
    I was wondering if anyone had any experience of doing this with a linked server.
    any comments appreciated.
    Sean

    sorry for the delay in replying, I've tried the second type of syntax and get 
    The OLE DB provider "MSDASQL" for linked server "postgres" supplied inconsistent metadata for a column. The column "xml_column" (compile-time ordinal 6) of object "postgres_linked_server"."database.schema"."mytable"
    was reported to have a "DBCOLUMNFLAGS_ISLONG" of 128 at compile time and 0 at run time.
    I'll look into it a little more, but I will try using an SSIS package as well to see if 
    I have any more luck with that.
    thanks
    Sean
    Sean

  • Linked Server [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

    Hi  I have SQL2012 installed on my local machine and have also installed MySQL 5.6.23 installed with a test database.
    I also have my SQL connector installed and MYSQL ODBC Driver 3.51.   
    Which happily connects to the Mysqldb.
    The Datasource Name : mySQL conn
    TCP/IP Server : localhost and Port :3306
    User root
    with pwd
    On the SQL side I have used the following
    EXEC master.dbo.sp_addlinkedserver
      @server = N'MYSQLSRV',
      @srvproduct=N'mySQL conn',
      @provider=N'MSDASQL',
      @datasrc=N'mySQL conn'
    However when I try to selet using open query
    SELECT * FROM OPENQUERY ( [MYSQLSRV], 'SELECT * FROM students' )
    it comes back with
    OLE DB provider "MSDASQL" for linked server "MYSQLSRV" returned message "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified".
    Msg 7303, Level 16, State 1, Line 1
    Cannot initialize the data source object of OLE DB provider "MSDASQL" for linked server "MYSQLSRV".
    I cant understand what I have done wrong .   Any help in this would be great as Ive hit a bit of a brick wall

    Hi Robert3975,
    In addition to other post, please also note the following things.
    1. If you use the 32-bit driver on a 64-bit machine, please run the 32bit version of "odbcad32.exe" by running "c:\Windows\SysWOW64\odbcad32.exe"
     from Start/Run menu and
    create your ODBC DSN. However, for the 64-bit driver, use c:\windows\system32\odbcad32.exe to create your ODBC DSN. For more details, please review this similar
    thread.
    2. Expand the folder Providers under Linked server directory in SSMS and go to properties of MSDASQL provider and configure it properly as described in this blog:
    Creating Linked server to MYSQL from SQL Server.
    Thanks,
    Lydia Zhang
    If you have any feedback on our support, please click
    here.
    Lydia Zhang
    TechNet Community Support

  • Crystal Reports Server 2008 (Linux) - Crystal Reports/MySQL/ODBC Issue

    Hello,
    I have successfully installed CRS '08 on a Red Hat Enterprise Linux 4 server.  All services run fine.
    In the CMC, I have uploaded a Crystal Report that connect to a remote MySQL server. 
    I have installed the My SQL ODBC 3.51.11 and .12 Drivers as a System DSN.
    I have proven that the reports run fine in Crystal Reports 2008 directly against the remote MySQL DB server.
    (in Windows but with the same 3.51 ODBC Drivers)
    I have also proven that the database connection works okay from the CRS '08 Red Hat server to the remote MySQL DB server, when also creating a system DSN (using bash ./ODBCConfig)
    The problem is that when I log into the CMC or InfoView, and when I run the Crystal Reports from there, I get an error message:
    "Error in File <MyCrystalReport>: Failed to load database information"
    Is there something wrong with my specific Crystal Reports' Database Configuration? (Right click- Database Configuration)
    I see the driver was registered correctly in the /etc/odbc.ini file
    Am I supposed to set any other ODBC environment variables?
    Is there are firewall issue (port 3306 is already open)?
    In summary, the install was successful, and Crystal Reports can be uploaded and viewed via CMC or InfoView, but I cannot run the Crystal Reports against the database.
    Please advise, Thanks!

    Hi, I'm facing a similar problem. My ODBC DSN never works with CRS. Here are the details:<br><br>
    (1) I  installed the CRS 2008 in /opt/crystalreportsserver_2008_v1/ on a Linux platform. The CRS works well. I created a report with Crystal Reports 2008. This report directly connects to a MySQL server. After I published the report and manually modify its database configuration, I can browse it from InfoView. I'm sure that CRS, MySQL, and a report connecting to MySQL are all good.<br><br>
    (2) Then, I created an ODBC DSN on a Windows platform. This DSN connects to a MySQL server. I created another report with Crystal Reports using this DSN. The report can show the data within Crystal Reports.<br><br>
    (3) Then, I published the second report to CRS, but when I try to browse it, I always get such a message: Failed to open the connection.<br><br>
    I have configured the ODBC for CRS on the Linux server and I think the configuration is correct. This is how I do that: I edited the /opt/crystalreportsserver_2008_v1/bobje/odbc.ini file. In the file I added a data source called ods_telstar. Following is the content of the file:<br><br>
    [ODBC Data Sources]<br><
    CRSQLServerWP=DataDirect 5.3 SQLServer Wire Protocol Driver<br>
    CRSybaseWP=DataDirect 5.3 Sybase Wire Protocol Driver<br>
    CRText=DataDirect 5.3 Text Driver<br>
    %SYBASEDSN%=DataDirect 5.3 Sybase Wire Protocol Driver<br>
    ods_telstar = MySQL<br>
    <br>
    ... <br>
    <br>
    [ods_telstar]<br>
    Description     = ODS on telstar<br>
    Trace       = Off<br>
    TraceFile   = stderr<br>
    Driver      = /opt/crystalreportsserver_2008_v1/bobje/enterprise120/linux_x86/odbc/lib/libmyodbc5.so<br>
    SERVER      = xxx<br>
    USER        = xxx<br>
    PASSWORD    = xxx<br>
    PORT        = 3306<br>
    DATABASE    = ods<br>
    <br>
    In the middle I removed some data source definitions that are by default in the file. Note that I use "xxx" to replace the server name, user, and password. Such information is for internal use and I'm sure the original information is correct. The MySQL ODBC driver file has been put in the correct location. Correct access permissions has been assigned to the file.<br><br>
    I've tried to restart the CRS server, but still the report using ODBC DSN cannot be viewed.<br><br>
    The reason that we want to user ODBC DSN is that we may have many reports to publish. When we design the reports, we specify that they get data through an ODBC DSN such as ods_telstar. If we configure the same DSN on CRS, then we don't need manually modify each report's configuration after we publish them. If these reports are directly connecting to MySQL, then we have to manually modify each one's database configuration after we publish them.<br><br>
    I've no idea what's wrong with all the setup. Any suggestions and comments are appreciated!<br>

Maybe you are looking for

  • How do you put libary from broken computer to new one?

    My computer recently crashed with several recently purchased songs in my libary I was yet to put on my ipod. I got a new computer but i don't know how to put my purchased songs from my old, broken computer on to my new one. I know itunes has probably

  • Update to iTunes 10.6.1, sync iPhone, lose all music and ringtones

    OMG, I am so tired of Apple screwing up my iPhone either with iOS or iTunes updates.  This time I updated iTunes to 10.6.1, synced my iPhone, then I got a call and I notice that the ringtone wasn't the one I had set up as the default.  I started chec

  • SharePoint Designer Workflow to check if value exists in any item in SharePoint List

    Hi, I've two column in SharePoint List. I want to check using SharePoint Designer 2013, if value exists in any item in SharePoint List for these two columns "PR NO" and "Part No". Thanks Can you please help me in SharePoint Designer how to write cond

  • Sudden decrease in graphic quaity

    Earlier today I was using Safari to download a short video from MSN when my MacBook locked up. As I was trying to to quit Safari, and stop the download, by pressing command, option, period (plus a number of other key presses), my display suddenly cha

  • Document restriction settings

    please let me know on how to set the document restriction: Printing: Allowed Commenting: Allowed Other options: Not Allowed regards, Sashi