SQL Server connection only partially encrypting

Hi all,
We have a Java servlet running on Tomcat and Windows and all database connections are encrypted using SSL. This works apart from a strange issue on one of the connections (SQL Server) which I do not understand. I am using WireShark to check the encryption is
working but, whenever a new login is performed through the servlet, the FIRST data transfer for this particular connection is only partially encrypting, but if a second or third data transfer to this database connection is made under the same login the entire
message is encrypted.
After the login all requests are handled through a token provided by Tomcat. The servlet also connects to an Oracle database which encrypts all the messages from the outset.
Why will the first data transfer only be partially encrypting?  There is no SQL Server client on the client\calling machine.
Here is the JNDI entry in Tomcats context.xml file but obviously a few things amended to hide them
<resource auth="Container"></resource>
driverClassName="com.microsoft.sqlserver.jdbc.SQLServerDriver"
factory="org.moss.jdj.dbcp.EncryptedDataSourceFactory" maxActive="100"
maxIdle="30" maxWait="10000" name="jdbc/connectionname"
password="*******" type="javax.sql.DataSource"
url="jdbc:sqlserver://databaseinstallname\db_instancename:2369;
databaseName=Images;encrypt=true;trustServerCertificate=true"
username="*******" />
Here is the entry in Tomcats server.xml file but again a few things amended to hide them
<connector port="8443"></connector>
protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
maxThreads="150" minSpareThreads="25"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" KeyAlias="ows"
KeystoreFile="C:\SSLKeys\ows.key" KeystorePass="********" />
Here is the section of the message viewed in Wireshark with the meta-data the rest of the message is encrypted.  I have changed the company name with "companyname" or my manager would not be happy
d....companyname1.0..
..&...,d....corp1"0 ..U....companyname Issuing CA 20..
140818140356Z.
150818140356Z0+1)0'..U... EDMSSQL.corp.companyname.co.uk0..0
..*.H..
.........0.........-........I.4.u![z.Dw..N.?...5..
..O*k8a..k....%.c.....#.........G.>....,>.O..0.[.....*i....g./......%..
..j[.z....._.....B.{[.........0...0...+.....7.......M.a.c.h.i.n.e0...U.%..0...+.........+.......0...U........0...U..........{.Wc5
z..q...t.u0...U.#..0...m.&<......]q:F..&S.q0..G..U.....>0..:0..6...2.....Khttp://pki.corp.companyname.co.uk/pki/companyname%20Issuing%20CA%202.crl...ldap:///CN=companyname%20Issuing%20CA%202,CN=HQISSUINGCA2,CN=CDP,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=corp,DC=companyname,DC=co,DC=uk?certificateRevocationList?base?objectClass=cRLDistributionPoint0....+..........0..0....+.....0....ldap:///CN=companyname%20Issuing%20CA%202,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=corp,DC=companyname,DC=co,DC=uk?cACertificate?base?objectClass=certificationAuthority\0+..U...$0".
EDMSSQL.corp.companyname.co.uk0
..*.H..
............E=....&..L:...G....'h....F...~...'..T...C..xD...R.a.!~..I..%2l.......84\.]...U..`A1..0...s...........2..].:J./.Tg.v...:t...3...\.........*..
.x2....z......QV.$
..=...e.QfE.....B.`.tE..........a.~..t?..F.]a.~.5>.Eg...I..[X...5.X....6.*M
.......;..f...5......0...0.........
..........0
..*.H..
.....041200..U...)companyname Root Certification Authority0..
131021101249Z.
181021102249Z0..1.0..
..&...,d....uk1.0..
..&...,d....co1.0..
..&...,d....companyname1.0..
..&...,d....corp1"0 ..U....companyname Issuing CA 20.."0
..*.H..
..........0..
........Z..v..S.d..8..\...e....T)...u.....n..j.......(...U....y0z..2J..hC.<. ...Q...2...Z.QE...C.!..SL.m..Q....b..&..oG<<a href="mailto:?&%........c...dV..J..q./x@..~..%[email protected]~s.....>...8...........p.s.)f.*i.+.>.{....+j.f..j..E...]C.74L......7........d0..`0...+.....7.......0...U......m.&<......]q:F..&S.q0...+.....7">?&%........c...dV..J..q./x@..~..%[email protected]~s.....>...8...........p.s.)f.*i.+.>.{....+j.f..j..E...]C.74L......7........d0..`0...+.....7.......0...U......m.&<......]q:F..&S.q0...+.....7.....
.S.u.b.C.A0...U........0...U.......0....0...U.#..0...OVqG..U%.....`.;..~.0..d..U.....[0..W0..S...O...K.[http://pki.corp.companyname.co.uk/pki/companyname%20Root%20Certification%20Authority.crl...ldap:///CN=companyname%20Root%20Certification%20Authority,CN=hqrootca1,CN=CDP,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=corp,DC=companyname,DC=co,DC=uk?certificateRevocationList?base?objectClass=cRLDistributionPoint0..i..+..........[0..W0q..+.....0..ehttp://pki.corp.companyname.co.uk/pki/hqrootca1_companyname%20Root%20Certification%20Authority.crt0....+.....0....ldap:///CN=companyname%20Root%20Certification%20Authority,CN=AIA,CN=Public%20Key%20Services,CN=Services,CN=Configuration,DC=corp,DC=companyname,DC=co,DC=uk?cACertificate?base?objectClass=certificationAuthority0
..*.H..
Thanks in advance
Regards
AJF</connector><//connector></resource><//resource>

Thanks for response.  I have edited the question to include the section of message with the meta-data that is not being encrypted.
There are no errors and the web request is providing the correct information in the web response when viewed in SoapUI.  I have run checks and examined the tomcat logs and there are no errors at all.
Thank you
Regards
AJF

Similar Messages

  • Why is my application name not showing up in the SQL Server connection properties?

    If I understand correctly I should be able to have the application name from application.cfc show up in my SQL Server connection string (i.e. in the program_name column of sp_who2) if I go in to the DSN advanced settings and check "Application Name" under Client Settings.
    However having done that I still don't see anything in the program name columns of the sp_who2 result set. Any ideas?
    Thanks!

    I drew my shape, then went to the GRADIENT panel and clicked in the default gradient box to apply the default white to black gradient.  Normally you can click on either color to change it using the ways I described in my original post but those are not available to me.  The only way I could add a color was to drag it from the SWATCHES panel into the gradient colors slider.
    This means that I cannot make changes to colors directly in the gradient panel like before.  I have to make changes to the individual colors but clicking on the color in the gradient slider then going to the COLOR panel and adjusting the color there. Or by dragging in a whole new color from the COLOR or SWATCHES panels.  This is really killing my work flow.

  • 30EA2 - Feedback on Microsoft SQL Server connectivity

    I think Oracle SQL Developer is great! But I also think it could be better.
    I believe Microsoft SQL Server connectivity in SQL Developer could/should be stronger/simpler if, for no other reason, than the simpler it is the more likely there will be converts.
    In Help -> Check for Updates ... I'd propose an Update Centre something like External DB connectivity or Third Party DB connectivity. In other words, make it obvious.
    Failing that, or perhaps in addition, instead of calling it JTDS JDBC Driver 11.1.1.58.17 why not Microsoft SQL Server connectivity, with JTDS ... in the description?
    And then, this is the big one, make installing the JTDS JDBC driver update actually enable connectivity to MS SQL Server.
    Initially trying to connect to a MS SQL DB, having installed no updates, I get the error:
    An error was encountered performing the requested operation:
    Driver class not found.
    Verify the Driver location
    Vendor code 0
    SQL Developer "knows" I'm trying to connect to a MS SQL DB, so why not a slightly more helpful error?
    After installing the JTDS JDBC Driver I do get a slightly more helpful error (in that it contains key words I can Google):
    An error was encountered performing the requested operation:
    I/O Error:  SSO Failed:  Native SSPI library not loaded.  Check the java.library.path system property.
    Vendor Code 0
    Connectivity only begins to work after I do this/these additional step/s:
    Copy the file 'jtds-1.2.2-dist\x86\SSO\ntlmauth.dll' from the unzipped JTDS --> <SQL Developer Home>\jdk\jre\bin. Then restart SQL Developer.
    With thanks to:
    http://www.dbforums.com/microsoft-sql-server/1612362-java-sql-sqlexception-i-o-error-sso-failed-native-sspi-library-not-loaded.html#post6368137
    Then, and only then, it works just fine.
    With thanks for Oracle SQL Developer,
    Garth
    Windows XP SP3
    Oracle SQL Developer 3.0.02.83

    Well to be honest there is no good reason to use access to connect to PeopleSoft But we see the same problem in a totally unrelated program called RFGEN or even Crystal Reports through odbc. The Problem is I did not want to field all the questions about RFGEN.(what it is, how it works, must be something wrong with it etc...) I would have thought that someone has connected and used Access. RFGEN is a third scanning System that works with our existing system on SQL Server and we want to keep it and use it with the PeopleSoft.

  • Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection

    "[DBNETLIB] Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection"
    After patches applied on patch Tuesday the database reports the above error. 
    All accounts are domain accounts and SQLServer uses Windows auth.
    DCDIAG show no errors
    All servers and DC have been restarted,
    Message in db log confirms the connection is being denied due to trust.
    Event log shows same rejection
    Protocols enabled: named pipes, tcpip, memory
    TESTS:
    PortQry: "
    TCP port 1433 (ms-sql-s service): LISTENING"
    Connect with domain admin accounts works from multiple clients systems to DB.
    Cannot connect with newly created domain admin account
    Can connect if new admin account connect to server in terminal server session and uses UDL wizard or any other tool including isql.
    New standard user also fails to connect.
    NOTES:
    I removed the SSL patch and the IE security update to see if that was an issue.
    ¯\_(ツ)_/¯

    Has someone left the company or has an account of some nature been dropped/replaced?
    Please click "Mark As Answer" if my post helped. Tony C.
    Hi Tony,
    Srry but No.  We just installed the monthly updates.
    I went back and found I had missed removing a patch.  I missed the rollup for Windows Server 2003:
    Event Type: Information
    Event Source: NtServicePack
    Event Category: None
    Event ID: 4382
    Date:  3/12/2015
    Time:  12:26:04 PM
    User:  NETTEST\admin
    Computer: DATA1
    Description:
    Windows Server 2003 KB954920 was removed from your computer, and the previous Windows Server 2003 configuration was restored.
    After I removed that is still didn't work but after about five minutes it started working.
    I guess I ned to report that to MS after I research what might be changed to make the patch work.
    Every time I get stuck and ask for help it seems to be just before I stumble on the solution.
    Thanks for replying.
    Well - maybe this will help someone else.
    Thanks again for replying Tony
    ¯\_(ツ)_/¯

  • SQL server connection error in sharepoint

     
    We are getting below error with inetgrated security and custom DB sql server connection in sharepoint 2013.
    This connectionstring works in dev with SQL username and password but in QA we are changing it to integrated authority.
    <add name="OurConnectionString" connectionString="Data Source=OurDB;Initial Catalog=Catalogname;Integrated Security=SSPI" providerName="System.Data.SqlClient"> (This does not work in QA)
    <add name="OurConnectionString" connectionString="Data Source=OurDB;Initial Catalog=Catalogname;User ID=user1;Password=ourpwd" providerName="System.Data.SqlClient" /> (This works in dev)
    at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader
    dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)     at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet
    bulkCopyHandler, TdsParserStateObject stateObj)     at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK)     at System.Data.SqlClient.S...
    c62c629c-6890-d0e5-d8a0-91d367f84202
    12/20/2013 10:29:31.55* w3wp.exe (0x2434)                      
    0x1EC0
    Unknown                      
    00000
    Unexpected ...qlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)    
    at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout)
        at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance)  
      at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnecti...
    c62c629c-6890-d0e5-d8a0-91d367f84202
    12/20/2013 10:29:31.55* w3wp.exe (0x2434)                      
    0x1EC0
    Unknown                      
    00000 Unexpected
    ...onString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions)     at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions
    options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)     at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool
    pool, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions)     at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnectionOptions userOptions)     at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbCon...
    c62c629c-6890-d0e5-d8a0-91d367f84202
    12/20/2013 10:29:31.55* w3wp.exe (0x2434)                      
    0x1EC0
    Unknown                      
    00000 Unexpected
    ...nectionOptions userOptions)     at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions,
    DbConnectionInternal& connection)     at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)    
    at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal& connection)     at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection
    outerConnection, DbConnectionFactory connectionFacto...
    c62c629c-6890-d0e5-d8a0-91d367f84202
    12/20/2013 10:29:31.55* w3wp.exe (0x2434)                      
    0x1EC0
    Unknown                      
    00000 Unexpected
    ...ry, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)     at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)     at System.Data.SqlClient.SqlConnection.Open()     at DBManager.ConnectionOpen()
    c62c629c-6890-d0e5-d8a0-91d367f84202
    12/20/2013 10:29:31.74 w3wp.exe (0x2434)                      
    0x1EC0
    SharePoint Foundation         Claims Authentication        
    aebgg High   
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    Hi,
    According to your post, an error occurred when you connect SQL Server in SharePoint.
    We can do as follows:
    1. Try to replace Integrated Security=SSPI with Integrated Security=True
    2. Check whether there is <identity impersonate="true" /> under <system.web> tag in web.config.
    Here are two articles for you to take a look at:
    http://blogs.windwardreports.com/tomasr/2010/09/login-failed-nt-authorityanonymous-logon-integrated-securitysspi-vs-integrated-securitytrue.html
    http://www.layer2solutions.com/en/community/FAQs/BDLC/Pages/How-SharePoint-BDLC-used-with-integrated-security-trusted-connection.aspx 
    Best Regards
    Dennis Guo
    TechNet Community Support

  • Can't create an MBO object using an SQL Server connection profile

    Hi all,
    I'm trying to create an MBO from an table using an SQL Server connection profile. The connection is fine but when i grag a table into Mobile Application Diagram in order to create an MBO i got the following exeption:
    I´ve already configured the necessary jar (sqljdbc4.jar) in the following directories:
    C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\lib
    C:\Sybase\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.com.sqlserver_2.1.0.201109131337
    but i always get the same error.
    Any help, suggest would be apreciated
    thx,
    Nuno

    Hi Nuno,
    I just wanted you to verify the path where you have pasted JAR file. As you mentioned
    Path 1:
    C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\lib
    but as per doc it should be under:
    C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\lib\3rdparty
    Path 2:
    C:\Sybase\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.com.sqlserver_2.1.0.201109131337
    but as per doc it should be under:
    C:\Sybase\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.com.sqlserver_2.1.0.201109131337\lib
    Rgrds,
    JK

  • Unix: SQL Server Connection with ODBC (CRsqls24.so)

    Hi,
    I almost find no information how to set up a SQL Server connection using ODBC on a unix platform.
    This is what I get when I try to refresh my crystal report on my BO Server (4.1):
    "The viewer could not process an event. Error in file XXX.rpt:
    Error loading database information"
    .) is the port number really separated from the server by comma? (http://help.sap.com/businessobject/product_guides/boexir4/en/xi4sp10_data_acs_en.pdf)
    .) where is the right place to speficy the SQL Server isntance name (SQLInstanceA in this case)? I didn't find any information about that?
    [MYDB]
    Driver=/opt/BOBJ/xir4/sap_bobj/enterprise_xi40/aix_rs6000/odbc/lib/CRsqls24.so
    (for 64bit: Driver=/opt/BOBJ/xir4/sap_bobj/enterprise_xi40/aix_rs6000_64/odbc/lib/CRsqls24.so)
    Description=MYDB
    HostName=100.10.10.10,1433\SQLInstanceA
    Database=MYDB
    QuotedId=Yes
    AnsiNPW=No
    LogonID=ABC
    Password=abc123
    Thanks!

    First off, let me say that in the past (pre v9) when I've tried to use Windows logins with datasources, it never worked.  But that doesn't mean that they finally got it working, just that I stopped trying.
    What I was referring to in my post is that once you have CF installed, you need to go to the Windows Services screen, open each of the CF processes, click on the LOGIN tab, and change it from the default services login to be whatever WIndows login you have setup in Active Directory.  Then restart CF so that it's process is now running under that login with its credentials.  Then go to SQL Admin and setup that same login and give it access to the database you want to access.  Then go to CF Datasource menu and setup the datasource as you did previously.  If CF's support of Windows authentication for datasources does in fact now work, you should be in business.
    If it doesn't work, then you'll need to do as I said earlier, and setup SQL logins for the CF servers to use, and then in the CF Datasource setup screens you would specify that login info in the same way that you would have given it the "sa" login info.
    -reed

  • MDM-EP SQL/Server Connection Properties

    I created a system in Enterprise Portal(EP) which I want to have connection properties to my local MDM Server which is my SQ/Server on my laptop.
    Using the Connection Test, EP cannot connect. I've tried 'local', the SQL Server name (in my case USTEM05NB028939) and even the IP address of my machine... no can do! I do have an alias set up... I suspect that the Connection Properties for a local MDM server are illusive... does anyone have the protocol for a local SQL/Server connection?

    Hi Tom
    solution is as below
    1) Please ensure EP is updated with latest Business Package of MDM 5.5 SP03.   Download the below Business Packages from www.SWDC.SAP.COM/Server using Service Market Place ID.
                       a. com.sap.mdm.tech.mdm4j.sda
                       b. com.sap.mdm.tech.connector.sda
                       c. BPMDMTECH.sca
                       d.BPMDMAPPL.sca
    2) Ensure your "hosts" file (C:\winnt\system32\drivers\etc\hosts) on your laptop (MDM Server) has the IP address and hostname of the EP Server similarly update the same on EP server with MDM IP address and server details.
                   ( Ex USTEM05NB028939   192.168.12.20) etc in the hosts file
    3) Ensure all Java related patches of MDM are applied on EP which will enable WAS to identify the MDM IViews.
    4)  Go to MDM Console and check the Repository details of the repository that needs to integrate with EP.  Identify the Repository Port that is running the Repository.  Here usually if we have more than one repository in the MDM server we give repository ports like 1234,1235 etc but its imp to leave 5 ports for every repository example if the first repository is using 1234 as repository port then better  user 1240 for the next repository.
    5) Ensure you have accessed MDM Server Repository thru the Admin account of MDM Server from EP.
    6) Also change the Windows Authentication mode of SQL Server to Administrator Mode for SA in SQL Server.
    7) Also kindly mention the 'MDM 5.5 Host Server' as 'USTEM05NB028939' (If USTEM05NB028939 your MDM Server name) rather than Local on your EP.
    Regards
    Veera

  • SQL Server Connection Issue

    I've tried going through the steps to resolve the issue, but I am still coming up blank. The part that I am not understanding is the, "A non-recoverable error occurred during a database lookup." part.
    Is this a security problem? I can establish an ODBC connection to the server as well as connect and query through visual studio, however when trying to run it through one of our custom programs, it throws this error 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:
    TCP Provider, error: 0 - A non-recoverable error occurred during a database lookup.)

    There are many reasons of SQL server connectivity issue. Refer checklist to find out the real cause of connectivity issue.
    1. Check SQL services are running
    2. Check SQL Browser service is running
    3. Check remote connections are enabled
    4. Network connectivity between database & application servers by TRACERT command
    5. Check TCP/IP protocol enabled at SQL server
    6. Check talent connectivity – telnet <IP address> <port no on SQL server running>
    7. Check UDP port 1434 is open or not on SQL Server
    8. Check firewall is running or not Check
    9. If firewall running, SQL Server & UDP port must be added in exception in firewall
    10. Run SQL Discovery report on machine SQL server installed, to check you are using correct instance name to connect( default \named) -http://mssqlfun.com/2013/02/26/sql-server-discovery-report/
    http://mssqlfun.com/2012/09/28/check-list-for-sql-server-connectivity-issue/
    Regards,
    Rohit Garg
    (My Blog)
    This posting is provided with no warranties and confers no rights.
    Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread.

  • SQL Server Connection over WAN Link

    I am planning
    to setup a BlackBerry server and connect to a remote SQL Server over a
    WAN link with 150+ms ping time.  Is there a known tolerance for
    SQL server connection latency?  For example, I have been told by
    RIM that ping time for Exchange should be around 35ms so if it is
    higher, a BES should be placed next to the Exchange server.  Any reply would be greatly appreciated.

    There is no problem with slow connection :-)
    You might get lots of waits in the SQL side (most likly there will be lots of
    ASYNC_NETWORK_IO) which you can monitor using sys.dm_os_waiting_tasks and sys.dm_exec_requests. But if there is no disconnections then most small application will work OK
    [Personal Site] [Blog] [Facebook]

  • SQL Server Connection errors

    I am receiving the following error when attempting to open a SQL Server connection in a C# console application:  "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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) SQL Error"
    1) my coworker built the project on his machine (same code) and the project works - no errors
    2) I used the identical connectionstring (same code for that matter) in a server app vs. console app - no errors
    3) I built the connection using project properties/settings (Properties.Settings.Default) - test the connection on the Connection Properties window - "Test connection succeeded."  Use the connection in my project to open a connection -
    receive error.
    4) ping to server - no errors
    5) I used PL/SQL developer to connect to server using same connection information - no errors
    6)  I installed Visual Studio 2013, built the project - receive error
    I am stuck at this point.  Can anyone help?
    Thank-you,
    Barbara Velasco

    Hi Barbara,
    Firstly, please make sure that the SQL Server Services are running. Other reasons could be incorrect connection string, firewall block the connection and so on. Please refer to the following article to troubleshoot this issue:
    http://stopdebugging.wordpress.com/2013/12/16/error-unable-to-connect-to-the-database-a-network-related-or-instance-specific-error-occurred-while-establishing-a-connection-to-sql-server/
    In addition, here are some good articles regarding troubleshoot SQL Server connectivity:
    SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified:
    http://blogs.msdn.com/b/sql_protocols/archive/2007/05/13/sql-network-interfaces-error-26-error-locating-server-instance-specified.aspx
    http://www.aspsnippets.com/Articles/Exception---error-26---Error-Locating-Server-Instance-Specified.aspx
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • SQL Server Connection Domain Name

    I need to make SQL Server Connection. I could make the connection easily in the default instance but not other instances.
    If I try,
    ServerName.DomainName.Com , it works! like it works with ServerName
    If I try,
    Servername\InstanceName.DomainName.Com it does not :(  but it works with Servername\InstanceName
    What am I missing ?

    What about the below?
    Servername.DomainName.Com\InstanceName

  • Named Pipes provider, error:40 could not open a connection to sql server. Only happens on one of the front end SRS servers

    when testing a datasource connection I get the following error.
    Named Pipes provider, error:40 could not open a connection to sql server.
    I've read all the posts on this and nothing works.  This is a scale out deployment and the connection
    works from the other server I have setup with SRS that is connected to the same backend SRS databases.  It just doesn't work from one of the SRS front ends.  I'm at a loss..  please help

    Enable both named pipe and TCP communications.
    Make sure client is using the same (named) pipe name as server for connection.
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Problem with provisioning and external SQL server connection

    I am configuring IPAM 2012 R2 on a our management server.  Completed the first step by enabling the feature.  No issues.
    Now I am on the Provisioning IPAM step.  I get to the Configure Database step...
    I choose Microsoft SQL server,
    What should those values be in the Server name and Database name fields.  Instructions show fqdn or ip address but that doesnt seem to be working for me.
    I get the following error at the end of the Provisioning IPAM wizard,
    IPAM Deployment failed with the following error.
    Failed to connect to database server. Check the database name, connectivity and remote access.
    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 - No connection could be made because the target machine actively refused it.)
    You can restart this provisioning wizard from the IPAM overview page.
    From the management server I have tested the SQL Connection with a udl file.  I used myServer\myInstance and it works.  It reports that I have made the Connection to the server and database with the sql credentials i have provided.
    Thanks

    Ran
    into a problem with connecting to the DB on the SQL server from the IPAM server.  The Dba and I checked the target SQL instance was enabled TCP and listening on a valid TCP port.  SQL server was set to use port 1443 for incoming connections. 
    IPAM was set by default to use 1433. 
    Also used
    netstat-n to identify issue and verified 1443 on SQL server was
    being used.  Made the correction under the IPAM provisioning wizard and connected to the database.  Fixed. 
    Important note I was able to connect to the database with a .udlfile
    without any issues
    Also note that 2012 R2 IPAM only supports 2012 SQL Enterprise.  Why?

  • LiveCycle PDF form and SQL Server connection

    I'd really like to move from a server-scripted event registration form to a LiveCycle online PDF form, submitted by email and redirecting the user to a Webpage.
    The only obstacle I can see is a dropdown list of users, where a user selects his/her name and then proceeds to choose an event, date, and time. On my
    Webpage form now (scripted in ColdFusion), I use a CFSELECT, which works perfectly. But in looking at LiveCycle, I see that it supports an OLEDB but probably
    not a connection to SQL Server or Oracle. Am I correct? Or is there some workaround that will populate my dropdown list?

    Hello!
    Download jTDS - SQL Server and Sybase JDBC driver from http://sourceforge.net/project/showfiles.php?group_id=33291
    In Oracle SQL Developer open Tools -> Preferences
    Database -> Third Party JDBC Drivers
    Add Entry
    Browse the unzipped driver and add the jtds-1.2.jar file
    emeriqus

Maybe you are looking for

  • Help!  I need to have hotspots in a slideshow.

    Okay, here is where I'm at, and I really need some help.  Background information: I have Flash CS4, but the tutorial I used to create this used Action Script 2.0. Here is a link to what I have... http://atleventguide.intuitwebsites.com/ Click on "ins

  • Need Acrobat 9 pro install/download files

    Over the years, my group has purchased Acrobat 7 Pro, 8 Pro, and 9 Pro...  I have serial numbers for all of the above listed in my My Adobe/My Products area.  I have disks for both 7 and 8 pro... Unfortunately, when our purchasing agent bought 9 pro,

  • ITunes ver. 7.0.1.8 - uses half of my resources !!

    Okay I got the garbled audio with 7.01. Did the fix and updated to 7.01.8. Now the audio/sound is fine. But when ever I run itunes it hogs half to 60 percent of my cpu. And running anything else, such as browsing the internet puts the PC to the wall,

  • PL/SQL scripts to capture real time performance usage

    Looking for a PL/SQL script to gather real time accurate information on memory, CPU, I/O stats for users accessing tables in Oracle 10g database on Red Hat Linux.

  • SQL Statement / Count & Percentage

    Hello All, Below is the SQL statement that I'm using with an MS Access database. Now, I'm looking for an SQL statement that will get the same results using an SQL Compact database. Here is what I am using with MS Access that works great: queryString