SQL Server Driver for Linux causes Segmentation Fault

Hello,
I'm using the SQL Server Driver 11.0.1790 on Linux with mod_perl and Apache. While running fine with all my CLI Perl apps I occasionally get Segmentation Faults when using it from within mod_perl applications. Sometimes every other connect to the database
segfaults. I've created a core dump and did a stack backtrace:
Loaded symbols for /usr/lib/../lib64/libxml2.so.2
Core was generated by `/usr/sbin/httpd2 -X'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007f8a8aeda803 in __connect_part_two (connection=0x7f8a99c885e0) at SQLConnect.c:1891
#2 0x00007f8a8aedffd6 in SQLDriverConnect (hdbc=0x7f8a99c885e0, hwnd=0x0, conn_str_in=0x7fff1e7369ee "",
len_conn_str_in=<value optimized="" out="">,
conn_str_out=0x7fff1e736a80 "DSN=XXXXX;UID=XXX;PWD=XXXXXXXX;WSID=XXXXXXXX;DATABASE=XXXXX;MARS_Connection=Yes;",
conn_str_out_max=512, ptr_conn_str_out=0x7fff1e736a7e, driver_completion=0) at SQLDriverConnect.c:1530
#3 0x00007f8a8b1458ee in odbc_db_login6 (dbh=0x7f8a99938ca0, imp_dbh=0x7f8a99c8acd0,
dbname=0x7fff1e736c80 "DSN=XXXXX;MARS_Connection=Yes;UID=XXX;PWD=XXXXXXXX", uid=0x7f8a9996e8b0 "XXX",
pwd=0x7f8a9996e8d0 "XXXXXXXX", attr=0x7f8a99938c40) at dbdimp.c:942
#4 0x00007f8a8b141822 in XS_DBD__ODBC__db__login (my_perl=<value optimized="" out="">, cv=<value optimized="" out="">) at ./ODBC.xsi:98
#5 0x00007f8a9125b091 in Perl_pp_entersub (my_perl=0x7f8a96274f50) at pp_hot.c:3046
#6 0x00007f8a912595f6 in Perl_runops_standard (my_perl=0x7f8a96274f50) at run.c:41
#7 0x00007f8a911eb755 in Perl_call_sv (my_perl=0x7f8a96274f50, sv=0x7f8a99938bc8, flags=2) at perl.c:2632
#8 0x00007f8a8b791d02 in XS_DBI_dispatch (my_perl=0x7f8a96274f50, cv=0x7f8a98cbbe60) at DBI.xs:3473
#9 0x00007f8a9125b091 in Perl_pp_entersub (my_perl=0x7f8a96274f50) at pp_hot.c:3046
#10 0x00007f8a912595f6 in Perl_runops_standard (my_perl=0x7f8a96274f50) at run.c:41
#11 0x00007f8a911ebab0 in Perl_call_sv (my_perl=0x7f8a96274f50, sv=0x7f8a97db4f68, flags=10) at perl.c:2647
#12 0x00007f8a9154ba31 in modperl_callback (my_perl=0x7f8a96274f50, handler=0x7f8a96230c90, p=0x7f8a96334838, r=0x7f8a963348b0,
s=0x7f8a962303b0, args=0x7f8a998376a8) at modperl_callback.c:101
#13 0x00007f8a9154c79c in modperl_callback_run_handlers (idx=6, type=4, r=0x7f8a963348b0, c=<value optimized="" out="">, s=0x7f8a962303b0,
pconf=<value optimized="" out="">, plog=0x0, ptemp=0x0, run_mode=MP_HOOK_RUN_FIRST) at modperl_callback.c:262
#14 0x00007f8a9154cb6f in modperl_callback_per_dir (idx=-1714610816, r=<value optimized="" out="">, run_mode=<value optimized="" out="">)
at modperl_callback.c:369
#15 0x00007f8a91546b93 in modperl_response_handler_run (r=0x7f8a963348b0) at mod_perl.c:1000
#16 modperl_response_handler (r=0x7f8a963348b0) at mod_perl.c:1039
#17 0x00007f8a95f01e08 in ap_run_handler ()
#18 0x00007f8a95f0226c in ap_invoke_handler ()
#19 0x00007f8a95f0ff00 in ap_process_request ()
#20 0x00007f8a95f0ce98 in ?? ()
#21 0x00007f8a95f08b28 in ap_run_process_connection ()
#22 0x00007f8a95f14e5a in ?? ()
#23 0x00007f8a95f15126 in ?? ()
#24 0x00007f8a95f15903 in ap_mpm_run ()
#25 0x00007f8a95eec9be in main ()
</value></value></value></value></value></value></value>
Calling something at NULL obviously doesn't look right…
Can onebody help fixing this issue?
Best regards,
Stephan

Hi Stephan,
This is a bug in the unixODBC Driver Manager 2.3.0.  Essentially, you can only have one HDBC per HENV.  The mod_perl must be creating the connections upon the same HENV.
The bug appears to be fixed in version 2.3.1 but we have not yet certified that out driver can work with 2.3.1.  See the 2.3.1 release notes at
http://www.unixodbc.org/ where the last item says:
"Driver version was not being held when a second connection was made to the driver"
The Driver Manager would "forget" that we are an ODBC V3 driver and try intereacting with us as an ODBC V2 driver for the second connection (which fails).
The workaround is to create a new HENV for each connection but I'm not sure if this is possible in mod_perl.

Similar Messages

  • Does Microsoft have a SQL Server driver for Node.js

    I want to create a Mobile Backend with Node.js, and I was wondering whether Microsoft provided a SQL Server driver for Node.js. If not, what driver module should I use? 

    Hey James,
    Have you see this
    https://github.com/Azure/node-sqlserver
    or this
    https://www.npmjs.com/package/mssql ?
    Sounds like this is what you're looking for.

  • Connecting to SQL Server 2000 with MS SQL Server Driver for JDBC

    Hi,
    I am brand new to JDBC . I have installed JDBC driver (for JDBC 2.0) from the Microsoft site and made relevant changes to the class path variable to include the driver paths, as suggested in the driver help documnnts. I have written a simple java code to register. But i get "class NotFound" error.
    here's my code. What am I doing wrong? Thnaks for the help....
    class Test {
         public Test() throws Exception {
              // Get Connection
         //     Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
         DriverManager.registerDriver (new com.microsoft.jdbc.sqlserver.SQLServerDriver());
              Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://SQL1:1433",myuser,mypwd);
              if (conn != null) {
                   System.out.println();
                   System.out.println("Successful Connection");
                   System.out.println();
                   // Meta Data
                   DatabaseMetaData meta = conn.getMetaData();
                   System.out.println("\n Driver Information");
                   System.out.println("Driver Name: " + meta.getDriverName());
                   System.out.println("Driver Version: " + meta.getDriverVersion());
                   System.out.println("\n Database Information");
                   System.out.println("Database Name: " + meta.getDatabaseProductName());
                   System.out.println("Database Version: " + meta.getDatabaseProductVersion());
         } //Test
         public static void main(String [] args) throws Exception {
              Test test = new Test();
    }

    Hi MoD,
    This is the exact command I used for compiling
    C:\>javac -classpath "c:\java;c:\Program Files\Microsoft SQL Server 2000 Driver
    for JDBC\lib\mssqlserver.jar;c:\Program Files\Microsoft SQL Server 2000 Driver f
    or JDBC\lib\msbase.jar;c:\Program Files\Microsoft SQL Server 2000 Driver for JDB
    C\lib\msutil.jar" c:\java\Test.java
    To Execute I used
    C:\>java -classpath "c:\java;c:\Program Files\Microsoft SQL Server 2000 Driver
    for JDBC\lib\mssqlserver.jar;c:\Program Files\Microsoft SQL Server 2000 Driver f
    or JDBC\lib\msbase.jar;c:\Program Files\Microsoft SQL Server 2000 Driver for JDB
    C\lib\msutil.jar" c:\java\Test
    In fact it kept thrwing up the Class Not Found error for the above commands.
    But as U suggested I removed the classpath and executed both javac and java commands without classpath clause , and guess what it worked for the line
    Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
    (i.e., it dint throw any exception like before). So can I assume that driver is successfully registered?
    I tried using Jcreator for compile and run. But I got the same error msg as the commands given above with calsspath caluse. Is there a way around for this to make it work from an external editing tool like Jcreator apart from removing the classpath option from the JDKTool optional setting(doing this did not help for me)
    Also one last favor: How do I connect with the trusted connection option? (i.e. it should use already logged in windows authentification login)
    Thanks for all U'r help. I appreciate it very much.
    Suma

  • JDBC (ODBC) Driver for linux

    Hello
    I am currently using JdbcOdbcBridge on Windows NT/2000 for accessing MS SQLServer.
    But I want to transfer my application servers to Linux
    RedHat 7.1. My database should remain MS SQLServer.
    Can you suggest me a way to connect to MSSQL Server
    from Linux? An ODBC driver would also be
    enough for me, i.e. I can use a JdbcOdbcBridge regardless of performance problems.
    Where can I find MS SQL Server drivers for Linux?
    Thank you

    You might try the http://www.freetds.org/.
    Or RmiJdbc at http://www.objectweb.org/

  • [Microsoft][ODBC SQL Server Driver]Invalid character value for cast specifi

    [Microsoft][ODBC SQL Server Driver]Invalid character value for cast specification
    An you help me with this error?
    This is the problemativ query:
    Search QUERY : SELECT DISTINCT theK_files.fileid, theK_files.name, theK_files.t
    itle, theK_files.description, theK_users1.name AS AuthorName, theK_users1.surn
    ame AS AuthorSurname, [theK_file-extensions].name AS Extension, theK_files.publ
    ished, theK_files.updated FROM theK_users INNER JOIN [theK_users-to-groups] ON
    theK_users.userid = [theK_users-to-groups].userid INNER JOIN theK_usergroups
    ON [theK_users-to-groups].groupid = theK_usergroups.groupid INNER JOIN [theK_g
    roups-to-files] ON theK_usergroups.groupid = [theK_groups-to-files].groupid INN
    ER JOIN theK_files ON [theK_groups-to-files].fileid = theK_files.fileid INNER
    JOIN theK_users theK_users1 ON theK_files.authorid = theK_users1.userid INNER
    JOIN [theK_file-extensions] ON theK_files.extensionid = [theK_file-extensions]
    .extensionid WHERE theK_users.userid = '1' AND theK_files.extensionid = '1' AN
    D ( theK_files.name LIKE '%a%' OR theK_users1.name LIKE '%a%' OR theK_files.de
    scription LIKE '%a%' )

    are these columns character/string/varchar:
    theK_users.userid = '1'
    theK_files.extensionid = '1'
    if these are number columns, change them to
    theK_users.userid = 1
    theK_files.extensionid = 1
    Jamie

  • Reg:-10901: Database error: [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)

    Hi Friends,
    When i schedule the report in infoview ,i am getting this error, could you please let me know how to solve this error.
    10901: Database error: [Microsoft][ODBC SQL Server Driver][DBNETLIB]General network error. Check your network documentation.. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)
    Thanks
    sreedhar

    Hi,
    I am able to refresh the report in Infoview and data is dispalying , but when i schedule the report in infoview i am getting that error.
    I am not clear on below one could you please elaborate on this
    You need to create ODBC for SQL server.Check your BO server is able to connect SQL Server.
    Thanks
    sreedhar

  • [Oracle][ODBC SQL Server Driver][libssclient22]General network error

    I am using oracle gateway (11.1) for sqlserver on Linux platform with Oracle Server 10g.
    I am getting following error when i run any select query:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Oracle][ODBC SQL Server Driver][libssclient22]General network error. Check your network documentation.[Oracle][ODBC SQL Server Driver][libssclient22]ConnectionOpen (connect()).[Oracle][ODBC SQL Server Driver]Invalid connection string attribute
    ORA-02063: preceding 2 lines from SQLSERVER
    Another thing is, i have created a ODBC DSN named as "sqlserver" as well. This configuration works fine when "program" parameter is set to dg4odbc in Listener.ora. But with dg4msql, it gives error.
    Followings are the configuration files:
    initsqlserver.ora
    # HS init parameters
    HS_FDS_CONNECT_INFO=database_machine:1433//test_master
    HS_FDS_TRACE_LEVEL=OFF
    HS_FDS_RECOVERY_ACCOUNT=RECOVER
    HS_FDS_RECOVERY_PWD=RECOVER
    listener.ora
    SID_LIST_sqlserver =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = sqlserver)
    (ORACLE_HOME = /u01/app/oracle/product/11.1.0.6.0/gateway)
    (PROGRAM = dg4msql)
    sqlserver =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Server_Machine )(PORT = 1522))
    (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
    tnsnames.ora
    SQLSERVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Server_Machine)(PORT = 1522))
    (CONNECT_DATA =
    (SID = sqlserver)
    (HS = OK)
    )

    Hi,
    The error you get is because your HS_FDS_CONNECT_STRING is not correct:
    Be sure you can ping the SQL SERVER name from the Oracle Server,or use TCP/IP address
    Check the port, it is not necessary 1433.
    You can use the instance name insted of port:
    HS_FDS_CONNECT_STRING=server_ip_address/instance_name/database_name
    Be careful, in the LISTENER.ORA, you must specify the Gateway machine and not the SQL SERVER machine:
    sqlserver =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Gateway_Machine )(PORT = 1522)) <====you must specify Oracle Gateway machine
    (ADDRESS = (PROTOCOL = IPC)(KEY = PNPKEY))
    Idem for TNSNAMES.ORA:
    SQLSERVER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = Gateway_Machine)(PORT = 1522))
    (CONNECT_DATA =
    (SID = sqlserver)
    (HS = OK)
    Regards
    Mireille

  • Getting [Microsoft][ODBC SQL Server Driver] Optional feature not implemented

    I am using below mentioned code to insert values in MSAccess 2000 which having table structure as mentioned below:-
    Field Name Data Type
    TodaysDate Date/Time
    Cart ID Number
    Client Name Text
    Campaign Text
    Team & Segment Text
    Duration Number
    Tape ID Text
    Start Date Date/Time
    End Date Date/Time
    Station Text
    Code:-
    private boolean enterDataIntoMSAccessDatabaseusingPreparedStatement()
       try {
      ps = connection.prepareStatement("INSERT INTO Cart ID Details VALUES (?,?,?,?,?,?,?,?,?)");
      System.out.println("After Query");
       catch (SQLException se) {
      generateErrorMessage("Error in Prepared Statement \n " + se.getMessage() );
       return false;
       catch (Exception e)
      generateErrorMessage("Unexpected Error Occured \n " + e.getMessage());
       String todaysDate = cartIDApplicationAddCartIDDatejTextField.getText().trim();
       String cartID = cartIDApplicationAddCartIDCartIDjTextField.getText().trim();
       String clientName = cartIDApplicationAddCartIDClientNamejTextField.getText().trim();
       String campaign = cartIDApplicationAddCartIDCampaignjTextField.getText().trim();
       String teamSegment = cartIDApplicationAddCartIDTeamAndSegmentjTextField.getText().trim();
       String duration = cartIDApplicationAddCartIDDurationjTextField.getText().trim();
       String tapeID = cartIDApplicationAddCartIDTapeIDjTextField.getText().trim();
       String startDate = cartIDApplicationAddCartIDStartDatejTextField.getText().trim();
       String endDate = cartIDApplicationAddCartIDEndDatejTextField.getText().trim();
       String station = cartIDApplicationAddCartIDDELjCheckBox.getText().substring(0, 3);
      System.out.println(station);
       try {
      System.out.println("Before ps.setString()");
      SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-mm-dd", Locale.ENGLISH);
      System.out.println("Simple Date Format");
       /*ps.setString(1, todaysDate);
      ps.setString(2, cartID );
      ps.setString(3, clientName);
      ps.setString(4, teamSegment);
      ps.setString(5, duration);
      ps.setString(6, tapeID);
      ps.setString(7, startDate);
      ps.setString(8, endDate);*/
      System.out.println("1");
      ps.setDate(1, new java.sql.Date(simpleDateFormat.parse(todaysDate).getTime()));
      ps.setString(2, cartID);
      ps.setString(3, clientName);
      ps.setString(4, campaign);
      ps.setString(5, teamSegment);
      ps.setString(6, duration);
      ps.setString(7, tapeID);
      ps.setDate(8, new java.sql.Date(simpleDateFormat.parse(startDate).getTime()));
      ps.setDate(9, new java.sql.Date(simpleDateFormat.parse(endDate).getTime()));
      ps.setString(10, station);
      System.out.println("After ps.setString()");
      ps.executeUpdate();
       catch (SQLException se) {
      generateErrorMessage("Error while inserting data in database \n " + se.getMessage());
       return false;
       catch (Exception e)
      generateErrorMessage("Unexpected Error Occured \n" + e.getMessage() );
       return true;
    I got below error after implementing the above code:-
    [Microsoft][ODBC SQL Server Driver]Optional feature not implemented.
    Kindly help me for the same.

    >>  [Microsoft][ODBC SQL Server Driver]  
    I don't see anything Oracle in your question.   It looks like you're getting an error using Microsoft's SQL Server driver, did you mean to post this to a forum on  Microsoft's site perhaps?

  • [823] [HY000] [Microsoft][ODBC SQL Server Driver][SQL Server]The operating system returned error 1450(Insufficient system resources exist to complete the requested service.) to SQL Server.

    Hi,
    I am facing an issue while loading fresh data into SQL server database.
    we are able to load data into staging area, but while processing stored procedures system face bellow error message :
    [823] [HY000] [Microsoft][ODBC SQL Server Driver][SQL Server]The operating system returned error 1450(Insufficient system resources exist to complete the requested service.) to SQL Server during a write at offset 0x00000243bd0000 in file 'E:\SQLDB\DBName.mdf'.
    Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC
    CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
    we use windows 2008 R2 with SQL server managment studio 2008.
    Appreciate your suggestion.
    Thanks in advance.
    Best Regards,
    Manorath 
    Manorath

    Hi Manorath,
    Based on my research, this issue can be occurred in the following scenarios:
    You are running a DBCC command on a large database. For example, you are running the DBCC CHECKDB statement on the database. At the same time, you run many DML statements on the database.
    You create a database snapshot for a large database. At the same time, you are running many DML statements on the database.
    In these scenarios, the SQL Server service stops responding. The DBCC CHECK statement is never completed, and you receive the error message repeatedly.
    This issue occurs because the sparse file for a database snapshot file has exceeded the file size limitation in NTFS file system. When the operating system error 1450 occurs, SQL Server enters an infinite retry loop.
    To fix this issue, please download and install Cumulative update package 1 for SQL Server 2008 Service Pack 1. Besides, because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous
    SQL Server 2008 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix.
    Reference:
    http://support.microsoft.com/kb/967164
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • JDBC MS SQL Server driver catch SQLException on Update statement

    Hi,
    We change the driver for the BEA WebLogic Type 4 JDBC MS SQL Server driver
    driver=weblogic.jdbc.sqlserver.SQLServerDriver
    url=jdbc:bea:sqlserver://db_name:port_number
    since we use this driver we got an error when the application try to update a field date type with a NULL value.
    Before, we use this driver and we didn't have this error
    driver=com.inet.tds.TdsDriver
    url=jdbc:inetdae:ammtl1sqls01:1961
    The stack is:
    Failed to update - id [updateItemBranch] - parameterObject [xxx.domain.store.Item@b0237c].
    Cause:com.ibatis.common.jdbc.exception.NestedSQLException:
    --- The error occurred in com/gildan/ecrm/persistence/sql/Item.xml.
    --- The error occurred while applying a parameter map.
    --- Check the updateItemBranch-InlineParameterMap.
    --- Check the parameter mapping for the 'availableDate' property.
    --- Cause: java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driver
    Caused by: java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driver

    Carol Villeneuve wrote:
    Hi,
    We change the driver for the BEA WebLogic Type 4 JDBC MS SQL Server driver
    driver=weblogic.jdbc.sqlserver.SQLServerDriver
    url=jdbc:bea:sqlserver://db_name:port_number
    since we use this driver we got an error when the application try to update a field date type with a NULL value.
    Before, we use this driver and we didn't have this error
    driver=com.inet.tds.TdsDriver
    url=jdbc:inetdae:ammtl1sqls01:1961
    The stack is:
    Failed to update - id [updateItemBranch] - parameterObject [xxx.domain.store.Item@b0237c].
    Cause:com.ibatis.common.jdbc.exception.NestedSQLException:
    --- The error occurred in com/gildan/ecrm/persistence/sql/Item.xml.
    --- The error occurred while applying a parameter map.
    --- Check the updateItemBranch-InlineParameterMap.
    --- Check the parameter mapping for the 'availableDate' property.
    --- Cause: java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driver
    Caused by: java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driverHi. You should do two things:
    1 - Contact BEA support for the very latest versions of the weblogic drivers.
    2 - show us the actual jdbc code being called, and the full original stacktrace
    of the SQLException.
    Joe

  • An error when registering SQL server driver

    Hi
    I have got the following error when register SQL server drive
    "RemoteMsDataBase.java": Error #: 302 : cannot access class com.microsoft.jdbc.sqlserver.SQLServerDriver; neither class nor source found for com.microsoft.jdbc.sqlserver.SQLServerDriver at line 19, column 63
    the code that cause error
    // register the SQL driver
    DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
    // connect to the DB by using the driver.
    String connString = "my_dbserver:1433;databasename=my_database";
    String strDBConnect = "jdbc:microsoft:sqlserver://" + connString;
    conn = DriverManager.getConnection(strDBConnect, userName, passwd);
    To include jars to my classpath do this:
    javac -deprecation -classpath msbase.jar;msutil.jar;mssqlserver.jar *.java

    javac -deprecation -classpath msbase.jar;msutil.jar;mssqlserver.jar *.javaSpecify the full path for jar(s), example,
    javac -deprecation -classpath .;c:\myjars\msbase.jar;c:\myjars\msutil.jar;c:\myjars\mssqlserver.jar *.java
    Hope it works.
    Sudha

  • Installing SQL Server 2012 on Linux Ubuntu

    Hello, Can I install SQL Server 2012 on Linux Ubuntu?  So far I can only find downloads of ODBC for Red Hat.  Any ideas?

    Hi Mike,
    Please also take a look at the following article regarding the Operating System requirement to install SQL Server:
    Hardware and Software Requirements for Installing SQL Server 2012:
    http://technet.microsoft.com/en-us/library/ms143506.aspx 
    As Sean said, we can connect to SQL Server via ODBC from Linux Ubuntu. Here are some articles for your reference, please see:
    SQL Server ODBC Driver:
    http://www.easysoft.com/products/data_access/odbc-sql-server-driver/index.html
    Connecting to Microsoft SQL Server using ODBC from Ubuntu Server:
    http://blog.jamesrossiter.co.uk/2011/03/08/connecting-to-microsoft-sql-server-using-odbc-from-ubuntu-server/
    Regards,
    Elvis Long
    TechNet Community Support

  • Problem: [Microsoft][ODBC SQL Server Driver][SQL Server]The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.

    Hi Gurus,
    I have this problem in my MS SQL Server 2012 that is running in SQL Server 2008 R2 Enterprise 64 bit.. Not sure why... Here is the full details of the error:
    Microsoft OLE DB Provider for ODBC Drivers 80040E14
    [Microsoft][ODBC SQL Server Driver][SQL Server]The Microsoft Distributed Transaction Coordinator (MS DTC) has cancelled the distributed transaction.
    /Libraries/DBA/DBA.asa, line 717
    Line 717 is this:
    rs.open destTableName,,,,adCmdTable
    Full details of the code:
        'Field object used to iterate through each field of the rs
        dim rs, fld
        'call dbInitRS(rs)
        set rs = server.createobject("adodb.recordset")
        'On Error Resume Next
        'Open rs
        set rs.activeConnection = myConnection
        rs.cursorType = adOpenKeyset
        rs.lockType = adLockOptimistic
        'rs.open destTableName
        rs.open destTableName,,,,adCmdTable
        'if err.number <> 0 then
        '    goto HandleError
        'end if
        rs.addNew
    Any ideas how to solve this problem?
    Thanks

    Still does not work. I have allow MSDSTC in my firewall list.
    Hi dudskie,
    Have you try to use DTCTester or DTCPing to verify MSDTC functionality over the network? Please refer to the following article:
    Troubleshooting Problems with MSDTC:
    http://msdn.microsoft.com/en-us/library/aa561924.aspx
    Use the DTCTester utility to verify transaction support between two computers if SQL Server is installed on one of the computers. The DTCTester utility uses ODBC to verify transaction support against a SQL Server database. For more information about
    DTCTester see How to Use DTCTester Tool.
    Use DTCPing to verify transaction support between two computers if SQL Server is not installed on either computer. The DTCPing tool must be run on both the client and server computer and is a good alternative to the DTCTester utility when SQL Server
    is not installed on either computer. For more information about DTCPing, see
    How to troubleshoot MS DTC firewall issues.
    If you have any feedback on our support, please click
    here.
    Hope this helps.
    Regards,
    Elvis Long
    TechNet Community Support

  • Connection failed: SQLState:'01000' SQL Server Error:67 [Microsoft]ODBC SQL Server Driver][DBNETLIB]ConnectionOpen (Connect()). Connection failed: SQLState:'08001' SQL Server Error:17 [Microsoft]ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist o

    Help,
    setup a new sql server 2012 on a windows 2012r2 server to replace old sql server 2005 on an old windows server 2003 machine.  When i test the ODBC connection locally on the server it works fine, however when i try to connect via windows 7 client machine
    i get the following error:
    Connection failed:
    SQLState:'01000'
    SQL Server Error:67
    [Microsoft]ODBC SQL Server Driver][DBNETLIB]ConnectionOpen
    (Connect()).
    Connection failed:
    SQLState:'08001'
    SQL Server Error:17
    [Microsoft]ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied
    I think it must be a permissions thing, I've turned off the firewall for now and still no difference, 've also made sure remote connection is enabled.  I can connect to the other sql server in studio manager on the new machine however, i can't go do
    the same in the old server, says:
    cannot connect to hbfsqlpro1\hbfsqlpro1
    Additonal information a network related or instance specifc error occured while establising a connection to SQL server.  The server was not found or was not accessible.  Verify that the instance name is correct and that SQL server is configured to
    allow remote connections. (provider:SQL Network Interfaces, error 26 - error locationg server/instance specified) (Microsoft SQL server)
    the instance is def correct, as that is what i use to connect locally on the new machine and what it comes up on the studio manager on the new machine.  STarting to pull my hair out somewhat, i'm sure it's something really simple! 

    Hello,
    You are trying to connect to a named instance. Make sure the SQL Server Browser service is started on the SQL Server computer.
    Make sure TCP/IP is enabled.
    http://msdn.microsoft.com/en-us/library/ms191294(v=sql.110).aspx
    Try to disable Windows Firewall or security software on both, SQL Server instance and client computer.
    Test basic connectivity too. Try to ping from the client computer to the SQL Server computer.
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) Could not prepa

    BO XI 3.1 in Webi Rich Client, i get this when I use the default Audit Universe to run the Sample Auditing Report.
    A database error occured. The database error text is: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) Could not prepared..(WIS 10901)
    In infoview webi i get this,
    A Database error occured. The database error text is: [Microsoft][ODBC driver Manager] Data source name not found and no default driver specified. (WIS 10901)
    We tried checking all the rights and we are trying this using the Administrator user. Also tried logon to Desinger, Import Auditing Universe and Verify the Parameters and then re exported. Still not working

    Hi Prasanth,
       Thanks for your suggestions and I tried all that what I can do along with your suggestion, and still getting the same error, all the connection are working fine, but when I checked for Integrity, Parse Object and Cardinality I was getting some Object error and cardinality error, which am trying to resolve, so I think am having a wrong version of the Activity Universe.
    Thanks for your suggestion.
    Thanks and Regards
    Senthil

Maybe you are looking for

  • How do i get just the photos out of an iCloud backup?

    I recently had to restore from an icloud backup, but it stopped importing photos when i did a sync with my mac, I know the photos are in iCloud i just need to get them back withut doing yet another restore!! They do not appear in PhotoStream and are

  • How to update an ipod touch with Itunes PC 4.2.1-ios 5or later

    my ipod touch is 4.2.1 i would like to update it from that to the newest ios fromat i have tried Ehow , apple support and none work i have the latest version of itunes and no pop up comes and says here is an update how do i manually update my ipod to

  • DOES PS ELEMENTS 12 SUPPORT COLOUR PROFILING

    Colour profiling is provided by reputable photofinishing firms. eg (DSCL)  to ensure that an acceptable colour "match" (ie that the image on the client,s monitor is the same as that provided in print form by the firm).Does Elements 12 support this pr

  • SDN blog used by SCAM site

    Hello SDN, I wanted to share some interesting discovery I made recently. I was goggling for how to implement EDIFACT interface in SAP PI (Process Integrator). And found following site: http://www.xmlconverters.com/customers/sap-review.html I read it

  • Huawei E161 Stick from o2 Germany not working on OSX 10.5.8

    Hello all, a few weeks ago i purchased the "Surfstick 3" from o2 Germany, which is a Mobile Broadband Device by Huawei (Model Name E161). I plugged the stick into my MacBook and installed the software. It seems OSX is recognizing the device since it