Enabling SQL Server TCP/IP protocol with Tomcat v7 - sql-server

I'm working on Spring project using Tomcat as server, My database in SQL Server 2008 r2. whenever I enable the TCP/IP protocol of SQL Server, if I restert the Tomcat Server it gives me this error:
Starting Tomcat v7.0 Server at localhost' has encountered a problem
Server Tomcat v7.0 Server at localhost was unable to start within 45
seconds. If the server requires more time, try increasing the timeout
in the server editor.
I tried to inrease in start time but I encountred the same problem. If disable the TCP/IP protocol of SQL Server and I restert the Tomcat Server it works.
Best regards.

Related

Not able to start SQL Agent Service

I want to connect to a SQL server that is deployed on Azure. But I am getting a network connection error.
I realized that SQL agent is not getting restarted in the Services and gives the below error.
In SQL Server configuration Manager when I try to start SQL Agent it gives the below error.
SQL agent is not supported in sql express version, so it won't start there (from what i see on one of the screens sql version is express.
For the help to Your problem -> try to configure firewall to allow access to port 1433.

SQL Server Exception

My requirement is simple: I have an appserver - WAS 6.1 connecting to Microsoft SQL Server 2008 R2.
I have configured data source for the SQL server using the installation scripts in linux.
When I deployed EAR and try to hit application url, I get the below error while connecting to SQL Server.
com.ibm.websphere.ce.cm.StaleConnectionException: The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: SQL Server did not return a response. The connection has been closed..CWWRA0010E: SQL State = 08S01, Error Code = 0
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
The setup is working for another server configuration.
After a long wait, the issue got resolved. There is nothing to do with the EAR. The SSL encryption was enabled in SQL server settings. Just disable the settings did let me establish connection from application to the SQL server.

SQL server cannot be connected

I am developing an Asp.net MVC4 application wherein i am using SimpleMemberShip provider for authorization and i am using database MSSQL Server 2012 on the same machine.
When i openup the SQL server management studio and connect to the database by using windows authentication and sql server authentication, in both ways it is getting connected.
But when i am specifying the connection string in the application with correct credentials,
Still the application is unable to connect to the database.
I have restarted the system but it did not resolve the issue.
I have opened the configuration tool of SQl server and enabled TCP\IP and namepipe client protocols for sql client as well as for the server and restarted all the sql server related services.
But still issue is remaining, i am sure about connection string it is 100% correct.
I am scratching my head from past 5 hrs but could not track down the issue.
Please tell me the possible solutions.
I would check firewall. If you have firewall (either default windows or using some AV) then temporarily disable it and see if it works.

sql browser, if it's disabled I can see my default instance in Network Servers?

Hi
I have sql server 2008 and an express version which was installed as part of Visual Studio.
I want to see the 2008 version in the network servers of SQL Server Management Studio.
If the SQL browser service is disabled I can see my 2008 instance listed. If it's enabled
I only see the sql express version?
Either way I can't see the 2008 version from other machines
Any ideas?
Thanks
p.s.
Firewall is off locally
I don't know why one shows up locally when the browser server is disabled and the other when it is enabled, but as far as seeing them on other machines make sure UDP port 1434 is open on any firewall software you are running locally as the SQL Browser service uses that port.
http://msdn.microsoft.com/en-us/library/ms181087.aspx
"Upon startup, SQL Server Browser
starts and claims UDP port 1434. SQL
Server Browser reads the registry,
identifies all instances of SQL Server
on the computer, and notes the ports
and named pipes that they use. When a
server has two or more network cards,
SQL Server Browser returns the first
enabled port it encounters for SQL
Server. SQL Server Browser support
ipv6 and ipv4."
Unless it has changed recently, by default, SQL Express does not listen for remote requests (on the network), just locally. But, that can be changed if needed.

SQL server periodically gets disconnected

Our environment is:
Windows Server 2003, Service Pack 2
SQL Server Express 2005
SQLServer JDBC driver 1.2 (also tried Jtds)
Sun JDK 1.6 (we tried this on JDK 1.5 as well)
There is no virus protection software on the host, and no firewall is enabled.
We have Web application deployed in JBOSS 4.0.2.
Our problem is that the JDBC connection to SQL server periodically gets disconnected, and then we can't reconnect to the database at all, unless we physically restart the server on which JBOSS deployed.
we are getting following error in log.
Software caused connect on abort: recv
failed
Note: We are able to connect to database using sample java test class.
Any suggestions would be most appreciated, as this is a serious, mission-criticial problem for us right now.
Can you access the SQL Server using Management Studio? If so how many connections are open?
Do you close your connections after querying?
What does the Task Manager tell, service still running; mem/cpu usage.
Its a long shot but do you have enough disk space on C: and data-drive?

Resources