473,394 Members | 1,737 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

ASPState

Hi Gurus!

Error: Unable to connect to SQL Server.

I am having difficulties identifying a problem regarding the ASPState
database that is bieng used by 2 applications (cms based). (two node
SQL2KESP3a cluster on Win2003E)
There is a 30 minute timeout specified for the session_ids and we are having
~18000 rows in the tables.
We have captured with profiler that an update (within an sp) gets called
~1400 times in a minute for the SAME session_id! Locks, after locks,
deadlocks, and it causes timeouts on the app server and error page to the
user.
Checking the IIS logs we didn't see anything unusual.
The table has a clustered index, that is fine, it is heavier for updates but
still shouldn't present this type of problem. Though the table (and the
index) is very fragmented. 9000 pages for 18000 rows! Tons of extent
switches. How could I prevent this?

Microsoft articles don't seem to help.
http://msdn.microsoft.com/netframewo...g/default.aspx

Anybody has encountered this problem? I assume this is a fairly common
problem. It affects our business big time and I am not sure what can I do
from SQL Server side. When the cluster fails over we loose all sessions. Why
SQL Server can not hand out more connections? Both applications are
configured to use a pool of connections but we have more than the sum of the
two from the same apps.

I'd appreciate any suggestion that would alleviate this issue.
Janos

Nov 19 '05 #1
2 1864
Hi Janos
Did u give the permisssion to asp to execute sqlserver??
"Janos Horanszky" wrote:
Hi Gurus!

Error: Unable to connect to SQL Server.

I am having difficulties identifying a problem regarding the ASPState
database that is bieng used by 2 applications (cms based). (two node
SQL2KESP3a cluster on Win2003E)
There is a 30 minute timeout specified for the session_ids and we are having
~18000 rows in the tables.
We have captured with profiler that an update (within an sp) gets called
~1400 times in a minute for the SAME session_id! Locks, after locks,
deadlocks, and it causes timeouts on the app server and error page to the
user.
Checking the IIS logs we didn't see anything unusual.
The table has a clustered index, that is fine, it is heavier for updates but
still shouldn't present this type of problem. Though the table (and the
index) is very fragmented. 9000 pages for 18000 rows! Tons of extent
switches. How could I prevent this?

Microsoft articles don't seem to help.
http://msdn.microsoft.com/netframewo...g/default.aspx

Anybody has encountered this problem? I assume this is a fairly common
problem. It affects our business big time and I am not sure what can I do
from SQL Server side. When the cluster fails over we loose all sessions. Why
SQL Server can not hand out more connections? Both applications are
configured to use a pool of connections but we have more than the sum of the
two from the same apps.

I'd appreciate any suggestion that would alleviate this issue.
Janos

Nov 19 '05 #2
Hi Sara, it is not a permission problem.
On the other hand sqlserver has it words too. :)
"sara" <sa**@discussions.microsoft.com> wrote in message
news:89**********************************@microsof t.com...
Hi Janos
Did u give the permisssion to asp to execute sqlserver??
"Janos Horanszky" wrote:
Hi Gurus!

Error: Unable to connect to SQL Server.

I am having difficulties identifying a problem regarding the ASPState
database that is bieng used by 2 applications (cms based). (two node
SQL2KESP3a cluster on Win2003E)
There is a 30 minute timeout specified for the session_ids and we are
having
~18000 rows in the tables.
We have captured with profiler that an update (within an sp) gets called
~1400 times in a minute for the SAME session_id! Locks, after locks,
deadlocks, and it causes timeouts on the app server and error page to the
user.
Checking the IIS logs we didn't see anything unusual.
The table has a clustered index, that is fine, it is heavier for updates
but
still shouldn't present this type of problem. Though the table (and the
index) is very fragmented. 9000 pages for 18000 rows! Tons of extent
switches. How could I prevent this?

Microsoft articles don't seem to help.
http://msdn.microsoft.com/netframewo...g/default.aspx

Anybody has encountered this problem? I assume this is a fairly common
problem. It affects our business big time and I am not sure what can I do
from SQL Server side. When the cluster fails over we loose all sessions.
Why
SQL Server can not hand out more connections? Both applications are
configured to use a pool of connections but we have more than the sum of
the
two from the same apps.

I'd appreciate any suggestion that would alleviate this issue.
Janos

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tony | last post by:
We are a software company that builds an ASP.Net web application which implements cookieless sessionState with SQLServer- the session is stored in the url. Our ASPState database has been built...
0
by: Bryan Ax | last post by:
Quick question regarding best practices for using the AspState database for storing session variables in .NET web applications. I know I need to configure the web.config file with a database user...
2
by: Kevin Jackson | last post by:
We are stress testing our application. We see 100 SPIDS connected to the ASPSTATE and then the pages request per unit time slow down to barely nothing. It appears that somehow the ASP.NET...
2
by: Glenn Venzke | last post by:
I'm trying to put together a web form that lists all current session information. The session info is stored in SQL server database (ASPState) and I'm trying to retreive and display using a...
0
by: Eduardo Rosa | last post by:
Hi, I'm reading a ms tutorial about session in asp.net, and I' can't start the aspstate, somebody can help me? tutorial:...
0
by: david | last post by:
How to create the user for ASPSTATE? I got error: Exception Details: System.Data.SqlClient.SqlException: EXECUTE permission denied on object 'TempGetStateItemExclusive2', database 'ASPState', owner...
2
by: tcw | last post by:
We would like to use ASPState to handle the session State. Since we have several web applications (web sites) in our web server, do we have to create an ASPState database for each web application...
0
by: msnews.microsoft.com | last post by:
We are running a ASP.NET 1.1 web app on Windows Server 2003 SP1. We are using IIS 6.0 native mode and .NET 1.1 SP1 is installed. We have 3 web apps in our web farm. We are using SQLServer...
0
by: Kevin Jackson | last post by:
We are running a ASP.NET 1.1 web app on Windows Server 2003 SP1. We are using IIS 6.0 native mode and .NET 1.1 SP1 is installed. We have 3 web apps in our web farm. We are using SQLServer...
1
by: =?Utf-8?B?RWQ=?= | last post by:
I presently have an ASP.NET 2.0 application in production, that uses a state database "ASPState". I have another seperate application that has the same requirment. Is there any problem with...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.