Creating ODBC Connections to SQL Server

I have posted a Question to two Forums about a problem I'm having connecting to SQL Server using an ODBC Connection.  Suddenly we can connect using on the IP Address of the virtual server not its name.  So we can connect using 192.168.16.122\GEMSQLSRVR
but not GEM-SERVER\GEMSQLSRVR.  Where should I be asking the question?

Seems you have a name resolution problem. You could try them here for SQL
SQL Server Data Access forum on MSDN
or depending on you OS
Windows 7 / 8.1 IT Pro forums on TechNet
 Windows Server General forum on TechNet
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows]
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Similar Messages

  • Do we need to create ODBC connection on sql server-cube for OLAP connection?

    need to create olap connection sql server cube .....?

    Hi Wafa,
    Thanks for quick reply.
    Actually i don't have username or password.if you don't mind can you share me the document of this thread: 1623999 - How to make a connection to Microsoft SQL Server Analysis
    Services in Business Objects Enterprise 4.0
    please i want to fixed this issues so help me
    Regards
    Mustafa

  • Creating ODBC DSN for SQL Server in LINUX

    Hi All,
    I am getting probelms in creating DSN for SQL server. I have created an entry in odbc.ini file under ODBC sources and provided the SQL server detiails as follows
    [ODBC Data Sources]
    AnalyticsWeb=Oracle BI Server
    Cluster=Oracle BI Server
    SSL_Sample=Oracle BI Server
    SQL_DB=DataDirect 5.1 SQL Server Wire Protocol
    [SQL_DB]
    Driver=/u01/OracleBI/odbc/lib/SEmsss23.so
    Description=DataDirect 5.1 SQL Server Wire Protocol
    Address=172:16:1:169, 1433;
    AlternateServers=
    AnsiNPW=Yes
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    Database=actdb/act7
    LoadBalancing=0
    LogonID=oracle
    Password=tiger
    QuoteID=No
    ReportCodePageConversionErrors=0
    When I test the connection ,i am getting the following error
    +[nQSError: 16023] The ODBC function has returned an error. The database may not be available, or the network may be down.+
    Can you please help in fixing this issue.I am not sure of the Drivers and the descrition that I am using are correct or not.
    Please let me know the process of creating the DSN for SQL server in LINUX and also how can we check the available drivers in LINUX?
    Thank You in advance,
    S1r1

    OBIEE does all of its data retrieval from the server. Your server needs to be able to query all of the data sources that you define.
    The client is irrelevant here, it's just a web browser consuming data that the BI Server returns to it.
    So yes you need to define connectivity from your Linux server to your SQL Server box.
    The Systems Requirements doc (http://download.oracle.com/docs/cd/E10415_01/doc/bi.1013/e10417.pdf) details DataDirect ODBC drivers that are provided for non-Widows connectivity to SQL Server

  • ODBC connection between SQL Server,Oracle Failure

    Dears,,
    I have Oracle database and SQL Server on another server.
    I installed Oracle client on SQL Server to enable me connect to Oracle Server.
    Now. i can connect from SQL Server to Oracle by SQL Enterprise Manager.
    But i can't connect by ODBC:
    When trying access Oracle ODBC Driver Configuration
    It gave me error as following:
    Unable to connect
    SQLSTATE=08004
    Oracle ODBC Ora ORA-12154:TNS Couldn't resolve the connect identifier specified
    Thanks,,
    Edited by: Eng.Mohammed on Apr 28, 2009 1:36 AM

    Dears,,
    I solved my issue as following . . .
    Adding enviornment variable called TNS_ADMIN
    and set it =<the path of tnsname.ora directory>.
    Best regards,,

  • Can't create ODBC connection in Windows Server 2012R2

    I just finished installing the instant client & odbc connection on Windows Server 2008R2. I then attempted to perform the same installation on a new Windows Server 2012R2 instance and encountered the following issue.
    After extracting the contents of the 64bit instant client & odbc files into c:\oracle\instantclient_12_1, adding this to the path statement, and adding a TNS_ADMIN environmental variable, I successfully ran odbc_install.exe from an admin cmd window. I then opened the 64bit ODBC Data Source Administrator, clicked add, selected the Oracle in instantclient_12_1, and clicked finish. As soon as I did so, I received the following error: "The setup routines for the Oracle in instantclient_12_1 ODBC driver could not be loaded due to system error code 126: The specified module could not be found. (c:\oracle\instantclient_12_1\SQORAS32.dll)"
    I uninstalled the odbc client (odbc_uninstall.exe) and attempted again with the 32bit version & 32bit odbc configuration screen. I get the exact same result with 32bit as I do with 64bit.
    Any help would be appreciated.
    EDIT: Nevermind. Apparently I needed the Microsoft Visual C++ 2010 SP1 Redistributable Package for the correct DLLs

    Hi,
    I am running Netweaver 7 and ERP2005.
    J2EE support pack is 9. The sap note that you mentioned is for NW2004 and our system is running on NW2004s.
    Now I am trying to reconfigure the sld. In case if you can suggest me another solution, I will be very happy to try that out...
    Thanks for your reply
    Edited by: Rakesh Bothra on Apr 20, 2011 4:23 AM

  • ODBC connectivity to SQL-Server fails

    Oracle 11.2.0.2 on Enterprise Linux Enterprise Linux Server release 5.4 (Carthage).
    Using FreeTDS unixODBC Driver to connect to a MS SQL-Server 2008 R2 SP1database. (RPM package freetds-0.64-1.el5.rf.x86_64 reported by yum whatprovides for ODBC FreeTDS .so).
    ODBC isql connectivity works and SQL select Col1 from Schema.Table is successfully executed against DSN, and returns rows/data (not real names).
    Same SQL in Oracle, select "Col1" from "Schema"."Table"@dblink fails (using the same ODBC DSN as isql test cor connectivity), via sqlplus.
    Debug trace (HS_FDS_TRACE_LEVEL=debug) reports:
    Exiting hgopars, rc=28500 at 2013/06/19-14:12:08 with error ptr FILE:hgopars.c LINE:570 FUNCTION:hgopars() ID:SELECT list of size 0 is not valid
    Have enabled/disabled numerous combinations of odbc.ini and init.ora parameters such QuotedId,  HS_FDS_SQLLEN_INTERPRETATION, HS_FDS_SUPPORT_STATISTICS and so on. Also tried using DBMS_HS_PASSTHROUGH, instead of native SQL via sqlplus. Same error, consistently.
    Interestingly, the desc "Schema"."Table"@dblink call works fine in sqlplus - but according to the debug trace it lets the ODBC driver deal with it - it does not craft a SQL and pass this to the ODBC driver, according to the debug trace. Instead an ODBC interface call is used to describe the object.
    So, ODBC driver seems  perfectly fine. Oracle can successfully use it as the desc command proved. Except that SQL statements (from Oracle) via the driver fails.
    Any ideas as to what the problem can be?

    Yes, thanks Mike.
    Ran into a brick wall troubleshooting, have developers and project managers doing what seems to be an ugly dance (think that is what they are doing with the up and down jumping movements).
    With no responses to my posting here, and my dislike of bad dancing, went the SR route instead.
    Appreciate you looking at the posting though. Makes me feel less alone in a world of bad dancers...

  • ODBC connect to SQL Server 2005 from Oracle 10.2.0.3 32bit Linux

    I’m unable to establish a connection from Oracle 10.2.0.3 32bit Linux to SQL Server 2005.
    The ODBC driver is the 32bit DataDirect 5.3 drivers and when I do a status on the listener it does have a handler for SQLDB
    Any help is appreciated.
    Received the following error:
    SQL> select count(*) from columns@SQLDB;
    select count(*) from columns@SQLDB
    ERROR at line 1:
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC]DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077]
    Could not find symbol 'SQLAllocConnect' in dynamic library
    DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library
    '/app/DataDirect/lib/libodbc.so'
    ORA-02063: preceding 3 lines from SQLDB
    -----Contents of trace file------------------
    Oracle Corporation --- THURSDAY JUL 10 2008 10:17:16.251
    Version 10.2.0.3.0
    hoagprd (2): ; hoagprd Entered.
    HOACONN.C (244): ; [Generic Connectivity Using ODBC] version: 4.8.2.0.0080
    HOACONN.C (288): ; Class version: 250
    hoagprd (2): ; hoagprd Exited with retcode = 0.
    hoainit (3): ; hoainit Entered.
    (0): ; connect string is: defTdpName=SQLDB;SYNTAX=(ORACLE8_HOA, BASED_ON=
    ORACLE8, IDENTIFIER_QUOTE_CHAR="", CASE_SENSITIVE=CASE_SENSITIVE_QUOTE);
    BINDING=<navobj><binding><datasources><datasource name='SQLDB' type='GENERIC_
    ODBC_FOR_HS' connect='SQLDB'><driverProperties/></datasource></datasources><
    remoteMachines/><environment><optimizer noFlattener='true'/><misc
    year2000Policy='-1' consumerApi='1' sessionBehavior='4'/><queryProcessor
    parserDepth='2000' tokenSize='1000' noInsertParameterization='true'
    noThreadedReadAhead='true' noCommandReuse='true'/><debug driverTrace='true'
    generalTrace='true'/></environment></binding></navobj>
    ORACLE GENERIC GATEWAY Log File Started at 2008-07-10T10:17:16
    hoainit (3): ; hoainit Exited with retcode = 0.
    hoalgon (7): ; hoalgon Entered. name = dbuser.
    sysbase.c (677): ; libodbcinst.so: cannot open shared object file: No such
    file or directory
    DB_ODBC_INTERFACE (718): ; [C077] Could not find symbol 'SQLAllocConnect' in
    dynamic library
    DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library '/app/
    DataDirect/lib/libodbc.so'
    DB_ODBC_INTERFACE (727): ; [C077] Could not find symbol 'SQLAllocConnect' in
    dynamic library
    DRV_InitTdp: DB_ODBC_INTERFACE (718): ; [C077] Could not find symbol '
    SQLAllocConnect' in dynamic library
    DB_ODBC_INTERFACE (722): ; [C079] Failed to load dynamic library '/app/
    DataDirect/lib/libodbc.so'
    nvRETURN (./drv_bind.c 230): -2220
    nvRETURN (./nav_bind.c 298): -2220
    hoalgon (7): ; hoalgon Exited with retcode = 28500.
    hoaexit (6): ; hoaexit Entered.
    hoaexit (6): ; hoaexit Exited with retcode = 0.
    (0): ; Closing log file at THU JUL 10 10:17:16 2008.
    --------------end of trace file ---------------
    --------TNS entry ----------
    SQLDB=
    (DESCRIPTION =
    (ADDRESS =(PROTOCOL = TCP)
    (Host = oracledbhost)
    (Port = 1521)
    (CONNECT_DATA = (SID =SQLDB)
    (HS=OK)
    -------Listener.ora entry----------
    (SID_DESC=
    (SID_NAME=SQLDB)
    (ORACLE_HOME=/app/oracle10g/product/10.2)
    (PROGRAM=hsodbc)
    -------initSQLDB.ora----------
    # This is a sample agent init file that contains the HS parameters that are
    # needed for an ODBC Agent.
    # HS init parameters
    HS_FDS_CONNECT_INFO = SQLDB
    HS_FDS_TRACE_LEVEL = 4
    HS_FDS_TRACE_FILE_NAME=/app/DataDirect/SQLDB.trc
    HS_FDS_SHAREABLE_NAME=/app/DataDirect/lib/libodbc.so
    # ODBC specific environment variables
    set ODBCINI=/app/DataDirect/odbc.ini
    ------odbc.ini entry------------
    [SQLDB]
    Driver=/app/DataDirect/lib/ivmsss23.so
    Description=DataDirect 5.2 SQL Server Wire Protocol
    Address=SQLServerhost,1401
    AlternateServers=
    AnsiNPW=Yes
    ConnectionRetryCount=0
    ConnectionRetryDelay=3
    Database=SQLServerDB
    LoadBalancing=0
    LogonID=
    Password=
    QuotedId=No
    SnapshotSerializable=0

    The error message is indicating problems loading the driver manager.
    A common issue on Linux (especially on Suse Linux) is related to library caching. First of all make sure you add the LD_LIBRARY_PATH to your listener.ora file to guarantee the correct libraries will be loaded. Your SID section will then look like:
    (SID_DESC=
    (SID_NAME=SQLDB)
    (ORACLE_HOME=/app/oracle10g/product/10.2)
    (ENVS=LD_LIBRARY_PATH=/app/oracle10g/product/10.2/lib:/app/DataDirect/lib)
    (PROGRAM=hsodbc)
    After changing the listener.ora file stop and start the listener.
    Details about the set up can be found in Metalink note:
    Note.264567.1 P216. How To Setup Generic Connectivity - HSODBC - on Linux
    If this does not help enable strace and check out from which location libodbc.so is being loaded.
    Please be also aware HSODBC has been desupported 15th of March. As you start a new project you should proceed with the follow up product DG4ODBC.

  • ODBC connection failed (SQL Server Native Client)

    Dear ..
    I tried to connect to ODBC with SQL Server Native Client 11.0.
    It successfully connected in SQL mgmt studio : (LocalDB)\AAA
    but when I tried to connect to ODBC, it's failed like below..
    [Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'KKIKKI\Jinsu'.
    [Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot open database "MAPDB" requested by the login. The login failed.
    test failed.
    How to initialize all of my SQL Native Client and ODBC configuration?
    I tried to remove all SQL application, but it's same situation.. Please help..
    jinsu

    https://www.connectionstrings.com/sql-server-native-client-11-0-odbc-driver/
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • Cannot create new connection to SQL Server

    When I try to create a connection from Oracle Sql Developer to SQL Server I get the following message:
    Status: Failure -I/O Error: SSO Failed; Native SSPI Library not loaded. Check the java.library.path system property.

    check if you installed JTDS driver. If not,
    - go to http://sourceforge.net/project/showfiles.php?group_id=33291,
    - extract the jar file,
    - copy it to a convenient location (SQL Developer subfolder would be preferable)
    - start sql developer and go to properties
    - expand Database, go to Third Party JDBC drivers and add the .jar file above.
    - recheck the connection.
    Good luck,
    Andrei

  • How to create a DSN-less connection to SQL Server for linked tables in Access

    hey
    i cant understand how i use that Function
    if that information what you need
     stLocalTableName: dbo_user_name
    stRemoteTableName: user_name
    stServer :sedo2015.mssql.somee.com
    stDatabase :sedo2015
    stUsername :sedo_menf_SQLLogin_1
    stPassword :123456789
    how will be that Function??
    please write that Function to me
    '//Name : AttachDSNLessTable
    '//Purpose : Create a linked table to SQL Server without using a DSN
    '//Parameters
    '// stLocalTableName: Name of the table that you are creating in the current database
    '// stRemoteTableName: Name of the table that you are linking to on the SQL Server database
    '// stServer: Name of the SQL Server that you are linking to
    '// stDatabase: Name of the SQL Server database that you are linking to
    '// stUsername: Name of the SQL Server user who can connect to SQL Server, leave blank to use a Trusted Connection
    '// stPassword: SQL Server user password
    Function AttachDSNLessTable(stLocalTableName As String, stRemoteTableName As String, stServer As String, stDatabase As String, Optional stUsername As String, Optional stPassword As String)
    On Error GoTo AttachDSNLessTable_Err
    Dim td As TableDef
    Dim stConnect As String
    For Each td In CurrentDb.TableDefs
    If td.Name = stLocalTableName Then
    CurrentDb.TableDefs.Delete stLocalTableName
    End If
    Next
    If Len(stUsername) = 0 Then
    '//Use trusted authentication if stUsername is not supplied.
    stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";Trusted_Connection=Yes"
    Else
    '//WARNING: This will save the username and the password with the linked table information.
    stConnect = "ODBC;DRIVER=SQL Server;SERVER=" & stServer & ";DATABASE=" & stDatabase & ";UID=" & stUsername & ";PWD=" & stPassword
    End If
    Set td = CurrentDb.CreateTableDef(stLocalTableName, dbAttachSavePWD, stRemoteTableName, stConnect)
    CurrentDb.TableDefs.Append td
    AttachDSNLessTable = True
    Exit Function
    AttachDSNLessTable_Err:
    AttachDSNLessTable = False
    MsgBox "AttachDSNLessTable encountered an unexpected error: " & Err.Description
    End Function

    thanks more thanks for you
    look i add that code in form
    it worked but i cant add recored  why ??
    Private Sub Form_Open(Cancel As Integer)
    Call AttachDSNLessTable("dbo_user_name", "user_name", "sedo2015.mssql.somee.com", "sedo2015", "sedo_menf_SQLLogin_1", "123456789")
    End Sub

  • OLE DB or ODBC error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied

    Hi,
    I have one client and one server.  In both hosts I created an OS-user named User1.
    The user have been given various role under the prefix SQLServer2005.
    The default instance of SQL Server and instance (background-process) of
    Analysis Service are also run under User1.
    I connected via Management Studio to Analysis Service directly in the
    server.  I set the permission to access Analysis Service to Everyone. 
    This means everyone should be able to use Analysis Service.  I have set
    ODBC data source to the server.  Testing was successful.
    I created a project to create a cube.  The tables are fairly small (total 300 MB, biggest one 290).
    On project setting (created at client) I set the server host as
    deployment target. I managed to deploy project when all I have are Data
    Source and Data Source Views.
    But on deployment I always failed.   The errors remain the same, begins with
    OLE DB error: OLE DB or ODBC error: [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.; 08001.
    I have tried 4 combinations of Impersonation :
    (A) Use a specific username and password
      * in which I supply User1 and the password of User1
    (B) Use the service account
    (C) Use the credentials of the current user
    (D) Default
    Why is this? The server does certainly exist.  I think the error message is wrong.
    I have seen 3 posting that seems related.  One of them say the solution is giving the right impersonation, but gave no detail.  About the privilege, User1 are granted the role of
    SQLServer2005MSOLAP.  What is the solution?
    Thank you,
    Bernaridho

    I just had this problem and solved it by creating an alias in SQL Server Configuration Manager, as below:
    Scenario: My SQL server is accessible from the internet under my.domain.com, and from itself at ServerName. But the local network can't see itself through the router at my.domain.com, so the deployed project is unable to process the cube, since that would
    require Analysis Services to be able to see the SQL Server at my.domain.com, which it can't do.
    So I changed the server in my project from my.domain.com to ServerName, and I created a local alias to ServerName in SQL Server Configuration Manager, under SQL Native Client 11.0 Configuration, Aliases. In my case, I pointed it to localhost port 1333, and
    used SSH -L 1333:my.domain.com:1433, but I could have pointed the alias directly to the server, just as well. (Verifying... yes, that worked too, so you can forget SSH if you have no interest in it.)

  • Unable to establishing a connection to SQL Server created via SqlManagementClient

    Goal:
    create an Azure SQL Server via .NET (Microsoft.WindowsAzure.Management.Sql.Modules.SqlManagementClient) and add a database to it.
    Problem:
    I am NOT able to access the newly created server from .Net code.
    Description:
    Using SqlManagementClient I SUCCESFULLY create a new Azure SQL Server (see code below).
    After creating the server, I am able to access the new server from Azure Portal.
    * firewall rule show valid client machine
    * "Windows Azure Services" is set to "Yes"
    An error occures when I try connecting to the database using the same user and pwd used to create it. 
    /* the following code results in a connection failure  */
    //string server = <name of newly created sql server>
    //string db = <name of new database to create, inside of the server>
    public void CreateDatabase(string server, string db)
     using (ReliableSqlConnection conn = new ReliableSqlConnection(
                    Configuration.GetConnectionString(server, "Master"),
                    SqlRetryPolicy,
                    SqlRetryPolicy))
                    conn.Open();   //// throws System.Data.SqlClient.SqlException
        //// A network-related or instance-specific error occurred while establishing a connection to SQL Server.
                    SqlCommand cmd = conn.CreateCommand();
    /* the following code creates a sql server and firewall rules */
    ServerCreateResponse response;
    SubscriptionCloudCredentials creds;
    X509Certificate2 cert;
    //// Gets the certificate  
    cert = CredentialUtil.GetCertificate(certificateStoreName, certificateStoreLocation, certificateThumbprint);
    //// Using the certificate and the subscription build credential
    creds = new CertificateCloudCredentials(azureSubscriptionId, cert);
    //// using creditials create server and set firewall rules
    using (SqlManagementClient client = new SqlManagementClient(creds))
            response = client.Servers.Create(new ServerCreateParameters()
                    AdministratorPassword = sqlPwd,
                    AdministratorUserName = sqlUser,
             Location = location
            if (response.StatusCode == HttpStatusCode.Created)
      //// 0.0.0.0 is added to enable "Windows Azure Services" on the "Configure" tab.
      //// <MyInternetIp> would be my actual IP address.
      //// - (which works for other servers that i have manualy registered
      validIPs = new List<string>() {"0.0.0.0", "<MyInternetIp>"};
      CreateFireWallRule(client, response.ServerName, validIPs);
    //// Adds IP to Azure firewall.
    private static void CreateFireWallRule(SqlManagementClient client, string azureServerName, IEnumerable<string> validIPs)
                foreach (string ip in validIPs)
                    FirewallRuleCreateParameters rule = new FirewallRuleCreateParameters() { Name = string.Format("Allow {0} - {1}", Environment.MachineName, ip), StartIPAddress
    = ip, EndIPAddress = ip };
                    client.FirewallRules.Create(azureServerName, rule);
    /// Error
    System.Data.SqlClient.SqlException was unhandled
      HResult=-2146232060
      Message=A network-related or instance-specific error occurred while establishing 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
      Source=.Net SqlClient Data Provider
      ErrorCode=-2146232060
      Class=20
      LineNumber=0
      Number=53
      Server=""
      State=0

    Using SqlManagementClient I SUCCESFULLY create a new Azure SQL Server.
    ServerCreateResponse response;
    SubscriptionCloudCredentials creds;
    X509Certificate2 cert;
    cert = CredentialUtil.GetCertificate(parameters.CertificateStoreName, parameters.CertificateStoreLocation, parameters.CertificateThumbprint);
    creds = new CertificateCloudCredentials(parameters.AzureSubscriptionId, cert);
    using (SqlManagementClient client = new SqlManagementClient(creds))
                    response = client.Servers.Create(new ServerCreateParameters()
                        AdministratorPassword = parameters.SqlPwd,
                        AdministratorUserName = parameters.SqlUser,
                        Location = parameters.Location
                    if (response.StatusCode == HttpStatusCode.Created)
                        CreateFireWallRule(client, response.ServerName, parameters.ValidIPs);

  • Can't Create a Data Source - Failed to test connection. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied

    Hi there,
    I am having a serious issue with The Power BI Data Management Gateway which I am hoping that someone can help me with.
    Basically I am setting a connection between a Power BI demo site and a SQL 2012 Database based on Azure. The Data Management Gateway and is up and running, and Power BI has managed to connect to it successfuly.
    By following the tutorials at
    here I was able to successful create my Data Connection Gateway with a self-signed certificate.
    However, when trying to create the data source I come into problems. The Data Source Manager manages to successfully resolve the hostname, as per the screenshot below:
    Bear in mind that I exposed the require ports in Azure as endpoints and I managed to modify my hosts file on my local machine so I could access the SQL server hosted in Azure using its internal name -- otherwise I would not be able to get this far.
    However the creation of the data source also fails when trying to created it whilst logged in the SQL server in question:
    The Data Source Manager returns the error when using the Microsoft OLE DB Provider for SQL Server:
    Failed to test connection. [DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied
    I tried using the SQL Server Native Client 11.0 instead but I also get an error. This time the error is:
    Failed to test connection. Login timeout expiredA network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.Named Pipes Provider: Could not open a connection to SQL Server [53]. 
    Some considerations
    If I provide an invalid username/password, the Data Source Manager does say that the username and password is incorrect.
    Firewall is turned off in the SQL Server (either way, this error also happens if I try top use the Data Source Manager whilst logged in the SQL Server itself).
    SQL Profiler does not show any attempt of connection.
    The SQL server instance in question is the default one.
    The error happens regardless if I select the option to encrypt connection or not.
    In SQL Configuration manager I can see that all protocols are enabled (TCP/IP, Named Pipes and Shared Memory.
    The Event Viewer does not provide any further errors than the one I have copied in this post.
    I'm at a loss here. Could someone please advise what might I be doing wrong?
    Regards,
    P.

    Here is what I had to do to solve this issue:
    Basically I had to add the MSSQL TCP/IP port as an end-point in Azure. After I did that, then I was able to create the data-source. However, I was only able to authenticate with a SQL account, as any domain account would return me an error saying that the
    domain isn't trusted.
    What puzzles me here is how come the Data Source Manager would inform me that an account username/password was invalid, but it would fail/timeout if I provided valid credentials (!?!?!!?)

  • MARS connection to SQL Server in JAVA via ODBC

    Hello.
    I've got this problem.
    I'm managing an application JAVA/JSP, based on a 3-tier architecture.
    The connection to the database is performed via JDBC/ODBC, in order to work with different DRMS.
    Everything is ok when connecting to Oracle or MySql via JDBC, but when we connect to SQL Server via ODBC we get this error: "ODBC SQL SERVER - Connection is busy with result for another stmt".
    That's why the application executes more than one SQL statement, opening a ResultSet object, under the same connection.
    This is the way the application is performing, and we can't change it.
    I've read that on SQL Server 2005 is available a new connection parameter called MARS (Multiple Active Result Sets), that should resolve this problem.
    But I was not able to find any way to invoke this type of connection in JAVA for an ODBC connection! (I've found only tips for .NET...).
    Many thanks if somebody can suggest me how to resolve this problem.
    It's urgent!

    Use JDBC. Get a SQL server JDBC driver. Unfortunately I don't know of any free ones, but one I have used in the past is from http://www.jnetdirect.com/
    Maybe you can search in the JDBC forum for the answer - Its a common enough question I know.

  • SQL Server Agent - [165] ODBC Error: 0, Named Pipes Provider: Could not open a connection to SQL Server [2]. [SQLSTATE 08001]

    Hi,
    I keep receiving the error below in the SQL Server Agent Error Log;
    [165] ODBC Error: 0, Named Pipes Provider: Could not open a connection to SQL Server [2]. [SQLSTATE 08001]
    It is occurring approximately 20 times an hour and i cannot link it to any job failures. All jobs on the same SQL instance are working.
    The server is a clustered server and there are no errors occuring in the SQL Server error log at the same time. I have attempted to trace using profiler looking for errors and warnings but anything that does occur doesn't seem to correspond to the reported
    times of the errors within the sql agent error log.
    Please could someone point me where to look next?
    Many thanks.

    Please may I add that this is on a SQL Server 2008 R2 Enterprise edition patched to 10.50.1600.
    Nah, that server is not patched at all, because 10.50.1600 is the RTM version. Find Service Pack 2 and install at the next maintenance window, after having performed tests according to your local policy.
    It is not going to resolve your particular problem though.
    It seems like you have a job that attempts to a connect to s server that is down or non-existing. The job may be configured to return success also on failures. I would check if there are jobs that target other servers.
    Erland Sommarskog, SQL Server MVP, [email protected]

Maybe you are looking for

  • When trying to install v8.6.1 (upgrading from v8.5) on a Windows 7 machine, I get error -12

    I'm trying to upgrade our LV 8.5 machine to 8.6.1 on a PC running Windows 7 Pro.  8.5 runs fine, but I can't even get through the installation without getting the following error: Error: Windows SDK function returned an error (Error code -12). Is the

  • Changing drop shadow colour. Elements 4.

    In Elements 4, if I were to use a black background when using the type tool,(or any other colour)is it possible to change the colour of the shadow? Thanks Mike

  • DReamweaver code need help

    Hi, this morning when im checking one of my sites i got this for both design and code view and when viewed in a browser: $|r4øs‚ßB9¬ã*-SúEÏ1°~´ 'j¿¨Ú!¶Fÿð{„XøËå™ùïiZÈ [Š¦šçKŁêÐmi˜-bQ¨EPéÙ¼Š06v–Ém4 U0ï#¿ü‹ÔäG™j0ŸEWØ/Òä@G^õ×-€"f'ná7lÓÅïvráÃ%‚ÈÕ¸ˆÜåp

  • Can TM restore iPhoto Library to Non-Startup External Drive?

    My iPhoto Library, 39GB+ contents now "disappeared", resides on LaCie external drive to where I moved it from internal MacBook Pro drive few weeks ago to make more room. Now when I try to restore via TM, I get message that the original drive from whi

  • How do I get movies that I rented onto iPad

    I rented 2 moves on my Macbook in iTunes and want to synch them to my iPad to watch on a plane ride. They are not showing up?