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

Similar Messages

  • Cannot stablish a Database NEW connection with SQL Server Express 2008 R2 and Netbeans 8

    
    Hi I appreciate it if someone could help to this case: I AM TRYING TO MAKE A CONNECTION TO MY SQL SERVER EXPRESS 2008 WITH MY NETBEANS 8 And I get ERROR ... APPARENTLY IS MY USER AND KEY BUT I AM PUTTING THE CORRECT USER AND KEY IN WHICH I CONNECT WITH MY
    SQL SERVER EXPRESS 2008. I HAVE PUT IN PORT THE 1433 TCP / IP PORT. THE HOST, THE NAME OF MY DATABASE.
    NO PASSING OR ERROR WHICH CAN BE ...

    Hi DianaWeb,
    It's glad to hear that your problem is resolved by changing the windows authentication into mixed authentication and use 'sa' user, namely an SQL Server authentication.
    I believe the user name and password in the Netbean are for SQL Server Authentication to connect to SQL Server. The windows authentication you typed is not a valid SQL Server Authentication, that was why the connection failed.
    In any case, if you want your J2EE project connects to SQL Server using Windows authentication(credentials of the user running Tomcat/Jboss where your application is deployed). Just build your JDBC URL like this: 
    jdbc:sqlserver://localhost;integratedSecurity=true;
    See
    Can I connect to SQL Server using Windows Authentication from Java EE webapp?
    If you have any question, feel free to let me know.
    Eric Zhang
    TechNet Community Support

  • Bug - unable to create new connections on SQL Developer 4.0.0.13

    Upgraded to SQL Developer 4.0 and we are unable to create new connections in the Connections pane on the left hand side.
    Clciking the green plus button and right clicking Connections and 'New Connection' doesn't bring up the New Database Connection dialog box.

    Sounds like an 'install' problem.
    Can you extract the zip to a new directory and try again? You did extract v4 to a fresh directory, yes?

  • 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.

  • 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

  • Cannot create datasource for MS SQL Server

    Hi,
    I'm trying to create a datasource for MS SQL server and I get this error
    Connection test failed.
    Login failed for user 'gdahan'. The user is not associated with a trusted SQL Server connection.
    com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Lcom.microsoft.sqlserver.jdbc.SQLServerConnection;Ljava.lang.Object;Ljava.lang.String;Lcom.microsoft.sqlserver.jdbc.StreamError;Z)V(Unknown Source)
    com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(Lcom.microsoft.sqlserver.jdbc.TDSReader;)V(Unknown Source)
    com.microsoft.sqlserver.jdbc.TDSParser.parse(Lcom.microsoft.sqlserver.jdbc.TDSReader;Lcom.microsoft.sqlserver.jdbc.TDSTokenHandler;)V(Unknown Source)
    com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon
    The database is in "Windows authentication" mode (not "SQL authentication") and I can connect to it through "Toad for MS SQL Server". In this case I don't need to specify any username or password because I'm already logged in as gdahan on my computer. But when I try to create the datasource I need a username and password. Is there any way to specify to the datasource that I want to connect via Authentication windows ?
    I tried with BEA MS SQL server driver and Microsoft SQL Server 2005 JDBC Driver 1.2[                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Guillaume Dahan wrote:
    Hi,
    I'm trying to create a datasource for MS SQL server and I get this error
    Connection test failed.
    Login failed for user 'gdahan'. The user is not associated with a trusted SQL Server connection.
    com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(Lcom.microsoft.sqlserver.jdbc.SQLServerConnection;Ljava.lang.Object;Ljava.lang.String;Lcom.microsoft.sqlserver.jdbc.StreamError;Z)V(Unknown Source)
    com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(Lcom.microsoft.sqlserver.jdbc.TDSReader;)V(Unknown Source)
    com.microsoft.sqlserver.jdbc.TDSParser.parse(Lcom.microsoft.sqlserver.jdbc.TDSReader;Lcom.microsoft.sqlserver.jdbc.TDSTokenHandler;)V(Unknown Source)
    com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon
    The database is in "Windows authentication" mode (not "SQL authentication") and I can connect to it through "Toad for MS SQL Server". In this case I don't need to specify any username or password because I'm already logged in as gdahan on my computer. But when I try to create the datasource I need a username and password. Is there any way to specify to the datasource that I want to connect via Authentication windows ?
    I tried with BEA MS SQL server driver and Microsoft SQL Server 2005 JDBC Driver 1.2[See the complete documentation for MS's JDBC driver
    for how/whether it can do Windows Authentication.
    This is completely at the driver level, not WebLogic,
    except that (of course) WebLogic would have to be
    running on Windows.
    Joe

  • Borland C++ Delphi application is not able to connect to SQL Server as Non Admin user

    Hi,
    I am working on a Borland C++ and Delphi application. This application connects to  SQL Server and returns database queries results. Once we migrated to windows Server 2003 we have started facing an issue.
    1. IF we login to client application as admin user then this connects properly with SQL Server and returns database queries.But if we connect using Non- Admin users then application is not able to connect SQL Server.
    SQL Server 2008
    Windows Server 2003.
    Can anybody help on this.
    Thanks in Advance.
    Rakesh

    This application is written in Borland C++ and Delphi running on Windows 2003 Server. This  is a Windows GUI based small tool. Basic functionality of the tool is : 1) Once we invoke the tool it connects to DB(SQL Server 2005) and populates a list of
    all the tables present in DB.   2) If we select any table from the list populated in step (1) and provide query parameters, this will return results from Database.
    Issue:  IF we login to the Windows machine as Administrator this application runs perfectly .This application populates the DB tables correctly and returns results from database when queries executed as in step (2)
    But if we login as some other user (like hubapp) then this populates some different set of table which are not from the same database instance .Also the queries does not return any results. In the logs we get following error message : (TiltData is the instance
    name for our Database)
    Msg:Application Exception : Cannot locate or connect to SQL server.Unable to connect: SQL Server is unavailable or does not exist.  Specified SQL
    server not found.Alias:
    TiltData1 occurred in main thread.
    As for the connection string 
          'DATABASE NAME=tiltdata'
          'SERVER NAME=SDV3'
          'USER NAME=sa'
          'OPEN MODE=READ ONLY'
          'SCHEMA CACHE SIZE=8'
          'BLOB EDIT LOGGING='
          'LANGDRIVER='
          'SQLQRYMODE=SERVER'
          'SQLPASSTHRU MODE=NOT SHARED'
          'DATE MODE=0'
          'SCHEMA CACHE TIME=-1'
          'MAX QUERY TIME=300'
          'MAX ROWS=-1'
          'BATCH COUNT=612'
          'ENABLE SCHEMA CACHE=FALSE'
          'SCHEMA CACHE DIR='
          'HOST NAME='
          'APPLICATION NAME=QueryTool'
          'NATIONAL LANG NAME='
          'ENABLE BCD=FALSE'
          'TDS PACKET SIZE=65535'
          'BLOBS TO CACHE=64'
          'BLOB SIZE=32'
          'PASSWORD=jstart')
    Any help is appreciated. I have spent a lot of time on this issue with no results.
    Regards
    Rakesh

  • -net.sourceforge.jtds.jdbc.Driver ERROR WHILE CONNECTING TO SQL SERVER

    Hi,
    While making a new connection to Sql Server Express Edition Database, through Oracle Sql Developer i am getting a problem when retrieving the database.The error is "-net.sourceforge.jtds.jdbc.Driver" .I have downloaded the "jTDS - SQL Server and Sybase JDBC driver " from sourceforge website, but i am confused about where to paste it.
    thanks.

    I'm not sure why you are having the error but I am sure of the following:
    1. This forum is not appropriate for SQL*Developer questions.
    2. Or questions about code from SourceForge
    3. Or Microsoft products.
    It seems unlikely this has anything to do with Oracle so I would recommend you find a forum related to the driver if one exists. Otherwise you can try the SQL*Developer forum but I would be there aren't more than a dozen other people on the product trying to do this.

  • 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);

  • Some times on Tomcat start up it creates SSL error while JDBC connection to SQL server

    We are using Apache Tomcat 6 and SQL server 2008 on production. In the application in ServletContextListner we make DB connection to read some property from DB. When we restart the Tomcat 6.0 in that case sometimes it does not gets DB connection till 5 to
    10 minutes. It does not happen every time. We are using JNDI for getting the Datasource objectand using SQL JDBC 3.0 driver. We get following error in log
    org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset by peer: socket write error".)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1225)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
    at com.rightwave.util.RWDBConnectionManager.getConnection(RWDBConnectionManager.java:145)
    at com.rightwave.util.RWDataBaseDAO.executeQuery(RWDataBaseDAO.java:306)
    at com.rightwave.util.RWDataBaseDAO.executeQuery(RWDataBaseDAO.java:289)
    at com.rightwave.admin.RWApplicationContext.setMConfigurationProperties(RWApplicationContext.java:226)
    at com.rightwave.admin.RWAdminApplicationContext.initialize(RWAdminApplicationContext.java:85)
    at com.rightwave.admin.RWServletContextListener.contextInitialized(RWServletContextListener.java:186)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:627)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
    Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "Connection reset by peer: socket write error".
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1368)
    at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1412)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1058)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:833)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:716)
    at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:841)
    at org.apache.tomcat.dbcp.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
    at org.apache.tomcat.dbcp.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.validateConnectionFactory(BasicDataSource.java:1247)
    at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1221)
    ... 31 more
    Caused by: java.io.IOException: Connection reset by peer: socket write error
    at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.ensureSSLPayload(IOBuffer.java:500)
    at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.readInternal(IOBuffer.java:570)
    at com.microsoft.sqlserver.jdbc.TDSChannel$SSLHandshakeInputStream.read(IOBuffer.java:562)
    at com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.readInternal(IOBuffer.java:757)
    at com.microsoft.sqlserver.jdbc.TDSChannel$ProxyInputStream.read(IOBuffer.java:745)
    at com.sun.net.ssl.internal.ssl.InputRecord.readFully(Unknown Source)
    at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source)
    at com.microsoft.sqlserver.jdbc.TDSChannel.enableSSL(IOBuffer.java:1379)
    ... 39 more
    Urgent help will be appreciated. 

    So, you've got a network error.. Check your physical layer.

  • Critical Error: Cannot Connect to SQL Server. {SQL Server} not found. Timeout expired.

    Greetings,
    I have been having some issues with various areas in a SharePoint 2013 farm.  While working my way through a bazillion errors in the event logs, I have found the following error.  It looks to be happening every hour; almost exactly 5 minutes after
    every hour.
    "Cannot connect to SQL Server. A_PROD_SP01 not found. Additional error information from SQL Server is included below.
    Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding."
    I also find, a health analyzer rule that is failing at the same time:
    Availability: One or more servers is not responding.
    However, there isn't any server listed in the Failing Servers section.
    Any thoughts?
    Thank you,
    Bob

    Hi Bob,
    For your issue, it can be caused by that the SharePoint  database access account might not have the necessary permissions to communicate with the SQL Server. Please grant correct permissions to the database access account:
    You must be a member of the Farm Administrators group to perform this task.
    Assign the database access account:
    On the Central Administration home page, click Security and in the
    General Security section click Configure service accounts.
    On the Service Accounts page, in the Credential Management section, in the upper drop-down list click the correct Web application pool for your Web application.
    In the Select an account for this component drop-down list, click the domain account that you want to associate with this Web application pool, or click
    Register new managed account to associate a new domain account with this application pool.
    Click OK to save changes.
    Reference:
    https://technet.microsoft.com/en-in/library/ee513066(v=office.14).aspx
    http://blogs.technet.com/b/wbaer/archive/2009/10/06/intermittent-database-server-connectivity-and-microsoft-sharepoint-products-and-technologies.aspx
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Creating connection to SQl Server

    I'm trying to establish a connection to sql server. I have set the third party JDBC drivers to point to jtds-1.2.jar. When I try and create a new connection I get Status : Failure -I/O Error: SSo Failed : Native SSPI library not loaded. Check the java.library.path system property.
    Any ideas on what I need to do to fix this?
    Thanks
    Steve

    We got the same error message with the current version of SQL Developer 1.1.3 and the early adaptor version of SQL Developer Migration Workbench on Windows
    The solution we found on the net (http://www.nabble.com/MSSQL-JDBC-driver-t361081.html) was
    According to the README.SSO file in the JDTD installation you must have the ntlmauth.dll file in your PATH.
    Make sure that you do, or try to set the java.library.path system property to the directory containing this
    file, that is <jtds-dir>/SSO

  • 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 (!?!?!!?)

  • 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

  • Cannot connect to SQL SERVER with Always on availability group listener name

    Hi everyone,
    I have setup always an availability group listener for sql server on port 1433, have opened the port in  firewall , remote connections are enabled in the sql server, but still I am not able to connect to the sqlserver instance with the help
    of the availability group listener name.
    I get the following error.
    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:
    TCP Provider, error: 0 - The wait operation timed out.)"} System.Exception {System.Data.SqlClient.SqlException
    Have gone through several blogs for the solution but none of them helped.
    Please let me know if anyone has fixed the issue.
    Regards,
    Divya

    Prior to making SS connection, can you establish the connection with a networking tool?
    SS connectiviy trouble shooting:
    http://technet.microsoft.com/en-us/library/ms378845.aspx
    http://stackoverflow.com/questions/5919524/not-able-to-telnet-sql-port-1433-locally-or-remotely
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/227f431a-4274-4d95-b605-67541d78ef03/test-sql-connection-with-telnet?forum=sqldataaccess
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

Maybe you are looking for

  • How to stor special characters in a VARCHAR2 field?

    I am trying to store a encrypted string into a 'varchar2' field. But, the encrypted string is not stored properly. Some characters are stored incorrectly. Can anybody help me in storing an encrypted string into a varchar2 field??

  • How do you access Acrobat 7.0 professional on windows 7

    I have purchased a new computer and have Adobe Acrobat 7.0 Professional and I put in my serial number but I still can't get activation on the software.  Please let me know if this can be resolved or am I forced to purchased the latest version.

  • Camera app disappeared overnight

    Overnight, the camera app has just vanished off my phone altogether. I have checked restrictions and they are all off. Help - where has it gone, and how do I bring it back, preferably without having to restore the phone and delete all my data.

  • User exit in idoc

    how to allocate user exit for standard idoc regards prajith

  • Error while accessing Template Exchange.

    Hi, Came across an error stating "Error #3003" while accessing the "Template Exchange" Tab. (Screenshot attached below). It would be nice if the error message has some description along with it. (instead of just showing the error number). Thanks, Dav